2005-11-03 Shaun Jackman <sjackman@gmail.com>

* libc/include/sys/unistd.h (readlink, symlink): Provide these
        prototypes by default.
        * libc/sys/linux/include/unistd.h (readlink): Remove this
        prototype.
        * libc/sys/linux/sys/unistd.h (readlink, symlink): New
        prototypes.
This commit is contained in:
Jeff Johnston 2005-11-03 16:52:15 +00:00
parent 314f743e1e
commit d31a862312
4 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2005-11-03 Shaun Jackman <sjackman@gmail.com>
* libc/include/sys/unistd.h (readlink, symlink): Provide these
prototypes by default.
* libc/sys/linux/include/unistd.h (readlink): Remove this
prototype.
* libc/sys/linux/sys/unistd.h (readlink, symlink): New
prototypes.
2005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org> 2005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Cleanup #if vs. #ifdef. * libc/include/stdint.h: Cleanup #if vs. #ifdef.

View File

@ -211,9 +211,9 @@ void _EXFUN(sync, (void));
#else /* defined(__rtems__) */ #else /* defined(__rtems__) */
int _EXFUN(sync, (void)); int _EXFUN(sync, (void));
#endif #endif
#endif
int _EXFUN(readlink, (const char *__path, char *__buf, int __buflen)); int _EXFUN(readlink, (const char *__path, char *__buf, int __buflen));
int _EXFUN(symlink, (const char *__name1, const char *__name2)); int _EXFUN(symlink, (const char *__name1, const char *__name2));
#endif
#define F_OK 0 #define F_OK 0
#define R_OK 4 #define R_OK 4

View File

@ -15,6 +15,4 @@ extern char *optarg;
extern int optind, opterr, optopt; extern int optind, opterr, optopt;
int readlink(const char *path, char *buf, size_t bufsiz);
#endif #endif

View File

@ -72,6 +72,7 @@ int _EXFUN(pipe, (int __fildes[2] ));
ssize_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes, off_t __offset)); ssize_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes, off_t __offset));
ssize_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset)); ssize_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset));
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte )); _READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte ));
int _EXFUN(readlink, (const char *path, char *buf, size_t bufsiz));
int _EXFUN(rmdir, (const char *__path )); int _EXFUN(rmdir, (const char *__path ));
void * _EXFUN(sbrk, (ptrdiff_t __incr)); void * _EXFUN(sbrk, (ptrdiff_t __incr));
int _EXFUN(setegid, (gid_t __gid )); int _EXFUN(setegid, (gid_t __gid ));
@ -83,6 +84,7 @@ pid_t _EXFUN(setsid, (void ));
int _EXFUN(setuid, (uid_t __uid )); int _EXFUN(setuid, (uid_t __uid ));
unsigned _EXFUN(sleep, (unsigned int __seconds )); unsigned _EXFUN(sleep, (unsigned int __seconds ));
void _EXFUN(swab, (const void *, void *, ssize_t)); void _EXFUN(swab, (const void *, void *, ssize_t));
int _EXFUN(symlink, (const char *oldpath, const char *newpath));
long _EXFUN(sysconf, (int __name )); long _EXFUN(sysconf, (int __name ));
pid_t _EXFUN(tcgetpgrp, (int __fildes )); pid_t _EXFUN(tcgetpgrp, (int __fildes ));
int _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id )); int _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));