]> git.sur5r.net Git - cc65/commitdiff
This is part of adding getopt() lately but wasn't checked in together with the
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 10 Jul 2010 20:49:06 +0000 (20:49 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 10 Jul 2010 20:49:06 +0000 (20:49 +0000)
other changes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4742 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/unistd.h

index 15c118a8c83008452b24132ab5042f9908238231..2b12ee1dc470626d33f936c08cdf83535b24f931 100644 (file)
@@ -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);