1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
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.
This commit is contained in:
Ulrich Drepper
1998-07-05 15:24:05 +00:00
parent 71412a8c76
commit dd3c89f99c
6 changed files with 32 additions and 14 deletions

View File

@ -32,12 +32,12 @@ struct __kernel_ucred
__kernel_gid_t gid;
};
extern int __sendmsg (int, const struct msghdr *, int);
extern int __syscall_sendmsg (int, const struct msghdr *, int);
/* Send a message described by MESSAGE on socket FD.
Returns the number of bytes sent, or -1 for errors. */
int
sendmsg (fd, message, flags)
__libc_sendmsg (fd, message, flags)
int fd;
const struct msghdr *message;
int flags;
@ -87,5 +87,8 @@ sendmsg (fd, message, flags)
cm = CMSG_NXTHDR ((struct msghdr *) message, cm);
}
return __sendmsg (fd, message, flags);
return __syscall_sendmsg (fd, message, flags);
}
weak_alias (__libc_sendmsg, __sendmsg)
weak_alias (__libc_sendmsg, sendmsg)