summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/recvmsg.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-05 15:24:05 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-05 15:24:05 +0000
commitdd3c89f99cf911345abd1781be699a73f699aa00 (patch)
tree2111005f2d5d99dd9f1e94b492e75efec2d0e051 /sysdeps/unix/sysv/linux/recvmsg.c
parent71412a8c76fe28a62a2acf243f5ae4e91ddf632e (diff)
Update.
1998-07-05 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/__sendmsg.S: Define function as __syscall_sendmsg. * sysdeps/unix/sysv/linux/__recvmsg.S: Define function as __syscall_recvmsg. * sysdeps/unix/sysv/linux/recvmsg.c: Define function as __libc_recvmsg and make __recvmsg and recvmsg weak aliases. * sysdeps/unix/sysv/linux/sendmsg.c: Likewise for sendmsg. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Define __syscall_recvmsg and __syscall_sendmsg.
Diffstat (limited to 'sysdeps/unix/sysv/linux/recvmsg.c')
-rw-r--r--sysdeps/unix/sysv/linux/recvmsg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/recvmsg.c b/sysdeps/unix/sysv/linux/recvmsg.c
index 04cf230828..14a3417da8 100644
--- a/sysdeps/unix/sysv/linux/recvmsg.c
+++ b/sysdeps/unix/sysv/linux/recvmsg.c
@@ -32,10 +32,10 @@ struct __kernel_ucred
__kernel_gid_t gid;
};
-extern int __recvmsg (int, struct msghdr *, int);
+extern int __syscall_recvmsg (int, struct msghdr *, int);
int
-recvmsg (fd, message, flags)
+__libc_recvmsg (fd, message, flags)
int fd;
struct msghdr *message;
int flags;
@@ -61,7 +61,7 @@ recvmsg (fd, message, flags)
}
- ret = __recvmsg (fd, message, flags);
+ ret = __syscall_recvmsg (fd, message, flags);
if (ret == -1)
return ret;
@@ -91,3 +91,6 @@ recvmsg (fd, message, flags)
}
return ret;
}
+
+weak_alias (__libc_recvmsg, __recvmsg)
+weak_alias (__libc_recvmsg, recvmsg)