annotate src/s/sol2.h @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents 0d2f883870bc
children 59463afc5666
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
3 #define __EXTENSIONS__
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 #define SOLARIS2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 /* SIGIO seems to be working under Solaris and it makes ^G work better... */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 #undef BROKEN_SIGIO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 /* eggert@twinsun.com said these work in Solaris.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 Perhaps they work in all kinds of SVR4, but this is more conservative. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 #undef BROKEN_TIOCGETC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 #undef BROKEN_TIOCGWINSZ
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 /* This triggers a conditional in xfaces.c. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 #define XOS_NEEDS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 #define POSIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #ifndef NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 /* The standard Solaris library nsl has this function in it which is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 supposed to only be in the BSD compat stuff. Yuck. Of course,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 there isn't a prototype for it other than in /usr/ucbinclude. */
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 74
diff changeset
25 int gethostname (char *, size_t);
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
26
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
27 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
28 Sun has promised to fix setjmp.h */
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
29 #if __STDC__ == 1
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
30 #ifndef __GNUC__
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
31 #define _POSIX_C_SOURCE 1
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
32 #include <setjmp.h>
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
33 #undef _POSIX_C_SOURCE
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
34 #endif /* __GNUC__ */
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
35 #endif /* __STDC__ */
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
36
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 /* XEmacs: Solaris include files miss this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 struct timeval;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 int utimes (char *file, struct timeval *tvp);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 /* XEmacs addition: to this to avoid having problems when we later
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 define INT_MAX etc. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #include <limits.h>
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
44 #endif /* C_CODE */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 /* XEmacs change -- removed flags to force K & R compilation */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #undef LIBS_SYSTEM
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 98
diff changeset
53 #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 /* XEmacs change -- Mark Borges says this is needed. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #define LIBS_TERMCAP -ltermlib
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 /* #### XEmacs change: until we've gotten the Energize builds converted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 over to use configure instead of ymakefile, we still need this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 #if defined (NOT_C_CODE) && defined (ENERGIZE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 # define LIBS_DEBUG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 # undef LIBS_SYSTEM
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 98
diff changeset
65 # define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 # define START_FILES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 # define LD_CMD $(CC)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 not work with a static definition of malloc(). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 /* We want to be able to test out ralloc.c. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 /* #define SYSTEM_MALLOC */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 /* XEmacs: there used to be a special definition of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 PTY_TTY_NAME_SPRINTF here that was identical to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 other SYSV R4 definitions except that it didn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 block SIGCHLD around the call to grantpt(). This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 is *not* in 19.29 and is almost certainly incorrect.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 /* XEmacs change from Georg.Nikodym@Canada.Sun.COM. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 #ifdef UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 #undef UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 #define UNEXEC unexsol2.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 least under 2.4 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #undef _setjmp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #define _setjmp setjmp