]>
Commit | Line | Data |
---|---|---|
2d21ac55 A |
1 | /* |
2 | * $Id: lctx.h,v 1.1.6.2 2006/03/03 23:20:46 msteil Exp $ | |
3 | */ | |
4 | ||
5 | #ifndef _SYS_LCTX_H_ | |
6 | #define _SYS_LCTX_H_ | |
7 | ||
8 | #include <sys/syscall.h> | |
9 | ||
10 | #ifndef KERNEL | |
11 | static __inline pid_t | |
12 | getlcid(pid_t pid) | |
13 | { | |
14 | return (syscall(SYS_getlcid, pid)); | |
15 | } | |
16 | ||
17 | static __inline int | |
18 | setlcid(pid_t pid, pid_t lcid) | |
19 | { | |
20 | return (syscall(SYS_setlcid, pid, lcid)); | |
21 | } | |
22 | #endif | |
23 | ||
24 | #define LCID_PROC_SELF (0) | |
25 | #define LCID_REMOVE (-1) | |
26 | #define LCID_CREATE (0) | |
27 | ||
28 | #endif /* !_SYS_LCTX_H_ */ |