Remove last_errno from public header, that's why we have cgroup_get_last_errno.


Signed-off-by: Jan Safranek <[email protected]>
---

 include/libcgroup.h      |    5 -----
 src/libcgroup-internal.h |    4 ++++
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/include/libcgroup.h b/include/libcgroup.h
index 8a24bf7..6a262e2 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 b9ef442..8c5cc2f 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);


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to