|
|
1.1 root 1: /*
2: * Hunt
3: * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
4: * San Francisco, California
5: *
6: * Copyright (c) 1985 Regents of the University of California.
7: * All rights reserved. The Berkeley software License Agreement
8: * specifies the terms and conditions for redistribution.
9: */
10:
11: # include "hunt.h"
12: # include <signal.h>
13:
14: do_connect(name)
15: char *name;
16: {
17: static long uid;
18: extern char *ttyname();
19:
20: uid = htonl(getuid());
21: (void) write(Socket, (char *) &uid, sizeof uid);
22: (void) write(Socket, name, NAMELEN);
23: (void) strcpy(Buf, ttyname(fileno(stderr)));
24: (void) write(Socket, Buf, NAMELEN);
25: # ifdef MONITOR
26: (void) write(Socket, (char *) &Am_monitor, sizeof Am_monitor);
27: # endif MONITOR
28: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.