1 /* system.h: System-dependent declarations. Include this first.
4 Copyright (C) 1997 Free Software Foundation, Inc.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software Foundation,
18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20 #ifndef TEXINFO_SYSTEM_H
21 #define TEXINFO_SYSTEM_H
27 /* <unistd.h> should be included before any preprocessor test
31 #endif /* HAVE_UNISTD_H */
34 #include <sys/types.h>
42 /* Don't use bcopy! Use memmove if source and destination may overlap,
45 # if !STDC_HEADERS && HAVE_MEMORY_H
55 #define getopt system_getopt
59 extern char *getenv ();
63 extern char *strerror ();
78 #endif /* HAVE_SYS_FILE_H */
81 /* Since <fcntl.h> is POSIX, prefer that to <sys/fcntl.h>.
82 This also avoids some useless warnings on (at least) Linux. */
85 #else /* not HAVE_FCNTL_H */
87 #include <sys/fcntl.h>
88 #endif /* not HAVE_SYS_FCNTL_H */
89 #endif /* not HAVE_FCNTL_H */
90 #endif /* not O_RDONLY */
95 /* Some systems don't declare this function in pwd.h. */
96 struct passwd *getpwnam ();
98 /* Our library routines not included in any system library. */
99 extern void *xmalloc (), *xrealloc ();
100 extern char *xstrdup ();
102 #endif /* TEXINFO_SYSTEM_H */