patch-1.3.78 linux/kernel/sys.c
Next file: linux/mm/Makefile
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Mar 24 20:07:01 1996
- Orig file:
v1.3.77/linux/kernel/sys.c
- Orig date:
Fri Mar 15 16:03:21 1996
diff -u --recursive --new-file v1.3.77/linux/kernel/sys.c linux/kernel/sys.c
@@ -22,7 +22,6 @@
#include <linux/fcntl.h>
#include <linux/acct.h>
#include <linux/tty.h>
-#include <sys/sysmacros.h>
#include <asm/segment.h>
#include <asm/io.h>
@@ -297,12 +296,12 @@
ac.ac_etime = CURRENT_TIME - ac.ac_btime;
ac.ac_uid = current->uid;
ac.ac_gid = current->gid;
- ac.ac_tty = (current)->tty == NULL ? -1 :
- makedev (4, current->tty->device);
+ ac.ac_tty = (current)->tty == NULL ? -1 :
+ MKDEV(4, current->tty->device);
ac.ac_flag = 0;
if (current->flags & PF_FORKNOEXEC)
ac.ac_flag |= AFORK;
- if (current->flags & PF_SUPERPREV)
+ if (current->flags & PF_SUPERPRIV)
ac.ac_flag |= ASU;
if (current->flags & PF_DUMPCORE)
ac.ac_flag |= ACORE;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this