summaryrefslogtreecommitdiff
path: root/libc/syscall/getinfo.c
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1997-02-25 20:42:19 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:38:07 +0200
commit4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch)
treea5d9c84ba2661029ddb2223dacd50529a361c3d5 /libc/syscall/getinfo.c
parentf8de35da65c5d93bb733073cf40da154bc1c0748 (diff)
parent9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff)
downloaddev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'libc/syscall/getinfo.c')
-rw-r--r--libc/syscall/getinfo.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/libc/syscall/getinfo.c b/libc/syscall/getinfo.c
deleted file mode 100644
index a5ab89a..0000000
--- a/libc/syscall/getinfo.c
+++ /dev/null
@@ -1,32 +0,0 @@
-
-#define PERM_GETINFO 0x100
-#define PERM_GETGROUP 0x200
-
-struct {
- int pid;
- int ppid;
- int uid;
- int gid;
- int euid;
- int egid;
-}
- __info_safe;
-
-getgroups(count, locn)
-int count;
-void * locn;
-{
- if( count < 0 ) {errno = EINVAL; return -1; }
- return __permissions(PERM_GETGROUP, count, locn);
-}
-
-getpid()
-{
- __permissions(PERM_GETINFO, 6, &__info_safe);
- return __info_safe.pid;
-}
-
-getppid()
-{
- return __permissions(PERM_GETITEM(1) /*, 0, 0 */);
-}