[BACK]Return to ttymsg.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / wall

Diff for /src/usr.bin/wall/ttymsg.c between version 1.16 and 1.17

version 1.16, 2009/10/27 23:59:49 version 1.17, 2015/11/05 22:20:11
Line 31 
Line 31 
  */   */
   
 #include <sys/types.h>  #include <sys/types.h>
   #include <sys/stat.h>
 #include <sys/uio.h>  #include <sys/uio.h>
 #include <signal.h>  #include <signal.h>
 #include <fcntl.h>  #include <fcntl.h>
Line 41 
Line 42 
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <sys/stat.h>  #include <err.h>
   
 char *ttymsg(struct iovec *, int, char *, int);  char *ttymsg(struct iovec *, int, char *, int);
   
Line 151 
Line 152 
                                 (void) close(fd);                                  (void) close(fd);
                                 return (NULL);                                  return (NULL);
                         }                          }
   
                           if (pledge("stdio", NULL) == -1)
                                   err(1, "pledge");
   
                         forked++;                          forked++;
                         /* wait at most tmout seconds */                          /* wait at most tmout seconds */
                         (void) signal(SIGALRM, SIG_DFL);                          (void) signal(SIGALRM, SIG_DFL);

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17