]> git.sur5r.net Git - cc65/blobdiff - include/unistd.h
Remove this copy of the apple include file - a copy was added to asminc
[cc65] / include / unistd.h
index 039775e654249754682fbd5d3c090abcc3151ce7..15c118a8c83008452b24132ab5042f9908238231 100644 (file)
@@ -39,7 +39,7 @@
 
 
 /*****************************************************************************/
-/*                                  Data                                    */
+/*                                  Data                                    */
 /*****************************************************************************/
 
 
 #define STDOUT_FILENO  1
 #define STDERR_FILENO  2
 
+/* WE need size_t */
+#ifndef _HAVE_size_t
+#define _HAVE_size_t
+typedef unsigned size_t;
+#endif
+
 /* We need off_t if sys/types is not included */
-#ifndef __HAVE_off_t
-#define __HAVE_off_t
+#ifndef _HAVE_off_t
+#define _HAVE_off_t
 typedef long int off_t;
 #endif
 
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                  Code                                    */
 /*****************************************************************************/
 
 
@@ -71,6 +77,7 @@ int __fastcall__ unlink (const char* name);   /* Same as remove() */
 
 /* Directories */
 int __fastcall__ chdir (const char* name);
+char* __fastcall__ getcwd (char* buf, size_t size);
 int mkdir (const char* name, ...);             /* May take a mode argument */
 int __fastcall__ rmdir (const char* name);