File: sysdep.h.in

package info (click to toggle)
scsh 0.5.1-2
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 6,540 kB
  • ctags: 8,656
  • sloc: lisp: 39,346; ansic: 13,466; sh: 1,669; makefile: 624
file content (139 lines) | stat: -rw-r--r-- 4,512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/* sysdep.h.in for Scheme 48.  Originally generated automatically from
   configure.in by autoheader, but then modified manually to add
   NLIST_HAS_N_NAME, etc.  The "configure" script creates sysdep.h
   from this file.  If "configure" doesn't work for you, copy this
   file to sysdep.h and make any appriopriate modifications.  If
   you're not sure what modifications would be appriopriate, it is
   generally safe to leave things as they are. */


/* Define const to empty if the ANSI C "const" keyword doesn't work.  */
#undef const

/* Define this appropriately as the return value of a signal handler on
   your system. */
#undef RETSIGTYPE

/* Define FILE_HAS__CNT if streams, as defined in <stdio.h>, have _cnt
   components.  This is widespread but basically highly unportable.
   It is used in order to implement CHAR-READY?. */
#undef FILE_HAS__CNT

/* Define HAVE_SELECT if the BSD-derived select() call is available.
   select() is used in order to implement CHAR-READY?. */
#undef HAVE_SELECT

/* Define HAVE_SETITIMER if the BSD-derived setitimer() call is
   available.  In the absence of setitimer(), alarm() will be used.*/
#undef HAVE_SETITIMER

/* Define HAVE_GETTIMEOFDAY if you have gettimeofday().  This is a BSD
   thing that returns elapsed time to the nearest microsecond (yeah,
   right).  In the absence of gettimeofday(), ftime() or time() will
   be used. */
#undef HAVE_GETTIMEOFDAY

/* Define if you have ftime() and its associated header file sys/timeb.h.
   This is an ancient Unix version 7 thing, but if gettimeofday()
   isn't available then it may be the only way to get sub-second
   resolution for elapsed time. */
#undef HAVE_FTIME
#undef HAVE_SYS_TIMEB_H

/* Define if you have the nlist() function.  This is a
   not-very-portable way of looking up external symbols. */
#undef HAVE_NLIST

/* Define if you have the nlist.h header file.  Some systems (linux)
   have nlist, but not nlist.h */
#undef HAVE_NLIST_H

/* Define if struct nlist, defined in <nlist.h>, has an n_name component.
   If it doesn't then we expect it to have an n_un component. */
#undef NLIST_HAS_N_NAME

/* Define if you have ANSI strerror. */
#undef HAVE_STRERROR

/* Define if you have dlopen() and related routines (dynamic linking
   of shared object files). */
#undef HAVE_DLOPEN

/* These are used for locating shared object files. */
/* Define if you have the pathfind() function. */
#undef HAVE_PATHFIND
/* Define if you have libgen.h */
#undef HAVE_LIBGEN_H

/* Define if you have the chroot() system call (quite inessential!). */
#undef HAVE_CHROOT

/* Define if you have the Posix sigaction() call. */
#undef HAVE_SIGACTION

/* Define if you have socket() and related functions. */
#undef HAVE_SOCKET

/* Define if Posix "time.h" include file is <posix/time.h> instead of
   the standard <time.h>.  (MIPS RISC/OS) */
#undef POSIX_TIME_H

/* Define this if /bin/ld exists and accepts a BSD-style -A argument
   (for dynamic loading of .o files). */
#undef ANCIENT_DYNLOAD

/* Define if fd_set and friends need sys/select.h */
#undef HAVE_SYS_SELECT_H

#if !defined(HAVE_SIGACTION)
struct sigaction {
  void (*sa_handler)();
  int sa_mask;
  int sa_flags;
};

/* for HPUX with CC */
#undef _HPUX_SOURCE

/* for HPUX with CC */
#undef hpux

#define sigaction(sig, act, oact) signal((sig), (act)->sa_handler)
#define sigemptyset(foo) 0
#endif

/* Under HPUX, select() is declared
      extern int select(size_t, int *, int *, int *, const struct timeval *);
   in sys/time.h.  This is brain-dead, since the FD_SET, FD_CLR, and FD_ZERO
   macros defined in HPUX's sys/types.h assume fd sets are a struct type, 
   and therefore blow up if given int *'s. So the four procedures that
   hack fd_set's are not even type-consistent, even under C's lame rules. 
   Give me a break. 
       -Olin
*/

#if defined(hpux)
# define select1(nfds, r, w, x, t) select(nfds, (int*)r, (int*)w, (int*)x, t)
#else
# define select1 select
#endif


/* Define USCORE if your c externals are prepended with an underscore */
#undef USCORE

/* Define DLSYM_ADDS_USCORE if your system's dlsym() prepends an underscore
   to symbol names. */
#undef DLSYM_ADDS_USCORE

/* Define if you have POSIX tzname (Losing sunos4...). */
#undef HAVE_TZNAME

/* Define if your tm struct in <time.h> has a tm_gmtoff field. */
#undef HAVE_GMTOFF

/* Define if your sys_errlist is a const definition */
#undef HAVE_CONST_SYS_ERRLIST

/* Include info we know about the system from config.scsh */
#include "scsh/machine/sysdep.h"