15139
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
2 Copyright (C) 1994 Free Software Foundation, Inc.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
3
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
4 This file is part of GNU Emacs.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
5
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
6 GNU Emacs is free software; you can redistribute it and/or modify it
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
7 under the terms of the GNU General Public License as published by the
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
8 Free Software Foundation; either version 2, or (at your option) any later
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
9 version.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
10
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
11 GNU Emacs is distributed in the hope that it will be useful, but WITHOUT
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
14 more details.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
15
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
16 You should have received a copy of the GNU General Public License along
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
17 with GNU Emacs; see the file COPYING. If not, write to the Free Software
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
18 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
19
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
20 */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
21
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
22 #include <pwd.h>
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
23 #include <malloc.h>
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
24
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
25 void sleep(int seconds);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
26 int getwd (char *dir);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
27 int getppid(void);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
28 char * getlogin ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
29 char * cuserid (char * s);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
30 int getuid ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
31 int setuid (int uid);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
32 struct passwd * getpwuid (int uid);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
33 char * getpass (const char * prompt);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
34 int fchown (int fd, int uid, int gid);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
35
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
36 #ifndef BSTRING
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
37 #define bzero(b, l) memset(b, 0, l)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
38 #define bcopy(s, d, l) memcpy(d, s, l)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
39 #define bcmp(a, b, l) memcmp(a, b, l)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
40
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
41 #define index strchr
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
42 #define rindex strrchr
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
43 #endif
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
44
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
45 /* end of ntlib.h */
|