Changeset 361
- Timestamp:
- Jul 11, 2003, 5:25:48 PM (22 years ago)
- Location:
- trunk/src/emx/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/io.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r360 r361 8 8 #endif 9 9 10 #if !defined (_SIZE_T) 11 #define _SIZE_T 12 typedef unsigned long size_t; 10 #include <sys/_types.h> 11 12 #if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */ 13 typedef __size_t size_t; 14 #define _SIZE_T_DECLARED 15 #define _SIZE_T /* bird: emx */ 16 #endif 17 18 #if !defined(_SSIZE_T_DECLARED) && !defined(_SSIZE_T) /* bird: emx */ 19 typedef __ssize_t ssize_t; 20 #define _SSIZE_T_DECLARED 21 #define _SSIZE_T /* bird: emx */ 22 #endif 23 24 #if !defined(_OFF_T_DECLARED) && !defined(_OFF_T) /* bird:emx */ 25 typedef __off_t off_t; /* file offset */ 26 #define _OFF_T_DECLARED 27 #define _OFF_T /* bird: emx */ 13 28 #endif 14 29 … … 39 54 #ifndef _FTRUNCATE_DECLARED 40 55 #define _FTRUNCATE_DECLARED 41 int ftruncate (int, long);56 int ftruncate(int, off_t); 42 57 #endif 43 58 int ioctl (int, unsigned long request, ...); … … 45 60 #ifndef _LSEEK_DECLARED 46 61 #define _LSEEK_DECLARED 47 long lseek (int, long, int);62 off_t lseek(int, off_t, int); 48 63 #endif 49 64 int mkstemp (char *); … … 51 66 int open (__const__ char *, int, ...); 52 67 int pipe (int *); 53 int read (int, void *, size_t);68 ssize_t read (int, void *, size_t); 54 69 int select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *); 55 70 int setmode (int, int); … … 57 72 int stat (__const__ char *, struct stat *); 58 73 long tell (int); 59 #ifndef _ LSEEK_DECLARED60 #define _ LSEEK_DECLARED61 int truncate (char *, long);74 #ifndef _TRUNCATE_DECLARED 75 #define _TRUNCATE_DECLARED 76 int truncate(const char *, off_t); 62 77 #endif 63 78 int umask (int); … … 77 92 int _fstat (int, struct stat *); 78 93 int _fsync (int); 79 int _ftruncate (int, long); 94 #ifndef __FTRUNCATE_DECLARED 95 #define __FTRUNCATE_DECLARED 96 int _ftruncate(int, off_t); 97 #endif 80 98 int _imphandle (int); 81 99 int _ioctl (int, unsigned long request, ...); 82 100 int _isatty (int); 83 101 int _isterm (int); 84 long _lseek (int, long, int); 102 #ifndef __LSEEK_DECLARED 103 #define __LSEEK_DECLARED 104 off_t _lseek(int, off_t, int); 105 #endif 85 106 int _mkstemp (char *); 86 107 char *_mktemp (char *); 87 108 int _open (__const__ char *, int, ...); 88 109 int _pipe (int *); 89 int _read (int, void *, size_t);110 ssize_t _read (int, void *, size_t); 90 111 int _seek_hdr (int); 91 112 int _select (int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/stdlib.h
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r360 r361 7 7 extern "C" { 8 8 #endif 9 10 #include <sys/_types.h> 9 11 10 12 #if !defined (_SIZE_T) … … 16 18 #define _WCHAR_T 17 19 typedef unsigned short wchar_t; 20 #endif 21 22 #ifndef _INTPTR_T_DECLARED 23 typedef __intptr_t intptr_t; 24 typedef __uintptr_t uintptr_t; 25 #define _INTPTR_T_DECLARED 18 26 #endif 19 27 … … 151 159 152 160 unsigned alarm (unsigned); 153 void *brk (void *);161 int brk(const void *); 154 162 int chdir (__const__ char *); 155 163 char *gcvt (double, int, char *); … … 161 169 int putenv (__const__ char *); 162 170 int rmdir (__const__ char *); 163 void *sbrk (int);171 void *sbrk(intptr_t); 164 172 unsigned sleep (unsigned); 165 173 void swab (__const__ void *, void *, size_t); … … 184 192 185 193 unsigned _alarm (unsigned); 186 void *_brk (void *);194 int _brk(const void *); 187 195 int _chdir (__const__ char *); 188 196 char *_gcvt (double, int, char *); … … 193 201 int _putenv (__const__ char *); 194 202 int _rmdir (__const__ char *); 195 void *_sbrk (int);203 void *_sbrk(intptr_t); 196 204 unsigned _sleep (unsigned); 197 205 void _swab (__const__ void *, void *, size_t); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.