1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT.
2 Copyright (C) 1994, 2002, 2003, 2004, 2005,
3 2006 Free Software Foundation, Inc.
5 This file is part of GNU Emacs.
7 GNU Emacs is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any later
12 GNU Emacs is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs; see the file COPYING. If not, write to the
19 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
27 /* Include these headers now so we don't have to worry about include
28 order dependencies in common source files. */
36 void sleep(unsigned long seconds
);
37 char *getwd (char *dir
);
40 char * cuserid (char * s
);
43 struct passwd
* getpwuid (int uid
);
44 char * getpass (const char * prompt
);
45 int fchown (int fd
, int uid
, int gid
);
48 #define bzero(b, l) memset(b, 0, l)
49 #define bcopy(s, d, l) memcpy(d, s, l)
50 #define bcmp(a, b, l) memcmp(a, b, l)
53 /* redirect or undo interceptions created by config.h */
55 #define access _access
73 #define mktemp _mktemp
84 #define unlink _unlink
88 /* map to MSVC names */
89 #define execlp _execlp
90 #define execvp _execvp
91 #define fcloseall _fcloseall
92 #define fdopen _fdopen
93 #define fgetchar _fgetchar
95 #define fileno _fileno
97 #define flushall _flushall
98 #define fputchar _fputchar
99 #define getcwd _getcwd
101 #define getpid _getpid
102 #define isatty _isatty
103 #define locking _locking
105 #define _longjmp longjmp
108 #define pclose _pclose
113 #define rindex strrchr
115 /* Make standard winsock definitions available if needed. */
121 /* arch-tag: 93444f66-7b98-4aa5-a5cd-01444094af28
122 (do not change this comment) */