summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-09-10 19:13:05 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-09-10 19:13:05 +0000
commit932a40e86b8472fb8881a71ef8f139a6ba9d0e42 (patch)
treec2e9b265e2faab499e00d5a71c453dfecab22f6e /winsup/cygwin/syscalls.cc
parent6d2d2bce720d5c455b77f1139d623ccca8a924e8 (diff)
downloadcygnal-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/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 0880c3f72..a6a2b1bc7 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -2919,7 +2919,7 @@ long gethostid(void)
#define ETC_SHELLS "/etc/shells"
static int shell_index;
-static FILE *shell_fp;
+static struct __sFILE64 *shell_fp;
extern "C" char *
getusershell ()
@@ -2938,7 +2938,7 @@ getusershell ()
static char buf[MAX_PATH];
int ch, buf_idx;
- if (!shell_fp && !(shell_fp = fopen (ETC_SHELLS, "rt")))
+ if (!shell_fp && !(shell_fp = fopen64 (ETC_SHELLS, "rt")))
{
if (def_shells[shell_index])
return strcpy (buf, def_shells[shell_index++]);