getpeuid implementation. Get the uid of a process (by endpoint)

This commit is contained in:
Philip Homburg
2007-04-27 12:21:06 +00:00
parent 8eb09f6ddc
commit 69ca935251
7 changed files with 49 additions and 0 deletions

View File

@@ -95,6 +95,7 @@
#if 0
#define FREEMEM 106 /* to PM, not used, not implemented */
#endif
#define GETPUID 107 /* to PM: get the uid of a process (endpoint) */
#define DEVCTL 120 /* to FS, map or unmap a device */
#define TASK_REPLY 121 /* to FS: reply code from drivers, not

View File

@@ -198,6 +198,7 @@ _PROTOTYPE( int freemem, (phys_bytes size, phys_bytes base) );
#define unmapdriver(device) devctl(DEV_UNMAP, 0, device, 0)
_PROTOTYPE( int devctl, (int ctl_req, int driver, int device, int style,
int force) );
_PROTOTYPE( uid_t getpeuid, (endpoint_t ep) );
/* For compatibility with other Unix systems */
_PROTOTYPE( int getpagesize, (void) );