#include <unistd.h>
#include "dirstream.h"
-
-int closedir(DIR * dir)
+int attribute_hidden __closedir(DIR * dir)
{
int fd;
free(dir);
return __close(fd);
}
+strong_alias(__closedir,closedir)
/* opendir just makes an open() call - it return NULL if it fails
* (open sets errno), otherwise it returns a DIR * pointer.
*/
-DIR *opendir(const char *name)
+DIR attribute_hidden *__opendir(const char *name)
{
int fd;
struct stat statbuf;
__pthread_mutex_init(&(ptr->dd_lock), NULL);
return ptr;
}
+strong_alias(__opendir,opendir)
#include <sys/ioctl.h>
#define __NR___syscall_ioctl __NR_ioctl
+static inline
_syscall3(int, __syscall_ioctl, int, fd, unsigned long int, request, void *, arg);
-int ioctl(int fd, unsigned long int request, ...)
+int attribute_hidden __ioctl(int fd, unsigned long int request, ...)
{
void *arg;
va_list list;
va_end(list);
return __syscall_ioctl(fd, request, arg);
}
-
+strong_alias(__ioctl,ioctl)
#include "syscalls.h"
#include <unistd.h>
-_syscall1(int, unlink, const char *, pathname);
+#define __NR___unlink __NR_unlink
+attribute_hidden _syscall1(int, __unlink, const char *, pathname);
+strong_alias(__unlink,unlink)