diff options
author | Roland McGrath <roland@gnu.org> | 2002-04-08 02:16:43 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-04-08 02:16:43 +0000 |
commit | 7ce93726fb9f02c45e45df15d923faabaa8951d3 (patch) | |
tree | 8a3c8ca67f54134b2de37cf6d135042e717288db /sysdeps/mach/hurd/setsockopt.c | |
parent | 14906e37fed856d51451b5bc2ac3c68d1e29e1a6 (diff) | |
download | glibc-7ce93726fb9f02c45e45df15d923faabaa8951d3.tar.gz |
* mach/setup-thread.c (__mach_setup_thread): int -> natural_t
* sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
(__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
* sysdeps/mach/hurd/bind.c: Use prototype definition.
* sysdeps/mach/hurd/connect.c: Likewise.
* sysdeps/mach/hurd/getsockopt.c: Likewise.
* sysdeps/mach/hurd/setsockopt.c: Likewise.
* sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
__msg_sig_post RPC.
* hurd/catch-exc.c: Use integer_t instead of int.
* hurd/hurdfault.c: Likewise.
* sysdeps/mach/hurd/alpha/exc2signal.c
(_hurd_exception2signal): Rewritten.
* sysdeps/mach/hurd/alpha/longjmp-ts.c
(_hurd_longjmp_thread_state): Rewritten.
Diffstat (limited to 'sysdeps/mach/hurd/setsockopt.c')
-rw-r--r-- | sysdeps/mach/hurd/setsockopt.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sysdeps/mach/hurd/setsockopt.c b/sysdeps/mach/hurd/setsockopt.c index 620fef05d6..9875e96311 100644 --- a/sysdeps/mach/hurd/setsockopt.c +++ b/sysdeps/mach/hurd/setsockopt.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1994, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1992,94,97,98,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,12 +27,11 @@ Returns 0 on success, -1 for errors. */ /* XXX __setsockopt ? */ int -setsockopt (fd, level, optname, optval, optlen) - int fd; - int level; - int optname; - const void *optval; - size_t optlen; +setsockopt (int fd, + int level, + int optname, + const void *optval, + socklen_t optlen) { error_t err = HURD_DPORT_USE (fd, __socket_setopt (port, level, optname, |