From: Jan Safranek Date: Mon, 8 Mar 2010 11:46:04 +0000 (+0100) Subject: Remove last_errno from public header X-Git-Tag: v0.36.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd25620e502f6bc5f45705602eaf1c6530f70b97;p=thirdparty%2Flibcgroup.git Remove last_errno from public header Remove last_errno from public header, that's why we have cgroup_get_last_errno. Signed-off-by: Jan Safranek Signed-off-by: Dhaval Giani --- diff --git a/include/libcgroup.h b/include/libcgroup.h index 8a24bf74..6a262e21 100644 --- a/include/libcgroup.h +++ b/include/libcgroup.h @@ -47,11 +47,6 @@ enum cgflags { CGFLAG_USECACHE = 0x01, }; -/** - * per thread errno variable, to be used when return code is ECGOTHER - */ -extern __thread int last_errno; - enum cgroup_errors { ECGROUPNOTCOMPILED=50000, ECGROUPNOTMOUNTED, diff --git a/src/libcgroup-internal.h b/src/libcgroup-internal.h index b9ef442f..8c5cc2fd 100644 --- a/src/libcgroup-internal.h +++ b/src/libcgroup-internal.h @@ -108,6 +108,10 @@ struct cgroup_tree_handle { int flags; }; +/** + * per thread errno variable, to be used when return code is ECGOTHER + */ +extern __thread int last_errno; /* Internal API */ char *cg_build_path(char *name, char *path, char *type);