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

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

View File

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

View File

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

View File

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