Changeset 3188 for trunk/essentials/dev-lang/perl/os2/os2ish.h
- Timestamp:
- Apr 22, 2007, 10:57:48 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/dev-lang/perl/os2/os2ish.h
r3187 r3188 23 23 #define HAS_WAIT 24 24 #define HAS_DLERROR 25 #ifndef __KLIBC__ 25 26 #define HAS_WAITPID_RUNTIME (_emx_env & 0x200) 27 #else 28 #define HAS_WAITPID_RUNTIME 1 29 #endif 26 30 27 31 /* HAS_PASSWD … … 314 318 FILE *my_tmpfile (void); 315 319 char *my_tmpnam (char *); 320 #ifndef __KLIBC__ 316 321 int my_mkdir (__const__ char *, long); 322 #endif 317 323 int my_rmdir (__const__ char *); 318 324 struct passwd *my_getpwent (void); … … 348 354 #endif 349 355 356 #ifndef __KLIBC__ 350 357 struct group *getgrent (void); 351 358 void setgrent (void); 352 359 void endgrent (void); 353 360 #endif 354 361 struct passwd *my_getpwuid (uid_t); 355 362 struct passwd *my_getpwnam (__const__ char *); … … 395 402 396 403 #include <stdlib.h> /* before the following definitions */ 404 #ifndef __KLIBC__ 397 405 #include <unistd.h> /* before the following definitions */ 406 #endif 398 407 #include <fcntl.h> 399 408 #include <sys/stat.h> … … 411 420 #endif 412 421 422 #ifndef __KLIBC__ 413 423 #define PERLIO_IS_BINMODE_FD(fd) _PERLIO_IS_BINMODE_FD(fd) 424 #endif 414 425 415 426 #ifdef __GNUG__ … … 422 433 423 434 #include <emx/io.h> /* for _fd_flags() prototype */ 424 435 #ifndef __KLIBC__ 425 436 static inline bool 426 437 _PERLIO_IS_BINMODE_FD(int fd) … … 430 441 return pflags && (*pflags) & O_BINARY; 431 442 } 432 443 #endif 433 444 /* ctermid is missing from emx0.9d */ 434 445 char *ctermid(char *s); … … 536 547 #define OS2_XS_init() (*OS2_Perl_data.xs_init)(aTHX) 537 548 538 #if _EMX_CRT_REV_ >= 60 549 #ifndef __KLIBC__ 550 #if (_EMX_CRT_REV_ >= 60) 539 551 # define os2_setsyserrno(rc) (Perl_rc = rc, errno = errno_isOS2_set, \ 540 552 _setsyserrno(rc)) … … 542 554 # define os2_setsyserrno(rc) (Perl_rc = rc, errno = errno_isOS2) 543 555 #endif 556 #else 557 # define os2_setsyserrno(rc) (Perl_rc = rc, errno = errno_isOS2) 558 #endif /* __KLIBC__ */ 544 559 545 560 /* The expressions below return true on error. */ … … 781 796 my_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) 782 797 { 798 #ifndef __KLIBC__ 783 799 if (nfds == 0 && timeout && (_emx_env & 0x200)) { 800 #else 801 if (nfds == 0 && timeout) { 802 #endif 784 803 if (async_mssleep(1000 * timeout->tv_sec + (timeout->tv_usec + 500)/1000, 500)) 785 804 return 0; … … 800 819 int os2_stat(const char *name, struct stat *st); 801 820 int fork_with_resources(); 821 #ifndef __KLIBC__ 802 822 int setpriority(int which, int pid, int val); 803 823 int getpriority(int which /* ignored */, int pid); 824 #endif 804 825 805 826 void croak_with_os2error(char *s) __attribute__((noreturn));
Note:
See TracChangeset
for help on using the changeset viewer.