Print this page
3853 __cplusplus change and headers incompatipility with clang


 444 extern int ptrace(int, pid_t, int, int);
 445 #endif
 446 #if !defined(_POSIX_C_SOURCE) || defined(_XPG5) || \
 447         (defined(_LARGEFILE_SOURCE) && _FILE_OFFSET_BITS == 64) || \
 448         defined(__EXTENSIONS__)
 449 extern ssize_t pwrite(int, const void *, size_t, off_t);
 450 #endif
 451 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
 452 /* per RFC 3542; This is also defined in netdb.h */
 453 extern int rcmd_af(char **, unsigned short, const char *, const char *,
 454         const char *, int *, int);
 455 #endif
 456 extern ssize_t read(int, void *, size_t);
 457 #if !defined(__XOPEN_OR_POSIX) || \
 458         defined(_XPG4_2) || defined(__EXTENSIONS__)
 459 extern ssize_t readlink(const char *_RESTRICT_KYWD, char *_RESTRICT_KYWD,
 460         size_t);
 461 #endif
 462 #if (!defined(__XOPEN_OR_POSIX) || (defined(_XPG3) && !defined(_XPG4))) || \
 463         defined(__EXTENSIONS__)



 464 extern int rename(const char *, const char *);





 465 #endif /* (!defined(__XOPEN_OR_POSIX) || (defined(_XPG3)... */
 466 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
 467 extern int resolvepath(const char *, char *, size_t);
 468 /* per RFC 3542; This is also defined in netdb.h */
 469 extern int rexec_af(char **, unsigned short, const char *, const char *,
 470         const char *, int *, int);
 471 #endif /* !defined(__XOPEN_OR_POSIX)|| defined(__EXTENSIONS__) */
 472 extern int rmdir(const char *);
 473 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
 474 /* per RFC 3542; This is also defined in netdb.h */
 475 extern int rresvport_af(int *, int);
 476 #endif
 477 
 478 #if !defined(__XOPEN_OR_POSIX) || (defined(_XPG4_2) && !defined(_XPG6)) || \
 479         defined(__EXTENSIONS__)
 480 extern void *sbrk(intptr_t);
 481 #endif /* !defined(__XOPEN_OR_POSIX) || (defined(_XPG4_2)... */
 482 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
 483 extern int setegid(gid_t);
 484 extern int seteuid(uid_t);




 444 extern int ptrace(int, pid_t, int, int);
 445 #endif
 446 #if !defined(_POSIX_C_SOURCE) || defined(_XPG5) || \
 447         (defined(_LARGEFILE_SOURCE) && _FILE_OFFSET_BITS == 64) || \
 448         defined(__EXTENSIONS__)
 449 extern ssize_t pwrite(int, const void *, size_t, off_t);
 450 #endif
 451 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
 452 /* per RFC 3542; This is also defined in netdb.h */
 453 extern int rcmd_af(char **, unsigned short, const char *, const char *,
 454         const char *, int *, int);
 455 #endif
 456 extern ssize_t read(int, void *, size_t);
 457 #if !defined(__XOPEN_OR_POSIX) || \
 458         defined(_XPG4_2) || defined(__EXTENSIONS__)
 459 extern ssize_t readlink(const char *_RESTRICT_KYWD, char *_RESTRICT_KYWD,
 460         size_t);
 461 #endif
 462 #if (!defined(__XOPEN_OR_POSIX) || (defined(_XPG3) && !defined(_XPG4))) || \
 463         defined(__EXTENSIONS__)
 464 #if __cplusplus >= 199711L
 465 namespace std {
 466 #endif
 467 extern int rename(const char *, const char *);
 468 #if __cplusplus >= 199711L
 469 } /* end of namespace std */
 470 
 471 using std::rename;
 472 #endif /* __cplusplus >= 199711L */
 473 #endif /* (!defined(__XOPEN_OR_POSIX) || (defined(_XPG3)... */
 474 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
 475 extern int resolvepath(const char *, char *, size_t);
 476 /* per RFC 3542; This is also defined in netdb.h */
 477 extern int rexec_af(char **, unsigned short, const char *, const char *,
 478         const char *, int *, int);
 479 #endif /* !defined(__XOPEN_OR_POSIX)|| defined(__EXTENSIONS__) */
 480 extern int rmdir(const char *);
 481 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
 482 /* per RFC 3542; This is also defined in netdb.h */
 483 extern int rresvport_af(int *, int);
 484 #endif
 485 
 486 #if !defined(__XOPEN_OR_POSIX) || (defined(_XPG4_2) && !defined(_XPG6)) || \
 487         defined(__EXTENSIONS__)
 488 extern void *sbrk(intptr_t);
 489 #endif /* !defined(__XOPEN_OR_POSIX) || (defined(_XPG4_2)... */
 490 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
 491 extern int setegid(gid_t);
 492 extern int seteuid(uid_t);