This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi sysdeps/unix/sysv/linux/sys/prctl.h is just including linux/prctl.h instead of providing it's own definitions like most other header files do. Comments? Jes 2001-03-09 Jes Sorensen <jes@linuxcare.com> * sysdeps/unix/sysv/linux/sys/prctl.h: Provide PR_* values instead of including linux/prctl.h from the Linux kernel headers. diff -urN -X /home/jes/exclude-libc ../cygnus/libc-2.2/sysdeps/unix/sysv/linux/sys/prctl.h libc-2.2/sysdeps/unix/sysv/linux/sys/prctl.h --- ../cygnus/libc-2.2/sysdeps/unix/sysv/linux/sys/prctl.h Mon Oct 18 23:05:21 1999 +++ libc-2.2/sysdeps/unix/sysv/linux/sys/prctl.h Fri Mar 9 15:47:06 2001 @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +20,25 @@ #define _SYS_PRCTL_H 1 #include <features.h> -#include <linux/prctl.h> /* The magic values come from here */ + +#define PR_SET_PDEATHSIG 1 /* Second arg is a signal */ +#define PR_GET_PDEATHSIG 2 /* Second arg is a ptr to return the signal */ + +/* Get/set current->dumpable */ +#define PR_GET_DUMPABLE 3 +#define PR_SET_DUMPABLE 4 + +/* Get/set unaligned access control bits (if meaningful) */ +#define PR_GET_UNALIGN 5 +#define PR_SET_UNALIGN 6 +/* silently fix up unaligned user accesses */ +# define PR_UNALIGN_NOPRINT 1 +/* generate SIGBUS on unaligned user accesses */ +# define PR_UNALIGN_SIGBUS 2 + +/* Get/set whether or not to drop capabilities on setuid() away from uid 0 */ +#define PR_GET_KEEPCAPS 7 +#define PR_SET_KEEPCAPS 8 __BEGIN_DECLS
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |