int scandir(const char *, struct dirent ***,
int (*)(const struct dirent *), int (*)(const void *, const void *))
__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);
#endif
#endif /* defined(_NETBSD_SOURCE) */
#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;
__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;
__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;
** Declarations.
*/
STATIC CHAR *editinput();
-extern int read();
-extern int write();
#if defined(USE_TERMCAP)
extern char *tgetstr();
extern int tgetent();