diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-09-10 19:13:05 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-09-10 19:13:05 +0000 |
commit | 932a40e86b8472fb8881a71ef8f139a6ba9d0e42 (patch) | |
tree | c2e9b265e2faab499e00d5a71c453dfecab22f6e /winsup/cygwin/winsup.h | |
parent | 6d2d2bce720d5c455b77f1139d623ccca8a924e8 (diff) | |
download | cygnal-932a40e86b8472fb8881a71ef8f139a6ba9d0e42.tar.gz cygnal-932a40e86b8472fb8881a71ef8f139a6ba9d0e42.tar.bz2 cygnal-932a40e86b8472fb8881a71ef8f139a6ba9d0e42.zip |
* Makefile.in (DLL_OFILES): Add getopt.o and iruserok.o.
* cygwin.din: Export __check_rhosts_file, __rcmd_errstr, optarg,
opterr, optind, optopt, optreset, getopt, getopt_long, iruserok
and ruserok.
* getopt.c: Moved from lib to here. Define opt* variables as
dllexport.
* iruserok.c: Moved from lib to here. Rearrange function order.
Prefer using 64/32 bit functions.
* syscalls.cc (shell_fp): Define as struct __sFILE64.
(getusershell): Use fopen64 instead of fopen.
* winsup.h: Add declarations for seteuid32, fopen64,
cygwin_gethostbyname and cygwin_inet_addr.
* include/getopt.h: Declare opt* variables dllimport.
* include/cygwin/version.h: Bump API minor number.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 68a386c7c..83db260ab 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -37,14 +37,20 @@ details. */ #include <sys/types.h> #include <sys/strace.h> +/* Declarations for functions used in C and C++ code. */ #ifdef __cplusplus extern "C" { #endif extern __uid32_t getuid32 (void); extern __uid32_t geteuid32 (void); +extern int seteuid32 (__uid32_t); extern __gid32_t getegid32 (void); extern struct passwd *getpwuid32 (__uid32_t); -struct passwd *getpwnam (const char *); +extern struct passwd *getpwnam (const char *); +extern struct __sFILE64 *fopen64 (const char *, const char *); +extern struct hostent *cygwin_gethostbyname (const char *name); +extern unsigned long cygwin_inet_addr (const char *cp); + #ifdef __cplusplus } #endif |