os-sunos4.h (17683) | os-sunos4.h (26175) |
---|---|
1/* 2 * Copyright (c) 1989, 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 --- 4 unchanged lines hidden (view full) --- 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 * | 1/* 2 * Copyright (c) 1989, 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 --- 4 unchanged lines hidden (view full) --- 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-sunos4.h,v 1.31 96/06/24 02:39:07 leres Exp $ (LBL) | 21 * @(#) $Header: os-sunos4.h,v 1.32 96/11/29 15:18:18 leres Exp $ (LBL) |
22 */ 23 | 22 */ 23 |
24#define SIGRET void 25#define SIGRETVAL 26#define WAITSTATUS int 27 | |
28/* Prototypes missing in SunOS 4 */ 29#ifdef FILE 30int _filbuf(FILE *); 31int _flsbuf(u_char, FILE *); 32int fclose(FILE *); 33int fflush(FILE *); 34int fgetc(FILE *); 35int fprintf(FILE *, const char *, ...); --- 160 unchanged lines hidden (view full) --- 196struct rusage; 197#endif 198int utimes(const char *, struct timeval *); 199#if __GNUC__ <= 1 200int wait(int *); 201pid_t wait3(int *, int, struct rusage *); 202#endif 203 | 24/* Prototypes missing in SunOS 4 */ 25#ifdef FILE 26int _filbuf(FILE *); 27int _flsbuf(u_char, FILE *); 28int fclose(FILE *); 29int fflush(FILE *); 30int fgetc(FILE *); 31int fprintf(FILE *, const char *, ...); --- 160 unchanged lines hidden (view full) --- 192struct rusage; 193#endif 194int utimes(const char *, struct timeval *); 195#if __GNUC__ <= 1 196int wait(int *); 197pid_t wait3(int *, int, struct rusage *); 198#endif 199 |
204extern int opterr, optind, optopt; 205extern char *optarg; 206 207/* Map protocol types */ 208#define ETHERPUP_IPTYPE ETHERTYPE_IP 209#define ETHERPUP_REVARPTYPE ETHERTYPE_REVARP 210#define ETHERPUP_ARPTYPE ETHERTYPE_ARP 211 | |
212/* Ugly signal hacking */ 213#ifdef SIG_ERR 214#undef SIG_ERR 215#define SIG_ERR (void (*)(int))-1 216#undef SIG_DFL 217#define SIG_DFL (void (*)(int))0 218#undef SIG_IGN 219#define SIG_IGN (void (*)(int))1 220 221#ifdef KERNEL 222#undef SIG_CATCH 223#define SIG_CATCH (void (*)(int))2 224#endif 225#undef SIG_HOLD 226#define SIG_HOLD (void (*)(int))3 227#endif | 200/* Ugly signal hacking */ 201#ifdef SIG_ERR 202#undef SIG_ERR 203#define SIG_ERR (void (*)(int))-1 204#undef SIG_DFL 205#define SIG_DFL (void (*)(int))0 206#undef SIG_IGN 207#define SIG_IGN (void (*)(int))1 208 209#ifdef KERNEL 210#undef SIG_CATCH 211#define SIG_CATCH (void (*)(int))2 212#endif 213#undef SIG_HOLD 214#define SIG_HOLD (void (*)(int))3 215#endif |
228 229#ifndef S_ISTXT 230#define S_ISTXT S_ISVTX 231#endif 232 233#ifndef S_IRWXU 234#define S_IRWXU 0000700 /* RWX mask for owner */ 235#define S_IRWXG 0000070 /* RWX mask for group */ 236#define S_IRWXO 0000007 /* RWX mask for other */ 237#endif | |