1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT.
2 Copyright (C) 1994 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
6 GNU Emacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any later
11 GNU Emacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.
26 /* Include these headers now so we don't have to worry about include
27 order dependencies in common source files. */
35 void sleep(unsigned long seconds
);
36 char *getwd (char *dir
);
39 char * cuserid (char * s
);
42 struct passwd
* getpwuid (int uid
);
43 char * getpass (const char * prompt
);
44 int fchown (int fd
, int uid
, int 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 fcloseall _fcloseall
91 #define fdopen _fdopen
92 #define fgetchar _fgetchar
93 #define fileno _fileno
94 #define flushall _flushall
95 #define fputchar _fputchar
96 #define getcwd _getcwd
98 #define getpid _getpid
99 #define isatty _isatty
100 #define locking _locking
102 #define _longjmp longjmp
105 #define pclose _pclose
110 #define rindex strrchr
112 /* Make standard winsock definitions available if needed. */