From: uz Date: Sat, 10 Jul 2010 20:49:06 +0000 (+0000) Subject: This is part of adding getopt() lately but wasn't checked in together with the X-Git-Tag: V2.13.3~693 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4cd7eec075d5886e9f3b92584b5b89780c4c6790;p=cc65 This is part of adding getopt() lately but wasn't checked in together with the other changes. git-svn-id: svn://svn.cc65.org/cc65/trunk@4742 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/unistd.h b/include/unistd.h index 15c118a8c..2b12ee1dc 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2003 Ullrich von Bassewitz */ -/* Römerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2003-2010, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -61,6 +61,10 @@ typedef unsigned size_t; typedef long int off_t; #endif +/* Stuff for getopt */ +extern char *optarg; +extern int optind, opterr, optopt; + /*****************************************************************************/ @@ -83,6 +87,7 @@ int __fastcall__ rmdir (const char* name); /* Others */ unsigned __fastcall__ sleep (unsigned seconds); +int __fastcall__ getopt (int argc, char* const* argv, const char* optstring);