1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT.
2 Copyright (C) 1994, 2002, 2003, 2004, 2005, 2006, 2007,
3 2008, 2009, 2010 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
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24 /* Include these headers now so we don't have to worry about include
25 order dependencies in common source files. */
33 void sleep(unsigned long seconds
);
34 char *getwd (char *dir
);
37 char * cuserid (char * s
);
41 int setuid (unsigned uid
);
42 int setegid (unsigned gid
);
43 char * getpass (const char * prompt
);
44 int fchown (int fd
, unsigned uid
, unsigned gid
);
47 #define bzero(b, l) memset(b, 0, l)
48 #define bcopy(s, d, l) memcpy(d, s, l)
49 #define bcmp(a, b, l) memcmp(a, b, l)
52 /* redirect or undo interceptions created by config.h */
54 #define access _access
72 #define mktemp _mktemp
83 #define unlink _unlink
87 /* map to MSVC names */
88 #define execlp _execlp
89 #define execvp _execvp
90 #define fdopen _fdopen
92 #define fileno _fileno
94 #define getcwd _getcwd
96 #define getpid _getpid
97 #define isatty _isatty
98 #define locking _locking
100 #define _longjmp longjmp
103 #define pclose _pclose
107 #define rindex strrchr
109 /* Make standard winsock definitions available if needed. */
115 /* arch-tag: 93444f66-7b98-4aa5-a5cd-01444094af28
116 (do not change this comment) */