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: }

Defined functions

do_connect defined in line 14; used 1 times
Last modified: 1985-11-15
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1075
Valid CSS Valid XHTML 1.0 Strict