- Timestamp:
- Feb 27, 2014, 1:35:25 AM (11 years ago)
- Location:
- trunk/libc
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/Config.kmk
r3820 r3823 55 55 DEFS.nt = __NT__ 56 56 57 if defined(CFG_LIBC_USE_WATCOM) || defined(CFG_KNIX_USE_WATCOM) 58 CFG_LIBC_USE_WATCOM = 1 59 KLIBC_FORCE_INC_OPT = -fi=$(call TOOL_OPENWATCOM_FIX_SLASHES,$1) 60 else 61 KLIBC_FORCE_INC_OPT = -include $1 62 endif 57 63 58 64 # … … 80 86 TEMPLATE_libc_INCS = $(PATH_LIBC_INC) $(dir $(LIBC-STD.H)) 81 87 TEMPLATE_libc_INCS.nt = $(PATH_LIBC_SRC)/w32api/include 82 if defined(CFG_LIBC_USE_WATCOM) || defined(CFG_KNIX_USE_WATCOM) 88 TEMPLATE_libc_LIBSUFF = .a 89 if defined(CFG_LIBC_USE_WATCOM) 83 90 TEMPLATE_libc_TOOL = OPENWATCOM 84 TEMPLATE_libc_CFLAGS = $(TEMPLATE_lib_CFLAGS) 91 TEMPLATE_libc_CFLAGS = $(TEMPLATE_lib_CFLAGS) -za99 85 92 TEMPLATE_libc_CFLAGS.os2 = $(TEMPLATE_lib_CFLAGS.os2) 86 93 TEMPLATE_libc_CFLAGS.release = $(TEMPLATE_lib_CFLAGS.release) … … 118 125 119 126 TEMPLATE_libcasm = . 120 if defined(CFG_LIBC_USE_WATCOM) || defined(CFG_KNIX_USE_WATCOM) 127 TEMPLATE_libcasm_LIBSUFF = .a 128 if defined(CFG_LIBC_USE_WATCOM) 121 129 TEMPLATE_libcasm_TOOL = OPENWATCOM 122 130 else … … 160 168 TEMPLATE_bldprog = Build programs 161 169 TEMPLATE_bldprog_DEFS = __LIBC_BUILD_PROGRAM__ 162 if defined(CFG_LIBC_USE_WATCOM) || defined(CFG_KNIX_USE_WATCOM) 170 TEMPLATE_bldprog_LIBSUFF = .a 171 if defined(CFG_LIBC_USE_WATCOM) 163 172 TEMPLATE_bldprog_TOOL = OPENWATCOM 164 173 TEMPLATE_bldprog_INCS = $(TOOL_OPENWATCOM_CXXINCS) $(PATH_LIBC_ROOT) -
trunk/libc/include/os2emx.h
r2672 r3823 13348 13348 13349 13349 #ifndef FS_DISABLED 13350 #define FS_VAR() volatile unsigned __fs__; 13351 #define FS_SAVE() __asm__ __volatile__ ("movl %%fs, %%eax; movl %%eax,%0;" : : "m" (__fs__) : "%eax" ) 13352 #define FS_SAVE_LOAD() __asm__ __volatile__ ("movl %%fs, %%eax; movl %%eax,%0; movl $DosTIB, %%eax; movl %%eax, %%fs" : : "m" (__fs__) : "%eax" ) 13353 #define FS_VAR_SAVE_LOAD() FS_VAR(); FS_SAVE_LOAD() 13354 #define FS_RESTORE() __asm__ __volatile__ ("movl %0, %%eax; movl %%eax,%%fs;" : : "m" (__fs__) : "%eax" ) 13350 # ifdef __GNUC__ 13351 # define FS_VAR() volatile unsigned __fs__; 13352 # define FS_VAR_SAVE_LOAD() FS_VAR(); FS_SAVE_LOAD() 13353 # define FS_SAVE() __asm__ __volatile__ ("movl %%fs, %%eax; movl %%eax,%0;" : : "m" (__fs__) : "%eax" ) 13354 # define FS_SAVE_LOAD() __asm__ __volatile__ ("movl %%fs, %%eax; movl %%eax,%0; movl $DosTIB, %%eax; movl %%eax, %%fs" : : "m" (__fs__) : "%eax" ) 13355 # define FS_RESTORE() __asm__ __volatile__ ("movl %0, %%eax; movl %%eax,%%fs;" : : "m" (__fs__) : "%eax" ) 13356 13357 # elif defined(__WATCOMC__) 13358 unsigned short FS_INTERNAL_SAVE(void); 13359 # pragma aux FS_INTERNAL_SAVE = "mov ax, fs" value [ax] 13360 unsigned short FS_INTERNAL_RESTORE(unsigned); 13361 # pragma aux FS_INTERNAL_RESTORE = "mov fs, ax" parm [ax] 13362 # define FS_VAR() volatile short __fs__; 13363 # define FS_VAR_SAVE_LOAD() volatile short __fs__ = FS_INTERNAL_SAVE(); 13364 # define FS_SAVE() do { __fs__ = FS_INTERNAL_SAVE(); } while (0) 13365 extern void DosTIB(void); 13366 # define FS_SAVE_LOAD() do { __fs__ = FS_INTERNAL_SAVE(); FS_INTERNAL_RESTORE((uintptr_t)&DosTIB) } while (0) 13367 # define FS_RESTORE() FS_INTERNAL_RESTORE(__fs__) 13368 13369 # else 13370 # error "Unsupported compiler" 13371 # endif 13355 13372 #else 13356 # define FS_VAR()13357 # define FS_SAVE()do { } while(0)13358 # define FS_SAVE_LOAD()do { } while(0)13359 # define FS_RESTORE()do { } while(0)13373 # define FS_VAR() 13374 # define FS_SAVE() do { } while(0) 13375 # define FS_SAVE_LOAD() do { } while(0) 13376 # define FS_RESTORE() do { } while(0) 13360 13377 #endif 13361 13378 … … 13365 13382 13366 13383 #ifndef FSCW_DISABLED 13367 #define FSCW_VAR() volatile unsigned __fpcw__; 13368 #define FSCW_SAVE() __asm__ __volatile__ ("fnstcw %0;" : : "m" (__fpcw__) ) 13369 #define FSCW_RESTORE() __asm__ __volatile__ ("fldcw %0;" : : "m" (__fpcw__) ) 13384 # ifdef __GNUC__ 13385 # define FSCW_VAR() volatile unsigned __fpcw__; 13386 # define FSCW_SAVE() __asm__ __volatile__ ("fnstcw %0;" : : "m" (__fpcw__) ) 13387 # define FSCW_RESTORE() __asm__ __volatile__ ("fldcw %0;" : : "m" (__fpcw__) ) 13388 13389 # elif defined(__WATCOMC__) 13390 void FSCW_INTERNAL_SAVE(unsigned *); 13391 # pragma aux FSCW_INTERNAL_SAVE = "fnstcw [edx]" parm [edx] 13392 void FSCW_INTERNAL_RESTORE(unsigned *); 13393 # pragma aux FS_INTERNAL_RESTORE = "fldcw [edx]" parm [edx] 13394 # define FSCW_VAR() volatile unsigned __fpcw__; 13395 # define FSCW_SAVE() FSCW_INTERNAL_SAVE(&__fpcw__) 13396 # define FSCW_RESTORE() FSCW_INTERNAL_RESTORE(&__fpcw__) 13397 13370 13398 #else 13371 # define FSCW_VAR()13372 # define FSCW_SAVE() do { } while(0)13373 # define FSCW_RESTORE() do { } while(0)13399 # define FSCW_VAR() 13400 # define FSCW_SAVE() do { } while(0) 13401 # define FSCW_RESTORE() do { } while(0) 13374 13402 #endif 13375 13403 -
trunk/libc/include/sys/cdefs.h
r3821 r3823 132 132 #else 133 133 # define __KLIBC_WATCOM_PREREQ(ma, mi) 0 134 #endif 135 136 #ifdef __WATCOMC__ 137 # define __KLIBC_WATCOM_C99_PREREQ(ma, mi) (__KLIBC_WATCOM_PREREQ(ma, mi) && __STDC_VERSION__ >= 199901L) 138 #else 139 # define __KLIBC_WATCOM_C99_PREREQ(ma, mi) 0 134 140 #endif 135 141 -
trunk/libc/include/sys/gnu/cdefs.h
r2187 r3823 300 300 301 301 /* __restrict is known in EGCS 1.2 and above. */ 302 #if !__GNUC_PREREQ (2,92) 302 #if !__GNUC_PREREQ (2,92) && !__KLIBC_WATCOM_C99_PREREQ (12,3) /* bird added the latter */ 303 303 # define __restrict /* Ignore */ 304 304 #endif -
trunk/libc/src/fbsdlibc/db/btree/bt_close.c
r979 r3823 71 71 BTREE *t; 72 72 int fd; 73 #ifdef __ EMX__73 #ifdef __IN_KLIBC__ 74 74 char *tempname; 75 75 int r; 76 #endif /* __EMX__ */76 #endif 77 77 78 78 t = dbp->internal; … … 110 110 111 111 fd = t->bt_fd; 112 #ifdef __ EMX__112 #ifdef __IN_KLIBC__ 113 113 tempname = t->tempname; 114 114 free(t); … … 122 122 } 123 123 return r; 124 #else /* not __EMX__ */124 #else /* not __IN_KLIBC__ */ 125 125 free(t); 126 126 free(dbp); 127 127 return (_close(fd) ? RET_ERROR : RET_SUCCESS); 128 #endif 128 #endif /* not __IN_KLIBC__ */ 129 129 } 130 130 -
trunk/libc/src/fbsdlibc/db/btree/bt_debug.c
r1694 r3823 51 51 #include "btree.h" 52 52 53 #if defined(DEBUG) || defined __EMX__53 #if defined(DEBUG) || defined(__IN_KLIBC__) 54 54 /* 55 55 * BT_DUMP -- Dump the tree … … 244 244 } 245 245 } 246 #endif 246 #endif /* DEBUG || __IN_KLIBC__ */ 247 247 248 248 #ifdef STATISTICS -
trunk/libc/src/fbsdlibc/db/btree/bt_open.c
r2229 r3823 61 61 #include <string.h> 62 62 #include <unistd.h> 63 #ifdef __ EMX__63 #ifdef __IN_KLIBC__ 64 64 #include <io.h> 65 65 #endif … … 76 76 static int byteorder(void); 77 77 static int nroot(BTREE *); 78 #ifndef __ EMX__78 #ifndef __IN_KLIBC__ 79 79 static int tmp(void); 80 80 #endif … … 211 211 } 212 212 213 #ifdef __ EMX__213 #ifdef __IN_KLIBC__ 214 214 if ((t->bt_fd = _open(fname, flags | O_BINARY, mode)) < 0) 215 215 #else … … 221 221 if ((flags & O_ACCMODE) != O_RDWR) 222 222 goto einval; 223 #ifdef __ EMX__223 #ifdef __IN_KLIBC__ 224 224 { 225 225 char namestr[] = "btXXXXXX"; … … 231 231 t->tempname = strdup (absname); 232 232 } 233 #else /* not __ EMX__ */233 #else /* not __IN_KLIBC__ */ 234 234 if ((t->bt_fd = tmp()) == -1) 235 235 goto err; 236 #endif /* not __ EMX__ */236 #endif /* not __IN_KLIBC__ */ 237 237 F_SET(t, B_INMEM); 238 238 } … … 361 361 if (t->bt_fd != -1) 362 362 (void)_close(t->bt_fd); 363 #ifdef __ EMX__363 #ifdef __IN_KLIBC__ 364 364 if (t->tempname != NULL) { 365 365 (void)unlink(t->tempname); 366 366 free(t->tempname); 367 367 } 368 #endif /* __EMX__ */368 #endif 369 369 free(t); 370 370 } … … 415 415 } 416 416 417 #ifndef __ EMX__ /* bird */417 #ifndef __IN_KLIBC__ /* bird */ 418 418 static int 419 419 tmp() … … 436 436 return(fd); 437 437 } 438 #endif /* !EMX*/438 #endif /* !__IN_KLIBC__ */ 439 439 440 440 static int -
trunk/libc/src/fbsdlibc/db/btree/btree.h
r979 r3823 380 380 #define B_DB_TXN 0x10000 /* DB_TXN specified. */ 381 381 u_int32_t flags; 382 #ifdef __ EMX__382 #ifdef __IN_KLIBC__ 383 383 char *tempname; /* Name of temporary file */ 384 #endif /* __EMX__ */384 #endif 385 385 } BTREE; 386 386 -
trunk/libc/src/fbsdlibc/db/btree/extern.h
r2259 r3823 62 62 int __ovfl_put(BTREE *, const DBT *, pgno_t *); 63 63 64 #if defined(DEBUG) || defined(__ EMX__)64 #if defined(DEBUG) || defined(__IN_KLIBC__) 65 65 void __bt_dmpage(PAGE *); 66 66 void __bt_dnpage(DB *, pgno_t); -
trunk/libc/src/fbsdlibc/db/hash/hash.c
r3381 r3823 133 133 } 134 134 if (file) { 135 #ifdef __ EMX__135 #ifdef __IN_KLIBC__ 136 136 if ((hashp->fp = _open(file, flags | O_BINARY, mode)) == -1) 137 137 #else … … 448 448 if (hashp->fp != -1) 449 449 (void)_close(hashp->fp); 450 #ifdef __ EMX__450 #ifdef __IN_KLIBC__ 451 451 if (hashp->tempname != NULL) { 452 452 (void)unlink (hashp->tempname); 453 453 free (hashp->tempname); 454 455 #endif /* __EMX__ */454 } 455 #endif 456 456 457 457 free(hashp); -
trunk/libc/src/fbsdlibc/db/hash/hash.h
r979 r3823 119 119 BUFHEAD bufhead; /* Header of buffer lru list */ 120 120 SEGMENT *dir; /* Hash Bucket directory */ 121 #ifdef __ EMX__121 #ifdef __IN_KLIBC__ 122 122 char *tempname; /* Name of temporary file */ 123 #endif /* __EMX__ */123 #endif 124 124 } HTAB; 125 125 -
trunk/libc/src/fbsdlibc/db/hash/hash_page.c
r2229 r3823 70 70 #include <assert.h> 71 71 #endif 72 #ifdef __ EMX__72 #ifdef __IN_KLIBC__ 73 73 #include <io.h> 74 74 #endif … … 871 871 { 872 872 sigset_t set, oset; 873 #ifdef __ EMX__873 #ifdef __IN_KLIBC__ 874 874 char namestr[] = "hsXXXXXX"; 875 #else /* not __EMX__ */875 #else 876 876 static char namestr[] = "_hashXXXXXX"; 877 #endif /* not __EMX__ */877 #endif 878 878 879 879 /* Block signals; make sure file goes away at process exit. */ … … 881 881 (void)_sigprocmask(SIG_BLOCK, &set, &oset); 882 882 if ((hashp->fp = mkstemp(namestr)) != -1) { 883 #ifdef __ EMX__883 #ifdef __IN_KLIBC__ 884 884 char absname[_MAX_PATH]; 885 885 setmode (hashp->fp, O_BINARY); 886 886 if (_abspath (absname, namestr, sizeof (absname)) == 0) 887 887 hashp->tempname = strdup (absname); 888 #else /* not __EMX__ */888 #else 889 889 (void)unlink(namestr); 890 #endif /* not __EMX__ */890 #endif 891 891 (void)_fcntl(hashp->fp, F_SETFD, 1); 892 892 } -
trunk/libc/src/fbsdlibc/db/recno/rec_open.c
r1959 r3823 71 71 72 72 /* Open the user's file -- if this fails, we're done. */ 73 #ifdef __ EMX__73 #ifdef __IN_KLIBC__ 74 74 if (fname != NULL && (rfd = _open(fname, flags | O_BINARY, mode)) < 0) 75 75 #else -
trunk/libc/src/fbsdlibc/gen/ftw.c
r2172 r3823 42 42 int nfds) 43 43 { 44 char * const paths[2] = { (char *)path, NULL };45 44 FTSENT *cur; 46 45 FTS *ftsp; 47 46 int error = 0, fnflag, sverrno; 47 char *paths[2]; /* bird: watcom says "E1054: Expression must be constant" to the original initializer. */ 48 paths[0] = (char *)path; 49 paths[1] = NULL; 48 50 49 51 /* XXX - nfds is currently unused */ -
trunk/libc/src/fbsdlibc/gen/getgrent.c
r2741 r3823 417 417 if (rv != 0) 418 418 return (NS_UNAVAIL); 419 switch ((enum constants) mdata) {419 switch ((enum constants)(uintptr_t)mdata) { 420 420 case SETGRENT: 421 421 stayopen = va_arg(ap, int); … … 452 452 name = NULL; 453 453 gid = (gid_t)-1; 454 how = (enum nss_lookup_type) mdata;454 how = (enum nss_lookup_type)(uintptr_t)mdata; 455 455 switch (how) { 456 456 case nss_lt_name: -
trunk/libc/src/fbsdlibc/gen/getnetgrent.c
r2741 r3823 47 47 #include <string.h> 48 48 #include <unistd.h> 49 #ifdef __ EMX__49 #ifdef __IN_KLIBC__ 50 50 #include <netdb.h> 51 51 #endif -
trunk/libc/src/fbsdlibc/gen/getprogname.c
r2741 r3823 8 8 #include "libc_private.h" 9 9 10 #ifdef __ EMX__10 #ifdef __OS2__ 11 11 # define INCL_BASE 12 12 # define INCL_FSMACROS … … 34 34 if (!__progname) 35 35 { 36 #ifdef __ EMX__36 #ifdef __OS2__ 37 37 char *psz, *psz2; 38 38 PTIB ptib; -
trunk/libc/src/fbsdlibc/gen/glob.c
r2741 r3823 113 113 #define COMMA ',' 114 114 115 #if ndef BSD_DEBUG /* bird prefixed with BSD*/115 #if !defined(BSD_DEBUG) && !defined(__WATCOMC__) /* bird prefixed with BSD; watcom cannot switch 64-bit. */ 116 116 117 117 #define M_QUOTE 0x8000000000ULL -
trunk/libc/src/fbsdlibc/gen/nftw.c
r2172 r3823 42 42 struct FTW *), int nfds, int ftwflags) 43 43 { 44 char * const paths[2] = { (char *)path, NULL };45 44 struct FTW ftw; 46 45 FTSENT *cur; 47 46 FTS *ftsp; 48 47 int error = 0, ftsflags, fnflag, postorder, sverrno; 48 #if 0 /* bird watcom says: Error! E1054: Expression must be constant */ 49 char * const paths[2] = { (char *)path, NULL }; 50 #else 51 char *paths[2]; 52 paths[0] = (char *)path; 53 paths[1] = NULL; 54 #endif 49 55 50 56 /* XXX - nfds is currently unused */ -
trunk/libc/src/fbsdlibc/gen/setprogname.c
r2741 r3823 12 12 { 13 13 const char *p; 14 #if defined(__ EMX__) || defined(__NT__)14 #if defined(__OS2__) || defined(__NT__) || defined(_WIN32) 15 15 p = strlen(progname) + progname; 16 16 while (p >= progname) -
trunk/libc/src/fbsdlibc/i386/Makefile.kmk
r2704 r3823 36 36 $(PATH_LIBC_SRC)/fbsdlibc/include 37 37 libc_fbsdlibc_i386_SOURCES = \ 38 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/fabs.S \39 38 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/flt_rounds.c \ 40 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/infinity.c \ 41 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/ldexp.c \ 42 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/modf.S \ 39 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/infinity.c 40 41 ifndef CFG_LIBC_USE_WATCOM ## @todo port me. 42 libc_fbsdlibc_i386_SOURCES += \ 43 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/fabs.S \ 44 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/modf.S \ 45 $(PATH_LIBC_SRC)/fbsdlibc/i386/gen/ldexp.c 46 endif 43 47 44 48 -
trunk/libc/src/fbsdlibc/i386/gen/flt_rounds.c
r2013 r3823 20 20 __flt_rounds(void) 21 21 { 22 #ifdef __GNUC__ 22 23 int x; 23 24 24 __asm("fnstcw %0" : "=m" (x)); 25 #elif defined(__WATCOMC__) 26 extern __flt_rounds_get_fpu_status_word(short *); 27 # pragma aux __flt_rounds_get_fpu_status_word = "fnstcw [eax]" parm [eax] 28 short x; 29 __flt_rounds_get_fpu_status_word(&x); 30 #else 31 # error "Port me" 32 #endif 25 33 return (map[(x >> 10) & 0x03]); 26 34 } -
trunk/libc/src/fbsdlibc/net/Makefile.kmk
r2704 r3823 40 40 $(PATH_LIBC_SRC)/fbsdlibc/net/nsparser.c \ 41 41 42 $(PATH_LIBC_SRC)/fbsdlibc/net/nslexer.c_CFLAGS = -include $(PATH_LIBC_SRC)/fbsdlibc/include/namespace.h42 $(PATH_LIBC_SRC)/fbsdlibc/net/nslexer.c_CFLAGS = $(call KLIBC_FORCE_INC_OPT,$(PATH_LIBC_SRC)/fbsdlibc/include/namespace.h) 43 43 44 44 # configure the variants. */ -
trunk/libc/src/fbsdlibc/net/nsdispatch.c
r1697 r3823 80 80 #define _NS_PRIVATE 81 81 #include <nsswitch.h> 82 #ifndef __ EMX__82 #ifndef __IN_KLIBC__ 83 83 #include <pthread.h> 84 84 #else /* bird: temporary hack. */ … … 138 138 static void *nss_builtin_handle = &__nss_builtin_handle; 139 139 140 #ifdef __ EMX__140 #ifdef __IN_KLIBC__ 141 141 # define syslog(level, format, ...) do { } while (0) 142 142 #endif … … 475 475 goto fin; 476 476 else { 477 #if ndef __EMX__477 #if !defined(__OS2__) && !defined(__NT__) && !defined(_WIN32) 478 478 if (snprintf(buf, sizeof(buf), "nss_%s.so.%d", mod.name, 479 479 NSS_MODULE_INTERFACE_VERSION) >= (int)sizeof(buf)) -
trunk/libc/src/fbsdlibc/net/nslexer.c
r1505 r3823 797 797 798 798 if ((p = strdup(yytext)) == NULL) { 799 #ifndef __ EMX__799 #ifndef __IN_KLIBC__ 800 800 syslog(LOG_ERR, 801 801 "NSSWITCH(nslexer): memory allocation failure"); … … 1718 1718 const char *msg; 1719 1719 { 1720 #ifndef __ EMX__1720 #ifndef __IN_KLIBC__ 1721 1721 syslog(LOG_ERR, "NSSWITCH(nslexer): %s line %d: %s at '%s'", 1722 1722 _PATH_NS_CONF, yylineno, msg, yytext); -
trunk/libc/src/fbsdlibc/net/nslexer.l
r1505 r3823 87 87 88 88 if ((p = strdup(yytext)) == NULL) { 89 #ifndef __ EMX__89 #ifndef __IN_KLIBC__ 90 90 syslog(LOG_ERR, 91 91 "NSSWITCH(nslexer): memory allocation failure"); … … 116 116 const char *msg; 117 117 { 118 #ifndef __ EMX__118 #ifndef __IN_KLIBC__ 119 119 syslog(LOG_ERR, "NSSWITCH(nslexer): %s line %d: %s at '%s'", 120 120 _PATH_NS_CONF, yylineno, msg, yytext); -
trunk/libc/src/fbsdlibc/net/nsparser.c
r1505 r3823 1267 1267 if ((strcasecmp(elem, NSSRC_COMPAT) == 0) || 1268 1268 (strcasecmp(curdbt.srclist[0].name, NSSRC_COMPAT) == 0)) { 1269 #ifndef __ EMX__1269 #ifndef __IN_KLIBC__ 1270 1270 syslog(LOG_ERR, 1271 1271 "NSSWITCH(nsparser): %s line %d: 'compat' used with other sources", … … 1277 1277 for (i = 0; i < curdbt.srclistsize; i++) { 1278 1278 if (strcasecmp(curdbt.srclist[i].name, elem) == 0) { 1279 #ifndef __ EMX__1279 #ifndef __IN_KLIBC__ 1280 1280 syslog(LOG_ERR, 1281 1281 "NSSWITCH(nsparser): %s line %d: duplicate source '%s'", -
trunk/libc/src/fbsdlibc/net/nsparser.y
r1505 r3823 160 160 if ((strcasecmp(elem, NSSRC_COMPAT) == 0) || 161 161 (strcasecmp(curdbt.srclist[0].name, NSSRC_COMPAT) == 0)) { 162 #ifndef __ EMX__162 #ifndef __IN_KLIBC__ 163 163 syslog(LOG_ERR, 164 164 "NSSWITCH(nsparser): %s line %d: 'compat' used with other sources", … … 170 170 for (i = 0; i < curdbt.srclistsize; i++) { 171 171 if (strcasecmp(curdbt.srclist[i].name, elem) == 0) { 172 #ifndef __ EMX__172 #ifndef __IN_KLIBC__ 173 173 syslog(LOG_ERR, 174 174 "NSSWITCH(nsparser): %s line %d: duplicate source '%s'", -
trunk/libc/src/fbsdlibc/nls/msgcat.c
r1307 r3823 55 55 56 56 #include "msgcat.h" 57 #ifndef __ EMX__57 #ifndef __IN_KLIBC__ 58 58 #include "../locale/setlocale.h" /* for ENCODING_LEN */ 59 59 #else … … 61 61 #endif 62 62 63 #ifndef __ EMX__63 #ifndef __IN_KLIBC__ 64 64 #define _DEFAULT_NLS_PATH "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L:/usr/local/share/nls/%L/%N.cat:/usr/local/share/nls/%N/%L" 65 65 #else /* bird: we use a different separator character. */ … … 73 73 #define NLRETERR(errc) { errno = errc; return (NLERR); } 74 74 75 #ifndef __ EMX__75 #ifndef __IN_KLIBC__ 76 76 static nl_catd loadCat(); 77 77 static int loadSet(); … … 126 126 } 127 127 128 #ifndef __ EMX__128 #ifndef __IN_KLIBC__ 129 129 if ((nlspath = getenv("NLSPATH")) == NULL || issetugid()) 130 130 #else … … 140 140 } 141 141 142 #ifndef __ EMX__142 #ifndef __IN_KLIBC__ 143 143 while ((nlspath = strsep(&cptr, ":")) != NULL) { 144 144 #else … … 388 388 cat->loadType = MCLoadBySet; 389 389 390 #ifndef __ EMX__390 #ifndef __IN_KLIBC__ 391 391 if ((cat->fp = fopen(catpath, "r")) == NULL) { 392 392 #else -
trunk/libc/src/fbsdlibc/stdio/mktemp.c
r2029 r3823 91 91 } 92 92 93 #ifndef __ EMX__93 #ifndef __IN_KLIBC__ 94 94 __warn_references(mktemp, 95 95 "warning: mktemp() possibly used unsafely; consider using mkstemp()"); -
trunk/libc/src/fbsdlibc/string/strtok.c
r1694 r3823 49 49 #endif 50 50 #include <string.h> 51 #ifdef __ EMX__51 #ifdef __IN_KLIBC__ 52 52 #include <InnoTekLIBC/thread.h> 53 53 #endif … … 59 59 60 60 char * 61 #ifdef __ EMX__61 #ifdef __IN_KLIBC__ 62 62 _STD(strtok_r) 63 63 #else … … 110 110 111 111 char * 112 #ifdef __ EMX__112 #ifdef __IN_KLIBC__ 113 113 _STD(strtok) 114 114 #else … … 117 117 (char *s, const char *delim) 118 118 { 119 #ifdef __ EMX__119 #ifdef __IN_KLIBC__ 120 120 __LIBC_PTHREAD pThrd = __libc_threadCurrent(); 121 121 #define last pThrd->pszStrTokPos
Note:
See TracChangeset
for help on using the changeset viewer.