(since Linux 2.1.57) Set the parent process death signal of the current process to arg2 (either a signal value in the range 1..maxsig, or 0 to clear). This is the signal that the current process will get when its parent dies. This value is cleared upon a fork().
(since Linux 2.3.15) Read the current value of the parent process death signal into the (int *) arg2.
(Since Linux 2.4) Set the state of the flag determining whether core dumps are produced for this process upon delivery of a signal whose default behaviour is to produce a core dump. (Normally this flag is set for a process by default, but it is cleared when a set-UID or set-GID program is executed and also by various system calls that manipulate process UIDs and GIDs). arg2 must be either 0 (process is not dumapable) or 1 (process is dumpable).
(Since Linux 2.4) Return (as the function result) the current state of the calling processs dumpable flag.
Set the state of the processs "keep capabilities" flag, which determines whether the processs effective and permitted capability sets are cleared when a change is made to the processs user IDs such that all of the processs real, effective, and saved set user IDs become non-zero when at least one of them previously had the value 0. (By default, these credential sets are cleared). arg2 must be either 0 (capabilities are cleared) or 1 (capabilities are kept).
Return (as the function result) the current state of the calling processs "keep capabilities" flag.