1: /*
   2:  * Copyright (c) 1980 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:  *	@(#)kill_.c	5.1	6/7/85
   7:  */
   8: 
   9: /*
  10:  * send a signal to a process
  11:  *
  12:  * calling sequence:
  13:  *	ierror = kill(pid, signum)
  14:  * where:
  15:  *	pid must be the process id of one of the user's processes
  16:  *	signum must be a valid signal number (see signal(2))
  17:  *	ierror will be 0 if successful; an error code otherwise.
  18:  */
  19: 
  20: #include "../libI77/f_errno.h"
  21: 
  22: long kill_(pid, signum)
  23: long *pid, *signum;
  24: {
  25:     if (*pid < 0 || *pid > 32767L || *signum < 1 || *signum > 16)
  26:         return((long)(errno=F_ERARG));
  27:     if (kill((int)*pid, (int)*signum) != 0)
  28:         return((long)errno);
  29:     return(0L);
  30: }

Defined functions

kill_ defined in line 22; never used
Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1654
Valid CSS Valid XHTML 1.0 Strict