aboutsummaryrefslogtreecommitdiff
path: root/hurd
AgeCommit message (Collapse)AuthorFilesLines
2015-02-08add hurd/hurdsocket.h file missing from a5eb23dSamuel Thibault1-0/+30
2015-02-07hurd: fix compilation of signal.h in C++Samuel Thibault1-2/+2
2015-02-07hurd: fix compilation of signal.h in C++Samuel Thibault1-1/+1
2015-02-07hurdselect: remove dead code.Samuel Thibault1-7/+0
This removes code which actually never happens, and is already taken care of in the function. This is in the second part of select, when the __mach_msg() function over the portset has returned something else than MACH_MSG_SUCCESS. I guess in the past the value returned by __mach_msg() was stored in err, so this code was necessary to set back err to 0, but now it is stored in msgerr, so err is already still 0 by default. It can thus never contain MACH_RCV_TIMED_OUT, i.e. the code is dead. The first case mentioned in the comment is already handled: on time out with no message, err is already still the default 0. On time out due to poll, err would still be 0, unless some of the io_select RPCs has returned EINTR, in which case it contains EINTR. If any other io_select RPCs had returned a proper answer, got!=0, and thus err is set to 0 just below. The code is thus indeed not useful any more.
2015-02-07hurd: fix sigstate lockingSamuel Thibault1-2/+1
It looks like _hurd_thread_sigstate used to return with the sigstate lock held long ago, but since that's no longer the case, don't unlock something that isn't locked. Note that it's unlikely this change fixes anything in practice since its current implementation (on i386) makes this call a nop.
2015-02-07hurdselect: Let select get interrupted by signalsSamuel Thibault1-1/+4
We need to set MACH_RCV_INTERRUPT to avoid __mach_msg just looping on signals, and then we can handle the interruption.
2015-02-07hurd: map nice levels 1-to-1 with Mach prio levelsSamuel Thibault1-2/+2
2015-02-07hurd: allow poll() array bigger than FD_SETSIZESamuel Thibault1-1/+1
2015-01-02Update copyright dates with scripts/update-copyrights.Joseph Myers83-83/+83
2014-02-26Consistently include Makeconfig after defining subdir.Joseph Myers1-4/+0
In <https://sourceware.org/ml/libc-alpha/2014-01/msg00196.html> I noted it was necessary to add includes of Makeconfig early in various subdirectory makefiles for the tests-special variable settings added by that patch to be conditional on configuration information. No-one commented on the general question there of whether Makeconfig should always be included immediately after the definition of subdir. This patch implements that early inclusion of Makeconfig in each directory (which is a lot easier than consistent placement of includes of Rules). Includes are added if needed, or moved up if already present. Subdirectory "all:" targets are removed, since Makeconfig provides one. There is potential for further cleanups I haven't done. Rules and Makerules have code such as ifneq "$(findstring env,$(origin headers))" "" headers := endif to override to empty any value of various variables that came from the environment. I think there is a case for Makeconfig setting all the subdirectory variables (other than subdir) to empty to ensure no outside value is going to take effect if a subdirectory fails to define a variable. (A list of such variables, possibly out of date and incomplete, is in manual/maint.texi.) Rules and Makerules would give errors if Makeconfig hadn't already been included, instead of including it themselves. The special code to override values coming from the environment would then be obsolete and could be removed. Tested x86_64, including that installed binaries are identical before and after the patch. * argp/Makefile: Include Makeconfig immediately after defining subdir. * assert/Makefile: Likewise. * benchtests/Makefile: Likewise. * catgets/Makefile: Likewise. * conform/Makefile: Likewise. * crypt/Makefile: Likewise. * csu/Makefile: Likewise. (all): Remove target. * ctype/Makefile: Include Makeconfig immediately after defining subdir. * debug/Makefile: Likewise. * dirent/Makefile: Likewise. * dlfcn/Makefile: Likewise. * gmon/Makefile: Likewise. * gnulib/Makefile: Likewise. * grp/Makefile: Likewise. * gshadow/Makefile: Likewise. * hesiod/Makefile: Likewise. * hurd/Makefile: Likewise. (all): Remove target. * iconvdata/Makefile: Include Makeconfig immediately after defining subdir. * inet/Makefile: Likewise. * intl/Makefile: Likewise. * io/Makefile: Likewise. * libio/Makefile: Likewise. (all): Remove target. * locale/Makefile: Include Makeconfig immediately after defining subdir. * login/Makefile: Likewise. * mach/Makefile: Likewise. (all): Remove target. * malloc/Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. * manual/Makefile: Include Makeconfig immediately after defining subdir. * math/Makefile: Likewise. * misc/Makefile: Likewise. * nis/Makefile: Likewise. * nss/Makefile: Likewise. * po/Makefile: Likewise. (all): Remove target. * posix/Makefile: Include Makeconfig immediately after defining subdir. * pwd/Makefile: Likewise. * resolv/Makefile: Likewise. * resource/Makefile: Likewise. * rt/Makefile: Likewise. * setjmp/Makefile: Likewise. * shadow/Makefile: Likewise. * signal/Makefile: Likewise. * socket/Makefile: Likewise. * soft-fp/Makefile: Likewise. * stdio-common/Makefile: Likewise. * stdlib/Makefile: Likewise. * streams/Makefile: Likewise. * string/Makefile: Likewise. * sunrpc/Makefile: Likewise. (all): Remove target. * sysvipc/Makefile: Include Makeconfig immediately after defining subdir. * termios/Makefile: Likewise. * time/Makefile: Likewise. * timezone/Makefile: Likewise. (all): Remove target. * wcsmbs/Makefile: Include Makeconfig immediately after defining subdir. * wctype/Makefile: Likewise. libidn/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. localedata/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. nptl/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. nptl_db/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir.
2014-02-22Remove obsolete SHLIB_COMPAT conditionalization in Versions files.Roland McGrath1-29/+0
2014-02-10Use glibc_likely instead __builtin_expect.Ondřej Bílka1-1/+1
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae83-83/+83
2013-09-04Remove --disable-versioning.Joseph Myers2-2/+2
2013-06-08Use (void) in no-arguments function definitions.Joseph Myers1-1/+1
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers1-20/+20
2013-06-06Fix leading whitespaces.Ondrej Bilka3-7/+7
2013-06-05Remove trailing whitespace.Joseph Myers3-3/+3
2013-01-02Fix copyright notice corruption from update-copyright bug.Joseph Myers6-6/+6
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers83-88/+83
2013-01-01Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers6-12/+6
2012-08-03Distinguish ELOOP diagnosis threshold from SYMLOOP_MAX.Roland McGrath1-2/+3
2012-05-10Hurd: avoid PLT call to strtoulThomas Schwinge1-5/+4
2012-05-10Hurd: hurdsock: reject negative domainsPino Toscano1-1/+7
2012-05-10Hurd: _hurd_select: check for invalid parameter valuesPino Toscano1-7/+21
2012-05-10Hurd: empty file names fail with ENOENTSamuel Thibault1-1/+4
2012-05-10Hurd: Missing critical region locks.Samuel Thibault1-0/+2
2012-05-10Hurd: Fix signal-catching functions.Samuel Thibault1-5/+8
2012-05-10Hurd: O_CLOEXEC in rtldThomas Schwinge3-7/+7
2012-03-20Move stdio-common/_itoa.h to sysdeps/genericH.J. Lu2-2/+2
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-5/+2
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert83-249/+166
2011-09-10Cleanup of configuration optionsUlrich Drepper2-34/+3
Make several tool features mandatory and simplify the code.
2010-08-02Hurd: fix timeout rounding in selectSamuel Thibault1-1/+1
2010-06-02Hurd: Fix linkat symlink handling.Emilio Pozuelo Monfort2-2/+9
2010-04-26Hurd: Fix file_name_lookup_at error case return value.Emilio Pozuelo Monfort1-2/+2
2010-02-19Fix Hurd tiocsctty change.Carl Fredrik Hammar1-1/+1
2010-02-17Clean up Hurd TIOCSCTTY.Carl Fredrik Hammar1-19/+25
2010-02-17Use ioctl_handler_t typedef in Hurd ioctl macros.Carl Fredrik Hammar1-1/+1
2009-12-22Hurd: Fix possibly uninitialized variable in _hurd_locked_install_cttyid.Samuel Thibault1-14/+10
2009-05-16Remove redundant .gitignore files.Andreas Schwab1-6/+0
2009-05-15rename each .cvsignore file to .gitignoreJim Meyering1-0/+0
2009-01-07* sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:Roland McGrath1-0/+1
Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h net/route.h. * hurd/report-wait.c (describe_number): Use __stpcpy to prepend flavor to description only when flavor is not NULL. * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock mutex after SIGIO/SIGURG lookup loop.
2009-01-072009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>Roland McGrath1-2/+2
* hurd/report-wait.c (describe_number): Use __stpcpy to prepend flavor to description only when flavor is not NULL.
2008-08-262008-08-26 Aurelien Jarno <aurelien@aurel32.net>Roland McGrath1-1/+1
* hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2008-08-132008-08-12 Roland McGrath <roland@frob.com>Roland McGrath1-3/+6
* hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers, in case used outside of libc. Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2008-07-22* hurd/fd-read.c (_hurd_fd_read): Fix last change.Roland McGrath1-1/+4
2008-07-212008-07-21 Roland McGrath <roland@frob.com>Roland McGrath1-1/+3
* hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server returned too much data out of line.
2008-07-02* sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.cvs/fedora-glibc-20080703T1203Roland McGrath2-0/+2
* sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise. * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise. * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD. * hurd/get-host.c (_hurd_get_host_config): Likewise. * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2008-07-022008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>Roland McGrath1-0/+13
* sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL. * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function. * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of __hurd_dfail. * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise * sysdeps/mach/hurd/send.c (__send): Likewise * sysdeps/mach/hurd/sendfrom.c (__sendfrom): Likewise * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise