git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
linux
/
personality.h
diff --git
a/include/linux/personality.h
b/include/linux/personality.h
index
80d780e
..
012cd55
100644
(file)
--- a/
include/linux/personality.h
+++ b/
include/linux/personality.h
@@
-1,6
+1,8
@@
#ifndef _LINUX_PERSONALITY_H
#define _LINUX_PERSONALITY_H
#ifndef _LINUX_PERSONALITY_H
#define _LINUX_PERSONALITY_H
+#ifdef __KERNEL__
+
/*
* Handling of different ABIs (personalities).
*/
/*
* Handling of different ABIs (personalities).
*/
@@
-12,6
+14,8
@@
extern int register_exec_domain(struct exec_domain *);
extern int unregister_exec_domain(struct exec_domain *);
extern int __set_personality(unsigned long);
extern int unregister_exec_domain(struct exec_domain *);
extern int __set_personality(unsigned long);
+#endif /* __KERNEL__ */
+
/*
* Flags for bug emulation.
*
/*
* Flags for bug emulation.
*
@@
-71,6
+75,7
@@
enum {
PER_MASK = 0x00ff,
};
PER_MASK = 0x00ff,
};
+#ifdef __KERNEL__
/*
* Description of an execution domain.
/*
* Description of an execution domain.
@@
-109,6
+114,8
@@
struct exec_domain {
* Change personality of the currently running process.
*/
#define set_personality(pers) \
* Change personality of the currently running process.
*/
#define set_personality(pers) \
- ((current->personality == pers) ? 0 : __set_personality(pers))
+ ((current->personality == (pers)) ? 0 : __set_personality(pers))
+
+#endif /* __KERNEL__ */
#endif /* _LINUX_PERSONALITY_H */
#endif /* _LINUX_PERSONALITY_H */