"Fossies" - the Fresh Open Source Software Archive

Member "arpwatch-NG1.7/lbl/os-sunos3.h" (8 Feb 2005, 6110 Bytes) of archive /linux/misc/old/arpwatch-NG1.7.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Copyright (c) 1990, 1993, 1994, 1995, 1996
    3  *  The Regents of the University of California.  All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that: (1) source code distributions
    7  * retain the above copyright notice and this paragraph in its entirety, (2)
    8  * distributions including binary code include the above copyright notice and
    9  * this paragraph in its entirety in the documentation or other materials
   10  * provided with the distribution, and (3) all advertising materials mentioning
   11  * features or use of this software display the following acknowledgement:
   12  * ``This product includes software developed by the University of California,
   13  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
   14  * the University nor the names of its contributors may be used to endorse
   15  * or promote products derived from this software without specific prior
   16  * written permission.
   17  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
   18  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
   19  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
   20  *
   21  * @(#) $Header: os-sunos3.h,v 1.23 96/11/29 15:17:51 leres Exp $ (LBL)
   22  */
   23 
   24 /* Prototypes missing in SunOS 3 */
   25 #ifdef FILE
   26 int _filbuf(FILE *);
   27 int _flsbuf(u_char, FILE *);
   28 int fclose(FILE *);
   29 int fflush(FILE *);
   30 int fprintf(FILE *, const char *, ...);
   31 int fputc(int, FILE *);
   32 int fputs(const char *, FILE *);
   33 u_int   fread(void *, u_int, u_int, FILE *);
   34 int fseek(FILE *, long, int);
   35 u_int   fwrite(const void *, u_int, u_int, FILE *);
   36 void    rewind(FILE *);
   37 void    setbuf(FILE *, char *);
   38 int setlinebuf(FILE *);
   39 u_int   vfprintf(FILE *, const char *, char *); /* arg 3 is really va_list */
   40 #endif
   41 
   42 #if __GNUC__ <= 1
   43 int read(int, const char *, u_int);
   44 int write(int, const char *, u_int);
   45 #endif
   46 
   47 __dead  void abort(void) __attribute__((volatile));
   48 int abs(int);
   49 #ifdef  __STDC__
   50 struct  sockaddr;
   51 #endif
   52 int accept(int, struct sockaddr *, int *);
   53 int access(const char *, int);
   54 u_int   alarm(u_int);
   55 int atoi(const char *);
   56 long    atol(const char *);
   57 int bcmp(const void *, const void *, u_int);
   58 void    bcopy(const void *, void *, u_int);
   59 void    bzero(void *, u_int);
   60 char    *calloc(u_int, u_int);
   61 int chdir(const char *);
   62 int chmod(const char *, int);
   63 int chown(const char *, int, int);
   64 int close(int);
   65 int connect(int, struct sockaddr *, int);
   66 char    *crypt(const char *, const char *);
   67 int daemon(int, int);
   68 void    endgrent(void);
   69 void    endpwent(void);
   70 void    endservent(void);
   71 int execl(const char *, ...);
   72 int execlp(const char *, ...);
   73 int execv(const char *, char * const *);
   74 __dead  void exit(int) __attribute__((volatile));
   75 __dead  void _exit(int) __attribute__((volatile));
   76 int fchmod(int, int);
   77 int fchown(int, int, int);
   78 int fcntl(int, int, int);
   79 int ffs(int);
   80 int flock(int, int);
   81 int fork(void);
   82 void    free(void *);
   83 #ifdef  __STDC__
   84 struct  stat;
   85 #endif
   86 int fstat(int, struct stat *);
   87 int ftruncate(int, u_long);
   88 int getdtablesize(void);
   89 char    *getenv __P((char *));
   90 int gethostname(char *, int);
   91 int getopt(int, char * const *, const char *);
   92 int getpagesize(void);
   93 char    *getlogin __P((void));
   94 char    *getpass(char *);
   95 int getpeername(int, struct sockaddr *, int *);
   96 int getpid(void);
   97 int getppid(void);
   98 int getpriority(int, int);
   99 int getsockname(int, struct sockaddr *, int *);
  100 int getsockopt(int, int, int, char *, int *);
  101 #ifdef  __STDC__
  102 struct  timeval;
  103 struct  timezone;
  104 #endif
  105 int gettimeofday(struct timeval *, struct timezone *);
  106 int getuid(void);
  107 char    *getusershell();
  108 int ioctl(int, int, caddr_t);
  109 int initgroups(const char *, int);
  110 int iruserok(u_long, int, char *, char *);
  111 int isatty(int);
  112 int kill(int, int);
  113 int listen(int, int);
  114 #ifdef  __STDC__
  115 struct  utmp;
  116 #endif
  117 void    login(struct utmp *);
  118 int logout(const char *);
  119 __dead  void longjmp(int *, int) __attribute__((volatile));
  120 off_t   lseek(int, off_t, int);
  121 int lstat(const char *, struct stat *);
  122 void    openlog(const char *, int, int);
  123 char    *malloc(u_int);
  124 char    *memcpy(char *, const char *, u_int);
  125 int mkdir(const char *, int);
  126 int open(char *, int, ...);
  127 int pause(void);
  128 void    perror(const char *);
  129 int printf(const char *, ...);
  130 int puts(const char *);
  131 long    random(void);
  132 int rcmd(char **, u_short, char *, char *, char *, int *);
  133 char    *realloc(char *, int);
  134 int recv(int, char *, u_int, int);
  135 int rresvport(int *);
  136 int sigblock(int);
  137 int (*signal (int, int (*) (int))) (int);
  138 int sigpause(int);
  139 int sigsetmask(int);
  140 int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
  141 int send(int, char *, u_int, int);
  142 int setenv(const char *, const char *, int);
  143 int seteuid(int);
  144 int setgid(int);
  145 int setjmp(int *);
  146 int setpriority(int, int, int);
  147 int setsockopt(int, int, int, char *, int);
  148 int setuid(int);
  149 int sleep(u_int);
  150 int snprintf(char *, size_t, const char *, ...);
  151 int socket(int, int, int);
  152 int socketpair(int, int, int, int *);
  153 char    *sprintf(char *, const char *, ...);
  154 void    srandom(int);
  155 int sscanf(char *, const char *, ...);
  156 #ifdef  __STDC__
  157 struct  stat;
  158 #endif
  159 int stat(const char *, struct stat *);
  160 int strcmp(const char *, const char *);
  161 char    *strerror(int);
  162 int strcasecmp(const char *, const char *);
  163 char    *strcpy(char *, const char *);
  164 char    *strdup(const char *);
  165 int strncasecmp(const char *, const char *, int);
  166 int strlen(const char *);
  167 long    strtol(const char *, char **, int);
  168 void    sync(void);
  169 void    syslog(int, const char *, ...);
  170 long    tell(int);
  171 time_t  time(time_t *);
  172 int truncate(const char *, u_long);
  173 char    *ttyname __P((int));
  174 int unlink(const char *);
  175 void    unsetenv(const char *);
  176 int vfork(void);
  177 char    *vsprintf(char *, const char *, ...);
  178 int shutdown(int, int);
  179 int umask(int);
  180 int utimes(const char *, struct timeval *);
  181 #ifdef  __STDC__
  182 union   wait;
  183 struct  rusage;
  184 #endif
  185 int wait(int *);
  186 int wait3(int *, int, struct rusage *);
  187 
  188 /* Ugly signal hacking */
  189 #ifdef BADSIG
  190 #undef BADSIG
  191 #define BADSIG      (int (*)(int))-1
  192 #undef SIG_DFL
  193 #define SIG_DFL     (int (*)(int))0
  194 #undef SIG_IGN
  195 #define SIG_IGN     (int (*)(int))1
  196 
  197 #ifdef KERNEL
  198 #undef SIG_CATCH
  199 #define SIG_CATCH   (int (*)(int))2
  200 #endif
  201 #undef SIG_HOLD
  202 #define SIG_HOLD    (int (*)(int))3
  203 #endif