1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #if defined(LIBC_SCCS) && !defined(lint)
8: static char sccsid[] = "@(#)setuid.c 5.2 (Berkeley) 3/9/86";
9: #endif LIBC_SCCS and not lint
10:
11: /*
12: * Backwards compatible setuid.
13: */
14: setuid(uid)
15: int uid;
16: {
17:
18: return (setreuid(uid, uid));
19: }
Defined functions
setuid
defined in line
14; used 119 times
- in /usr/ingres/source/dbu/copy.c line
224
- in /usr/ingres/source/dbu/help.c line
199
- in /usr/ingres/source/monitor/edit.c line
40
- in /usr/ingres/source/monitor/shell.c line
42
- in /usr/ingres/source/monitor/ttymon.c line
87
- in /usr/ingres/source/support/creatdb.c line
369,
397
- in /usr/ingres/source/support/ingres.y line
1409
- in /usr/src/bin/login.c line
340
- in /usr/src/bin/mail.c line
133,
445,
524,
579
- in /usr/src/bin/ps.c line
445
- in /usr/src/bin/rcp.c line
100,
106,
176,
280
- in /usr/src/bin/su.c line
122
- in /usr/src/etc/cron.c line
206
- in /usr/src/etc/dump/dumpmain.c line
166
- in /usr/src/etc/edquota.c line
140
- in /usr/src/etc/inetd.c line
319
- in /usr/src/etc/restore/tape.c line
66
- in /usr/src/etc/rexecd.c line
185
- in /usr/src/etc/rshd.c line
222
- in /usr/src/etc/timed/timedc.c line
48
- in /usr/src/games/adventure/main.c line
21
- in /usr/src/games/compat/runcompat.c line
70
- in /usr/src/games/compat/unixtraps.c line
466
- in /usr/src/games/fortune/fortune.c line
151
- in /usr/src/games/robots/main.c line
40
- in /usr/src/games/rogue/machdep.c line
120
- in /usr/src/games/snake/snake.c line
256
- in /usr/src/games/trek/shell.c line
23
- in /usr/src/new/X/xterm/main.c line
1121
- in /usr/src/new/emacs/src/emacs.c line
170
- in /usr/src/new/mh/mts/sendmail/smail.c line
148
- in /usr/src/new/mh/sbr/m_getdefs.c line
72,
121
- in /usr/src/new/mh/sbr/m_update.c line
66
- in /usr/src/new/mh/sbr/makedir.c line
32
- in /usr/src/new/mh/support/bboards/bbexp.c line
195
- in /usr/src/new/mh/support/pop/popser.c line
498,
505-509(2)
- in /usr/src/new/mh/uip/bbc.c line
282,
1035
- in /usr/src/new/mh/uip/bbl.c line
290,
485,
515,
536
- in /usr/src/new/mh/uip/inc.c line
342,
366
- in /usr/src/new/mh/uip/msgchk.c line
135
- in /usr/src/new/mh/uip/post.c line
2106,
2359
- in /usr/src/new/mh/uip/rmail.c line
91
- in /usr/src/new/mh/uip/slocal.c line
278
- in /usr/src/new/mh/uip/umhook.c line
133
- in /usr/src/new/mh/zotnet/mf/mmdfI/src/uucp/rmail.c line
104
- in /usr/src/new/news/src/control.c line
313,
529,
657
- in /usr/src/new/news/src/expire.c line
126
- in /usr/src/new/news/src/fullname.c line
84
- in /usr/src/new/news/src/funcs.c line
98,
478,
486
- in /usr/src/new/news/src/ifuncs.c line
394,
589
- in /usr/src/new/news/src/inews.c line
179,
893,
903
- in /usr/src/new/news/src/rfuncs2.c line
79
- in /usr/src/new/nntp/server/misc.c line
463
- in /usr/src/new/notes/src/misc.c line
77,
212
- in /usr/src/new/notes/src/newsinput.c line
46
- in /usr/src/new/notes/src/nfrcv.c line
34
- in /usr/src/new/notes/src/savtxt.c line
63
- in /usr/src/new/notes/src/startup.c line
120
- in /usr/src/old/berknet/net.c line
182
- in /usr/src/old/berknet/netdaemon.c line
502
- in /usr/src/old/berknet/netlpr.c line
127,
144
- in /usr/src/old/berknet/v6mail.c line
422
- in /usr/src/old/vpr/rvcat.c line
383
- in /usr/src/old/vpr/vpd.c line
88
- in /usr/src/ucb/ex/expreserve.c line
335
- in /usr/src/ucb/msgs/msgs.c line
141
- in /usr/src/ucb/rdist/server.c line
1297
- in /usr/src/ucb/rlogin.c line
152
- in /usr/src/ucb/rsh.c line
154
- in /usr/src/ucb/sccs.c line
303,
542,
708
- in /usr/src/ucb/sendbug/bugfiler.c line
115
- in /usr/src/ucb/vacation.c line
376
- in /usr/src/usr.bin/at/at.c line
348
- in /usr/src/usr.bin/at/atrun.c line
318
- in /usr/src/usr.bin/troff/n1.c line
336
- in /usr/src/usr.bin/uucp/cico.c line
178
- in /usr/src/usr.bin/uucp/condevs.c line
543
- in /usr/src/usr.bin/uucp/mailst.c line
74
- in /usr/src/usr.bin/uucp/uucpd.c line
191
- in /usr/src/usr.bin/uucp/uucpname.c line
46
- in /usr/src/usr.bin/uucp/uuxqt.c line
111,
698
- in /usr/src/usr.lib/lpr/printjob.c line
977
- in /usr/src/usr.lib/sendmail/aux/mail-dm.c line
345
- in /usr/src/usr.lib/sendmail/src/deliver.c line
847-852(2),
1222-1227(3)
- in /usr/src/usr.lib/sendmail/src/main.c line
177,
429
- in /usr/src/usr.lib/sendmail/src/readcf.c line
696
Defined variables
sccsid
defined in line
8;
never used