Changeset 1517 for trunk/src/emx/include
- Timestamp:
- Sep 19, 2004, 5:53:31 PM (21 years ago)
- Location:
- trunk/src/emx/include
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/InnoTekLIBC/backend.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r1516 r1517 129 129 * @returns -1 and errno on failure. 130 130 * @param paStatFs Where to to store the statistics. 131 * @par macStatFS Number of structures the array pointed to by paStatFs can hold.131 * @param cStatFS Number of structures the array pointed to by paStatFs can hold. 132 132 * @param fFlags Flags, currently ignored. 133 133 */ … … 140 140 */ 141 141 void __libc_Back_fsSync(void); 142 143 /** 144 * Sets or change the unixroot of the current process. 145 * 146 * @returns 0 on success. 147 * @returns -1 and errno on failure. 148 * @param pszNewRoot The new root. 149 */ 150 int __libc_Back_fsChRoot(const char *pszNewRoot); 142 151 143 152 /** @} */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/error.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r1516 r1517 2 2 /** @file 3 3 * GLIBC v2.3.2 4 * 5 * @changed bird: shut up -Wundef. 4 6 */ 5 7 … … 29 31 #ifndef __attribute__ 30 32 /* This feature is available in gcc versions 2.5 and later. */ 31 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__33 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (defined(__STRICT_ANSI__) && __STRICT_ANSI__) /* bird: shut up -Wundef */ 32 34 # define __attribute__(Spec) /* empty */ 33 35 # endif -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/os2thunk.h
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r1516 r1517 16 16 void *_libc_16to32 (_far16ptr ptr); 17 17 18 typedef union _thunk_u 19 { 20 void *pv; 21 unsigned short *pus; 22 unsigned long *pul; 23 } _thunk_t; 24 18 25 unsigned long _libc_thunk1 (void *args, void *fun); 19 26 20 27 #define _THUNK_PASCAL_PROLOG(SIZE) \ 21 ({ char _tb[(SIZE)+4]; void *_tp= _tb + sizeof (_tb); \28 __extension__ ({ char _tb[(SIZE)+4]; _thunk_t _tu; _tu.pv = _tb + sizeof (_tb); \ 22 29 *(unsigned long *)_tb = (SIZE); 23 30 #define _THUNK_PASCAL_CHAR(ARG) _THUNK_PASCAL_SHORT (ARG) 24 #define _THUNK_PASCAL_SHORT(ARG) (*-- ((unsigned short *)_tp)= (ARG))25 #define _THUNK_PASCAL_LONG(ARG) (*-- ((unsigned long *)_tp)= (ARG))31 #define _THUNK_PASCAL_SHORT(ARG) (*--_tu.pus = (ARG)) 32 #define _THUNK_PASCAL_LONG(ARG) (*--_tu.pul = (ARG)) 26 33 #define _THUNK_PASCAL_FLAT(ARG) _THUNK_PASCAL_LONG (_libc_32to16 (ARG)) 27 34 #define _THUNK_PASCAL_FAR16(ARG) _THUNK_PASCAL_LONG (ARG) … … 31 38 32 39 #define _THUNK_C_PROLOG(SIZE) \ 33 ({ char _tb[(SIZE)+4]; void *_tp= _tb + sizeof (unsigned long); \40 __extension__ ({ char _tb[(SIZE)+4]; _thunk_t _tu; _tu.pv = _tb + sizeof (unsigned long); \ 34 41 *(unsigned long *)_tb = (SIZE); 35 42 #define _THUNK_C_CHAR(ARG) _THUNK_C_SHORT (ARG) 36 #define _THUNK_C_SHORT(ARG) (* ((unsigned short *)_tp)++ = (ARG))37 #define _THUNK_C_LONG(ARG) (* ((unsigned long *)_tp)++ = (ARG))43 #define _THUNK_C_SHORT(ARG) (*_tu.pus++ = (ARG)) 44 #define _THUNK_C_LONG(ARG) (*_tu.pul++ = (ARG)) 38 45 #define _THUNK_C_FLAT(ARG) _THUNK_C_LONG (_libc_32to16 (ARG)) 39 46 #define _THUNK_C_FAR16(ARG) _THUNK_C_LONG (ARG) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/string.h
-
Property cvs2svn:cvs-rev
changed from
1.13
to1.14
r1516 r1517 98 98 size_t strlen(const char *); 99 99 #if __BSD_VISIBLE 100 /** @todo void strmode(int, char *); */ 100 void strmode(int, char *); 101 101 #endif 102 102 char *strncat(char * __restrict, const char * __restrict, size_t); … … 116 116 char *strtok(char * __restrict, const char * __restrict); 117 117 #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500 118 /**@todo char *strtok_r(char *, const char *, char **); */ 118 char *strtok_r(char *, const char *, char **); 119 119 #endif 120 120 size_t strxfrm(char * __restrict, const char * __restrict, size_t); … … 138 138 char * strset(char *, int); 139 139 char * strupr(char *); 140 /* bird: Are we sure we actually want this stuff _here_ ? */141 extern char *__gnu_basename (const char *);142 #ifndef _LIBGEN_H143 #define basename __gnu_basename144 #endif145 140 #endif 146 141 … … 168 163 /* bird: GNU stuff - start */ 169 164 #ifdef __USE_GNU 165 char *basename(const char *); 170 166 size_t strnlen(const char *, size_t); 171 167 void *mempcpy(void *, const void *, size_t); 172 168 char *strndup(const char *, size_t); 173 169 void *memrchr(const void *, int, size_t); 170 #define memrchr(pach, ch, cch) _memrchr(pach, ch, cch) 171 int strverscmp(const char *, const char *); 174 172 175 173 size_t __strnlen(const char *, size_t); 176 174 void *__mempcpy(void *, const void *, size_t); 177 175 char *__strndup(const char *, size_t); 176 void *_memrchr(const void *, int, size_t); 178 177 void *__memrchr(const void *, int, size_t); 179 void *_memrchr(const void *, int, size_t); 180 181 #define memrchr(pach, ch, cch) _memrchr(pach, ch, cch) 182 #define __memrchr(pach, ch, cch) _memrchr(pach, ch, cch) 178 #define __memrchr(pach, ch, cch) _memrchr(pach, ch, cch) 179 int __strverscmp(const char *, const char *); 183 180 184 181 #endif -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/cdefs.h
-
Property cvs2svn:cvs-rev
changed from
1.8
to1.9
r1516 r1517 171 171 */ 172 172 #if !(__GNUC__ == 2 && __GNUC_MINOR__ == 95) 173 #if __STDC_VERSION__ < 199901173 #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901 /* bird: check if not defined. (-pedantic) */ 174 174 #define __restrict 175 175 #else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/ioccom.h
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1516 r1517 83 83 */ 84 84 int TCPCALL os2_ioctl __P((int, int, char *, int)); 85 /** Wrapper around the ioctl() interface of OS/2 BSD 4.3. */ 86 int TCPCALL so_ioctl __P((int, unsigned long, ...)); 85 87 #else 86 /** The v41+ BSD socket ioctl interface. 87 * @remark sys based libc have separeate handle spaces for sockets and files 88 * therefore this socket specific call. 89 */ 88 /** The v41+ BSD socket ioctl interface. */ 90 89 int TCPCALL so_ioctl __P((int, unsigned long, ...)); 91 90 /** The v41+ OS/2 specific socket ioctl interface. */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/unistd.h
-
Property cvs2svn:cvs-rev
changed from
1.18
to1.19
r1516 r1517 307 307 #if __XSI_VISIBLE <= 500 || __BSD_VISIBLE 308 308 int brk(const void *); 309 /** @todo int chroot(const char *); */ 310 /** @todo int getdtablesize(void); */ 309 int chroot(const char *); 310 int getdtablesize(void); 311 311 int getpagesize(void) __pure2; 312 312 char *getpass(const char *); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.