* 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.
This commit is contained in:
Corinna Vinschen
2003-09-10 19:13:05 +00:00
parent 6d2d2bce72
commit 932a40e86b
9 changed files with 190 additions and 200 deletions

View File

@ -38,11 +38,13 @@
extern "C" {
#endif
extern int opterr; /* if error message should be printed */
extern int optind; /* index into parent argv vector */
extern int optopt; /* character checked for validity */
extern int optreset; /* reset getopt */
extern char *optarg; /* argument associated with option */
#ifndef __INSIDE_CYGWIN__
extern int __declspec(dllimport) opterr; /* if error message should be printed */
extern int __declspec(dllimport) optind; /* index into parent argv vector */
extern int __declspec(dllimport) optopt; /* character checked for validity */
extern int __declspec(dllimport) optreset; /* reset getopt */
extern char __declspec(dllimport) *optarg; /* argument associated with option */
#endif
int getopt (int, char * const *, const char *);