Fix prototypes for getdents, read, readlink

This commit is contained in:
Arun Thomas 2012-08-10 22:09:43 +02:00
parent fbad9eaf95
commit 65a87d5bcb
5 changed files with 4 additions and 12 deletions

View file

@ -107,7 +107,7 @@ DIR *__opendir2(const char *, int) __RENAME(__opendir230);
int scandir(const char *, struct dirent ***, int scandir(const char *, struct dirent ***,
int (*)(const struct dirent *), int (*)(const void *, const void *)) int (*)(const struct dirent *), int (*)(const void *, const void *))
__RENAME(__scandir30); __RENAME(__scandir30);
int getdents(int, char *, size_t) __RENAME(__getdents30); ssize_t getdents(int, char *, size_t) __RENAME(__getdents30);
int alphasort(const void *, const void *) __RENAME(__alphasort30); int alphasort(const void *, const void *) __RENAME(__alphasort30);
#endif #endif
#endif /* defined(_NETBSD_SOURCE) */ #endif /* defined(_NETBSD_SOURCE) */

View file

@ -4,10 +4,7 @@
#include <dirent.h> #include <dirent.h>
ssize_t getdents(fd, buffer, nbytes) ssize_t getdents(int fd, char *buffer, size_t nbytes)
int fd;
char *buffer;
size_t nbytes;
{ {
message m; message m;

View file

@ -8,10 +8,7 @@
__weak_alias(read, _read) __weak_alias(read, _read)
#endif #endif
ssize_t read(fd, buffer, nbytes) ssize_t read(int fd, void *buffer, size_t nbytes)
int fd;
void *buffer;
size_t nbytes;
{ {
message m; message m;

View file

@ -9,7 +9,7 @@
__weak_alias(readlink, _readlink) __weak_alias(readlink, _readlink)
#endif #endif
int readlink(const char *name, char *buffer, size_t bufsiz) ssize_t readlink(const char *name, char *buffer, size_t bufsiz)
{ {
message m; message m;

View file

@ -97,8 +97,6 @@ int rl_meta_chars = 0;
** Declarations. ** Declarations.
*/ */
STATIC CHAR *editinput(); STATIC CHAR *editinput();
extern int read();
extern int write();
#if defined(USE_TERMCAP) #if defined(USE_TERMCAP)
extern char *tgetstr(); extern char *tgetstr();
extern int tgetent(); extern int tgetent();