Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
/*
* Work around random glibc bugs where getpid() caches an invalid pid.
*/
#ifdef _syscall0
#define __NR_xgetpid __NR_getpid
static inline _syscall0(pid_t, xgetpid);
#else
static inline pid_t xgetpid(void) { return syscall(__NR_getpid); }
#endif
#endif /* _USERUI_H_ */