Ulrich Drepper
83cd142045
Remove --wth-tls option, TLS support is required
2011-09-11 15:02:01 -04:00
Ulrich Drepper
92963737c4
Remove support for automatic cvs check-ins
...
CVS use for glibc is long gone.
2011-09-08 23:19:04 -04:00
Samuel Thibault
a12b2239dd
sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
2011-09-08 09:46:06 -07:00
Roland McGrath
7f513ec8b3
Hurd: fix use of uninitialized value in fork port copying.
2011-09-08 09:37:42 -07:00
Ulrich Drepper
d96de9634a
Try shell in posix_spawn* only in compat mode
2011-09-05 20:24:50 -04:00
Ulrich Drepper
7fb90fb89b
Fix Linux getcwd for long paths
...
The getcwd syscall (so far?) can only handle path up to one page
in size. There is no limit about directory hierarchy depth, though,
and the POSIX getcwd is supposed to handle this. In that case fall
back to the generic getcwd.
Additionally, optimize the generic getcwd to use openat when possible
to change the asymptotic performance from O(N^2) to O(n).
2011-05-08 08:37:19 -04:00
Jim Meyering
ded5b9b7c7
Remove doubled words.
2011-04-22 21:34:32 -04:00
Samuel Thibault
6c8a2e88d1
Fix __if_freereq crash: Unlike the generic version which uses free, Hurd needs munmap.
2011-02-21 16:53:10 -08:00
Samuel Thibault
8e31c82dbd
Add multiple inclusion protection to some Mach/i386 internal headers.
2011-02-16 15:16:33 -08:00
Ulrich Drepper
98727dbea2
Change XPG-compliant strerror_r function to return error code.
2010-12-25 13:56:48 -05:00
H.J. Lu
4a531bb0b3
Remove .ctors' and
.dtors' output sections
2010-12-24 20:14:37 -05:00
Samuel Thibault
fd3ebedafc
Hurd: fix ttyname{,_r} errno result for non-ttys
2010-08-03 09:54:22 -07:00
Emilio Pozuelo Monfort
23d101d8ee
Hurd: fix sendmsg memory leak in error paths
2010-07-20 19:19:34 -07:00
Emilio Pozuelo Monfort
2a50c07836
Hurd: Fix linkat symlink handling.
2010-06-02 10:25:56 -07:00
Bruno Haible
6cffee3611
BZ #11537 : Hurd: Fix ttyname_r error return value.
2010-04-26 10:07:15 -07:00
Ulrich Drepper
ab61c641c2
Fix typos from last patch.
2010-03-29 18:43:06 -07:00
Thomas Schwinge
bc58236c65
Handle platforms without aux vector
2010-03-29 15:13:53 -07:00
Samuel Thibault
b34e12e22c
Give Hurd weak aliases for getsysstats get_* functions.
2010-01-26 17:44:58 -08:00
Samuel Thibault
d924beb0f2
Define __rtld_lock_recursive_* for Hurd.
2010-01-18 14:44:22 -08:00
Ulrich Drepper
64c1f3af5d
Fix double-inclusion problem of bits/stat.h.
2010-01-11 11:03:27 -08:00
Ulrich Drepper
f095bb7204
Add support for XPG7 testing.
...
The header conformance testing code needed extending for XPG7. This
exposed a few bugs in the headers. There are more changes to come.
2010-01-09 10:56:41 -08:00
Samuel Thibault
e70ffcb0fa
Hurd: Fix spurious mach_port_deallocate in getcwd.
2009-12-22 11:47:13 -08:00
Samuel Thibault
ff28353181
Fix Hurd mkdirat.
2009-09-28 11:37:20 -07:00
Roland McGrath
7967983fd4
configure tweaks, support $libc_add_on_config_subdirs
2009-09-15 14:14:42 -07:00
Jim Meyering
edeabc047e
remove subsumed .gitignore entries and files
2009-05-16 10:41:40 +02:00
Jim Meyering
bb87237534
remove COPYING* from .gitignore files
2009-05-16 10:38:53 +02:00
Jim Meyering
2e180a2622
rename each .cvsignore file to .gitignore
2009-05-15 18:13:37 +02:00
Ulrich Drepper
6cbe890a9d
* wctype/wctype.h: The *_l functions are in POSIX 2008.
...
* wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
* sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
200112L to 200809L.
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
* posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
_SC_THREAD_ROBUST_PRIO_PROTECT entries.
* bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
_SC_THREAD_ROBUST_PRIO_PROTECT.
* posix/unistd.h: fexecve is in POSIX 2008.
* time/time.h: strftime_l is in POSIX 2008.
* io/sys/stat.h: futimens is in POSIX 2008.
* string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
* string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
* stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2009-02-26 16:53:30 +00:00
Roland McGrath
c90c1e1c99
* sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
...
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-07 01:59:43 +00:00
Roland McGrath
d3dc523b22
* sysdeps/mach/strerror_l.c: New file.
2008-11-26 19:45:00 +00:00
Roland McGrath
c0439b95b8
Moved alpha to ports repository.
...
2008-11-25 Roland McGrath <roland@redhat.com>
* sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
Subdirectories moved to ports repository.
* configure.in (base_machine): Remove alpha case.
2008-11-26 07:26:32 +00:00
Jakub Jelinek
4b23f9bda3
* bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
...
__libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
of the thread variable instead of void *.
* sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
__libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
* include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
__libc_tsd_define arguments.
(__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
__libc_tsd_address arguments. Remove union hack.
* include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
* sunrpc/rpc_thread.c (RPC_VARS): Likewise.
(__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
Adjust __libc_tsd_{set,get} arguments.
* ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
__libc_tsd_define arguments.
* locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
arguments.
* locale/lc-ctype.c (_nl_postload_ctype): Likewise.
* locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
(LOCALE): Adjust __libc_tsd_define arguments.
* locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
arguments.
(LOCALE): Adjust __libc_tsd_define arguments.
* sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
arguments.
(tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
arguments. nptl/
* sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
arguments.
(tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
arguments.
2008-11-07 Jakub Jelinek <jakub@redhat.com>
* bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
__libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
of the thread variable instead of void *.
* sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
__libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
* include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
__libc_tsd_define arguments.
(__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
__libc_tsd_address arguments. Remove union hack.
* include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
* sunrpc/rpc_thread.c (RPC_VARS): Likewise.
(__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
Adjust __libc_tsd_{set,get} arguments.
* ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
__libc_tsd_define arguments.
* locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
arguments.
* locale/lc-ctype.c (_nl_postload_ctype): Likewise.
* locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
(LOCALE): Adjust __libc_tsd_define arguments.
* locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
arguments.
(LOCALE): Adjust __libc_tsd_define arguments.
* sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
arguments.
(tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
arguments.
2008-11-07 15:07:10 +00:00
Roland McGrath
b5ec4f43cf
2008-08-11 Aurelien Jarno <aurel32@debian.org>
...
* sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
Fix asm constraints.
2008-08-12 00:59:01 +00:00
Roland McGrath
4c8ac84562
2008-08-02 Roland McGrath <roland@frob.com>
...
* sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
Add memory clobbers.
2008-08-02 20:12:08 +00:00
Roland McGrath
9844ff30b2
2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
...
* sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2008-07-14 01:16:41 +00:00
Roland McGrath
f20ac01059
2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
...
* sysdeps/mach/hurd/open.c: Include <stdio.h>.
(__open_2): New function.
(__open64_2): New alias to __open_2.
* sysdeps/mach/hurd/openat.c: Include <stdio.h>.
(__openat_2): New function.
(__openat64_2): New alias to __openat_2.
2008-07-07 00:41:05 +00:00
Roland McGrath
d5a0160b58
* sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
...
* 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-02 19:35:02 +00:00
Roland McGrath
0a583b5419
* 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/sendto.c (__sendfrom): Likewise.
* sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2008-07-02 09:54:02 +00:00
Roland McGrath
e66ecb226e
2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
...
* 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
2008-07-02 09:53:29 +00:00
Roland McGrath
8bb52dbf9b
* sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
...
CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
are already defined to avoid collision with termios.h.
2008-05-06 00:07:02 +00:00
Ulrich Drepper
72e6cdfa2c
Remove useless "if" before "free".
2008-03-19 06:43:34 +00:00
Roland McGrath
d2ea0b9659
2008-03-08 Roland McGrath <roland@frob.com>
...
* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
Clear DF bit in thread state's eflags.
Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2008-03-08 21:39:00 +00:00
Roland McGrath
9ef78a1208
2007-11-18 Roland McGrath <roland@frob.com>
...
* sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2007-11-18 22:51:16 +00:00
Ulrich Drepper
e1cedf8c1f
Hurd-specific kernel-features.h.
2007-11-13 16:28:42 +00:00
Roland McGrath
bd92328d5e
2007-10-17 Roland McGrath <roland@frob.com>
...
* sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
* sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
2007-10-17 22:32:35 +00:00
Roland McGrath
af2f25a163
* sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
2007-09-07 20:39:01 +00:00
Roland McGrath
60968d0d09
2007-08-10 Roland McGrath <roland@frob.com>
...
* sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
New macros.
(NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2007-08-10 22:50:53 +00:00
Ulrich Drepper
7b503bcc13
* iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
...
* iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
if from and to charsets are the same.
* iconv/gconv_db.c (__gconv_find_transform): Likewise.
* intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
2007-07-17 Jakub Jelinek <jakub@redhat.com>
* wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
Don't define wint_t when __need_mbstate_t unless it
is necessary.
(__mbstate_t): Use __WINT_TYPE__ rather than wint_t
in the typedef if possible.
* wctype/wctype.h (wint_t): Define by including
wchar.h with __need_wint_t instead of including stddef.h
with __need_wint_t and as fallback definining it ourselves.
* iconv/gconv.h (__need_wint_t): Define before including
wchar.h.
* sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
or _GLIBCPP_USE_WCHAR_T.
(__need_wchar_t): Don't define
if not _LIBC or _GLIBCPP_USE_WCHAR_T.
(__need_wint_t): Don't define before including stddef.h,
define before including wchar.h only if _LIBC or
_GLIBCPP_USE_WCHAR_T.
(_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
* sysdeps/mach/hurd/_G_config.h: Likewise.
* sysdeps/generic/_G_config.h: Likewise.
* libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
(_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
if _LIBC or _GLIBCPP_USE_WCHAR_T.
2007-07-28 19:02:07 +00:00
Roland McGrath
3dadfa7e0c
[BZ #3665 , BZ #4126 , BZ #4178 , BZ #4610 ]
...
* hurd/getdport.c: Add missing copyright year update.
[BZ #3665 ]
[BZ #4610 ]
[BZ #4178 ]
[BZ #4126 ]
* sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
to __sigsuspend.
2007-07-23 00:38:55 +00:00
Roland McGrath
626a51fd5c
2007-07-22 Roland McGrath <roland@frob.com>
...
* sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
* hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
2007-07-22 22:43:02 +00:00