1 /* $Header: /p/tcsh/cvsroot/tcsh/sh.types.h,v 3.43 2006/01/12 19:55:38 christos Exp $ */
2 /* sh.types.h: Do the necessary typedefs for each system.
3 * Up till now I avoided making this into a separate file
4 * But I just wanted to eliminate the whole mess from sh.h
5 * In reality this should not be here! It is OS and MACHINE
6 * dependent, even between different revisions of OS's...
7 * Ideally there should be a way in c, to find out if something
8 * was typedef'ed, but unfortunately we rely in cpp kludges.
9 * Someday, this file will be removed...
14 * Copyright (c) 1980, 1991 The Regents of the University of California.
15 * All rights reserved.
17 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions
20 * 1. Redistributions of source code must retain the above copyright
21 * notice, this list of conditions and the following disclaimer.
22 * 2. Redistributions in binary form must reproduce the above copyright
23 * notice, this list of conditions and the following disclaimer in the
24 * documentation and/or other materials provided with the distribution.
25 * 3. Neither the name of the University nor the names of its contributors
26 * may be used to endorse or promote products derived from this software
27 * without specific prior written permission.
29 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
30 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
33 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
65 *** Suns running sunos3.x - sunos4.1.x
67 #if (defined(sun) || defined(__sun__)) && SYSVREL == 0
74 # endif /* __GNUC__ */
76 # ifndef __sys_stdtypes_h
77 # define __sys_stdtypes_h
80 typedef unsigned int speed_t
;
82 # endif /* __sys_stdtypes.h */
88 # endif /* _SPEED_T */
89 #endif /* (sun || __sun__) && SYSVREL == 0 */
93 *** Hp's running hpux 7.0 or 8.0
108 /* I thought POSIX was supposed to protect all typedefs! */
110 # endif /* _SPEED_T */
112 # if HPUXVERSION < 1100 /* XXX: Not true for 11.0 */
113 extern uid_t
getuid(), geteuid();
114 extern gid_t
getgid(), getegid();
115 extern pid_t
getpid();
117 extern void perror();
122 extern unsigned int alarm();
123 extern unsigned int sleep();
124 # endif /* HPUXVERSION < 1100 */
125 # if HPUXVERSION < 800 /* XXX: Not true for 8.0 */
127 # endif /* HPUXVERSION < 800 */
130 #if (defined(_MINIX) && !defined(_MINIX_VMD)) || defined(__EMX__)
131 typedef char * caddr_t
;
132 #endif /* (_MINIX && !_MINIX_VMD) || __EMX__ */
135 *** hp9000s500 running hpux-5.2
140 typedef char * ptr_t
;
142 #endif /* hp9000s500 */
145 *** Data General AViiON 88000 or Pentium, running dgux 5.4R3 or R4.11
155 *** BSD RENO advertises itself as POSIX, but
156 *** it is missing speed_t
161 typedef unsigned int speed_t
;
162 # endif /* _SPEED_T */
172 typedef unsigned int speed_t
;
173 # endif /* _SPEED_T */
178 *** some posix & 4.4 BSD changes (pid_t is a short)
188 *** Pyramid, BSD universe
189 *** In addition to the size_t
200 *** rs6000, ibm370, ps2, rt: running flavors of aix.
211 # endif /* _SPEED_T */
219 #if defined(ultrix) || defined(__ultrix)
225 typedef void * ptr_t
;
227 #endif /* ultrix || __ultrix */
231 *** Silicon graphics IRIS4D running IRIX3_3
233 #if defined(IRIS4D) && defined(IRIX3_3)
237 #endif /* IRIS4D && IRIX3_3 */
250 *** Concurrent (Masscomp) running RTU 4.1A & RTU 5.0.
251 **** [RTU 6.0 from mike connor]
252 *** Added, DAS DEC-90.
261 # endif /* _SPEED_T */
263 #endif /* masscomp */
266 * Motorola MPC running R32V2 (sysV88)
275 * Amdahl running UTS (Sys V3)
284 * Tektronix XD88/10 running UTekV (Sys V3)
293 * BBN Butterfly gp1000
299 #endif /* butterfly */
302 * Alliant FX-2800/FX-80
309 typedef int pid_t
; /* FX-80 */
311 typedef short pid_t
; /* FX-2800 */
325 * Apollo running Domain/OS SR10.3 or greater
330 typedef int pid_t
; /* Older versions might not like that */
335 *** a pdp/11, running 2BSD
344 *** a Harris, running CX/UX
353 *** Catch all for non POSIX and/or non ANSI systems.
354 *** Systems up to spec *should* define these automatically
355 *** I am open to suggestions on how to do this correctly!
367 typedef unsigned int speed_t
;
368 # endif /* _SPEED_T */
372 typedef char * ptr_t
;
377 typedef char * ioctl_t
; /* Third arg of ioctl */
378 # endif /* _IOCTL_T */
385 *** This is our own junk types.
389 typedef void * ptr_t
;
394 typedef void * ioctl_t
; /* Third arg of ioctl */
395 #endif /* _IOCTL_T */
397 #endif /* _h_sh_types */