about summary refs log tree commit diff
path: root/sysdeps/mach/hurd
Commit message (Collapse)AuthorAgeFilesLines
* Update.Ulrich Drepper2002-01-181-4/+7
| | | | | | | | | | * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at end of enum for !_GNU_SOURCE. * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise. * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_* values unless _GNU_SOURCE.
* 2002-01-07 Roland McGrath <roland@frob.com>Roland McGrath2002-01-081-4/+4
| | | | | * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use volatile on type of ARGC so the compiler doesn't get clever.
* 2002-01-05 Roland McGrath <roland@frob.com>Roland McGrath2002-01-052-0/+60
| | | | | | | * config.h.in (HAVE_MIG_RETCODE): New #undef. * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE. * sysdeps/mach/hurd/configure: Regenerated.
* * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,Roland McGrath2002-01-022-5/+7
| | | | | | | | | __sigisemptyset. Don't use MASK uninitialized. * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset. * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset. * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember, __sigdelset, __sigaddset, __sigorset.
* * hurd/hurdinit.c (_hurd_ports_use): Return error _hurd_ports is null.Roland McGrath2002-01-022-7/+27
| | | | | | | | | | | | | * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup for old CMU and new OSF Mach interface flavors. * hurd/hurdfault.c (_hurdsig_fault_init): Likewise. * sysdeps/mach/hurd/fork.c (__fork): Likewise. * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset. * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]: Pass extra arguments to task_create for OSF variant. * sysdeps/mach/hurd/fork.c (__fork): Likewise.
* * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling codeRoland McGrath2002-01-025-9/+30
| | | | | | | | | | | | | | | | | | | conditional on [HAVE_AUX_VECTOR]. * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use mach_msg_timeout_t as type of final argument. * hurd/privports.c (__get_privileged_ports): Change host_priv_t to mach_port_t in argument type. * hurd/hurd.h (get_privileged_ports, __get_privileged_ports): Update decls. * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H]. * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise. * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise. * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise. * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
* 2002-01-01 Roland McGrath <roland@frob.com>Roland McGrath2002-01-021-2/+2
| | | | * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
* 2002-01-01 Roland McGrath <roland@frob.com>Roland McGrath2002-01-021-1/+1
| | | | * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
* * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,Roland McGrath2001-12-261-7/+8
| | | | | | | | | check only (SS->pending & MASK) for the signal to return. From Jeroen Dekkers <jeroen@dekkers.cx>. * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]: Use preprocessor #if conditionals instead of `if' to avoid warnings about divide by zero in dead code.
* * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' afterRoland McGrath2001-12-171-10/+6
| | | | | | | `default:' to silence new GCC warning. Rewrite cast of lvalue to silence new GCC warning. * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
* 2001-12-16 Roland McGrath <roland@frob.com>Roland McGrath2001-12-161-0/+751
| | | | | * sysdeps/mach/hurd/spawni.c: New file, by me with a couple fixes by Neal H Walfield <neal@cs.uml.edu>.
* * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we neverRoland McGrath2001-12-111-15/+15
| | | | set it.
* 2001-12-10 Roland McGrath <roland@frob.com>Roland McGrath2001-12-112-2/+16
| | | | | | * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Fix conditionals so this is set by default for stdio and not for libio. * sysdeps/mach/hurd/configure: Regenerated.
* 2001-12-01 Roland McGrath <roland@frob.com>Roland McGrath2001-12-022-2/+2
| | | | | | * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add missing backslash in test arguments. * sysdeps/mach/hurd/configure: Regenerated.
* Update.Ulrich Drepper2001-11-164-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-02 Jakub Jelinek <jakub@redhat.com> H.J. Lu <hjl@gnu.org> * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc if gcc supports this flag. (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it. (gcc3): Allow glibc to be compiled with gcc 3.x. * config.h.in (EXPORT_UNWIND_FIND_FDE): Add. * config.make.in (static-libgcc, unwind-find-fde): Add. * Makerules (build-shlib-helper, build-module-helper): Use it. * scripts/versions.awk: Make sure GLIBC_ versions come first. * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if necessary. (_fini): Call __deregister_frame_info_bases if __register_frame_info_bases was used to register. * elf/Versions (__register_frame_info, __deregister_frame_info): Add for GLIBC_2.0. (__register_frame_info_bases, __register_frame_info_table_bases, __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GLIBC_2.2.5. * elf/Makefile (routines): Add unwind-dw2-fde. (shared-only-routines): Add unwind-dw2-fde. * sysdeps/alpha/gccframe.h: New file. * sysdeps/arm/gccframe.h: New file. * sysdeps/generic/framestate.c: New file. * sysdeps/generic/dwarf2.h: New file. * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0. * sysdeps/generic/unwind-dw2-fde.c: New file. * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file. * sysdeps/generic/unwind-dw2-fde.h: New file. * sysdeps/generic/unwind-dw2.c: New file. * sysdeps/generic/unwind-pe.h: New file. * sysdeps/generic/unwind.h: New file. * sysdeps/hppa/gccframe.h: New file. * sysdeps/i386/gccframe.h: New file. * sysdeps/m68k/gccframe.h: New file. * sysdeps/mips/gccframe.h: New file. * sysdeps/powerpc/gccframe.h: New file. * sysdeps/s390/gccframe.h: New file. * sysdeps/sh/gccframe.h: New file. * sysdeps/sparc/gccframe.h: New file. * sysdeps/vax/gccframe.h: New file. * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde): Set on all architectures except ia64. * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set for i386. * sysdeps/mach/hurd/i386/Versions (__register_frame_info, __deregister_frame_info): Move to elf/Versions. * sysdeps/unix/sysv/linux/m68k/Versions: Likewise. * sysdeps/unix/sysv/linux/arm/Versions: Likewise. * sysdeps/unix/sysv/linux/alpha/Versions: Likewise. * sysdeps/unix/sysv/linux/i386/Versions: Likewise. * sysdeps/unix/sysv/linux/mips/Versions: Likewise. * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise. * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate. * sysdeps/unix/sysv/linux/arm/Makefile: Likewise. * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise. * sysdeps/unix/sysv/linux/i386/Makefile: Likewise. * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise. * sysdeps/unix/sysv/linux/mips/Makefile: Likewise. * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise. * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise. * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file. * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file. * sysdeps/generic/strnlen.c: New file.
* * stdio-common/tmpfile.c: Moved to ...Roland McGrath2001-11-131-0/+66
| | | | | | | | | | | | * sysdeps/generic/tmpfile.c: ... here. * sysdeps/mach/hurd/tmpfile.c: New file. * hurd/fopenport.c (__fopenport): Renamed from fopenport. [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie. (fopenport): Define as weak alias. * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ... * libio/libioP.h: ... to here.
* Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.Roland McGrath2001-11-1010-0/+1260
| | | | | | | | | | | | | | * NEWS: Mention it. * sysdeps/mach/hurd/powerpc/exc2signal.c: New file. * sysdeps/mach/hurd/powerpc/init-first.c: New file. * sysdeps/mach/hurd/powerpc/intr-msg.h: New file. * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file. * sysdeps/mach/hurd/powerpc/register-dump.h: New file. * sysdeps/mach/hurd/powerpc/sigreturn.c: New file. * sysdeps/mach/hurd/powerpc/static-start.S: New file. * sysdeps/mach/hurd/powerpc/trampoline.c: New file. * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file. * sysdeps/mach/hurd/powerpc/Dist: New file.
* Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.Roland McGrath2001-10-292-9/+10
| | | | | | | | | | | | | * sysdeps/mach/powerpc/machine-sp.h: New file. * sysdeps/mach/powerpc/sysdep.h: New file. * sysdeps/mach/powerpc/thread_state.h: New file. * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ... * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can expect to need the same thing on every platform. * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ... * sysdeps/generic/sys/ucontext.h: ... to replace this one.
* 2001-10-10 Jeff Bailey <jbailey@nisa.net>Roland McGrath2001-10-101-1/+1
| | | | | | | | | * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of bits/errno.h 2001-10-07 Roland McGrath <roland@frob.com> * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
* 2001-10-07 Roland McGrath <roland@frob.com>Roland McGrath2001-10-101-7/+4
| | | | * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
* Update.Ulrich Drepper2001-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-07 Tom Rix <trix@redhat.com> * sysdeps/unix/sysv/aix/sysv_termio.h: New file. 2001-08-26 Tom Rix <trix@redhat.com> * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker command line options. * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c * sysdeps/unix/sysv/aix/start.c: Removed. * sysdeps/unix/sysv/aix/start-libc.c: New file. * sysdeps/unix/sysv/aix/init-first.c: New file. * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl. 2001-09-08 Ben Collins <bcollins@debian.org> * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format. * sysdeps/generic/dl-machine.h: Likewise. * sysdeps/hppa/dl-fptr.c: Likewise. * sysdeps/ia64/dl-fptr.c: Likewise. * sysdeps/mach/hurd/dl-sysdep.c: Likewise. * sysdeps/mips/dl-machine.h: Likewise. * sysdeps/mips/mips64/dl-machine.h: Likewise. * sysdeps/powerpc/dl-machine.c: Likewise. 2001-09-07 Ben Collins <bcollins@debian.org> * sysdeps/sparc/sparc32/dl-machine.h: Fix typo. * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map. * elf/dl-lookup.c (add_dependency): Bump l_opencount of all dependencies if necessary.
* * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied fromRoland McGrath2001-08-242-65/+183
| | | | | | | | | | | | | | | | | | | | | | | | | sysdeps/mach version. Implement counting ("recursive") mutexes on top of cthreads mutexes. * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works. * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error. (__libc_cleanup_region_start, __libc_cleanup_region_end, __libc_clean_end): Define these to call the cleanup function after normal exit when they're supposed to. * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start): Take new first arg DOIT, a boolean saying whether to really install any cleanup handler. (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero. (__libc_cleanup_end): Likewise. * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg. * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise. * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start): Likewise. * misc/syslog.c (vsyslog, openlog, closelog): Likewise. * sysdeps/generic/bits/stdio-lock.h (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
* * conform/conformtest.pl (checknamespace): Sort the output list.Roland McGrath2001-08-231-5/+3
| | | | | | | | | | * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT. (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these definitions conditional on [__USE_XOPEN]. * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define these unconditionally, not only use [__USE_BSD], so as to match the sysdeps/unix/sysv/linux files.
* * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ before ↵Mark Kettenis2001-08-201-3/+11
| | | | | | | | | calling the cthreads initialization code. 2001-08-18 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ before calling the cthreads initialization code.
* * sysdeps/mach/hurd/clock.c: New file.Roland McGrath2001-08-134-22/+136
| | | | | | * sysdeps/mach/hurd/times.c: New file. * sysdeps/mach/hurd/getclktck.c (__getclktck): Always return 1000000. * sysdeps/mach/hurd/init-posix.c: New file.
* * hurd/hurdlookup.c (__hurd_file_name_lookup): Comment fix.Roland McGrath2001-08-122-74/+6
| | | | | | * sysdeps/mach/hurd/bits/time.h (CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID): New macros. * sysdeps/mach/hurd/i386/bits/time.h: File removed.
* Update.Ulrich Drepper2001-08-112-1/+9
| | | | | | | * sysdeps/arm/init-first.c: Likewise. * sysdeps/generic/init-first.c: Likewise. * sysdeps/i386/init-first.c: Likewise. * sysdeps/sh/init-first.c: Likewise.
* 2001-08-04 Roland McGrath <roland@frob.com>Roland McGrath2001-08-051-1/+15
| | | | | * sysdeps/mach/hurd/getrusage.c: Use TASK_EVENTS_INFO if implemented by the microkernel (which it's not).
* * sysdeps/mach/hurd/recvmsg.c: New file. * sysdeps/mach/hurd/sendmsg.c: New ↵Mark Kettenis2001-07-292-0/+296
| | | | | | | | | file. 2001-07-29 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/recvmsg.c: New file. * sysdeps/mach/hurd/sendmsg.c: New file.
* Update.Ulrich Drepper2001-07-241-1/+3
| | | | | | | | | | | | | * libio/genops.c (_IO_list_all_stamp): New variable. (_IO_un_link): Bump _IO_list_all_stamp after removing from list. (_IO_link): Likewise for insertion. (flush_cleanup): New function. (_IO_flush_all): Get list_all_lock and all individual locks for the streams. Detect and handle changes to the _IO_list_all list. (_IO_flush_all_linebuffered): Likewise. * sysdeps/generic/bits/stdio-lock.h: Define _IO_cleanup_region_start_noarg. * sysdeps/mach/hurd/bits/stdio-lock.c: Likewise.
* 2001-07-20 Roland McGrath <roland@frob.com>Roland McGrath2001-07-211-2/+2
| | | | * sysdeps/mach/hurd/device-nrs.h: Comment fix, typo fix.
* * sysdeps/generic/device-nrs.h (DEV_TTY_P): Change argument typeRoland McGrath2001-07-211-0/+28
| | | | | | | from `dev_t' (st_rdev value) `const struct stat *'. * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Likewise. * libio/filedoalloc.c (_IO_file_doallocate): Change caller. * sysdeps/mach/hurd/device-nrs.h: New file.
* * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Generate ↵Mark Kettenis2001-07-071-2/+4
| | | | | | | | | | SIGSEGV instead of SIGBUS for KERN_INVALID_ADDRESS and KERN_WRITE_PROTECTION_FAILURE. 2001-07-07 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Generate SIGSEGV instead of SIGBUS for KERN_INVALID_ADDRESS and KERN_WRITE_PROTECTION_FAILURE.
* Update to LGPL v2.1.Andreas Jaeger2001-07-06218-1745/+1745
| | | | | | | | | | | | | | 2001-07-06 Paul Eggert <eggert@twinsun.com> * manual/argp.texi: Remove ignored LGPL copyright notice; it's not appropriate for documentation anyway. * manual/libc-texinfo.sh: "Library General Public License" -> "Lesser General Public License". 2001-07-06 Andreas Jaeger <aj@suse.de> * All files under GPL/LGPL version 2: Place under LGPL version 2.1.
* * sysdeps/mach/hurd/if_index.c: Redone to use new interfaces in the Hurd ↵Mark Kettenis2001-07-011-109/+131
| | | | | | | | | | | | | | | | | | | | pfinet server, using equivalent code from the Linux version in sysdeps/unix/sysv/linux/if_index.c. In detail: Include <unistd.h>, <error.h>, <sys/ioctl.h>, <hurd/ioctl.h> and <hurd/pfinet.h>. Don't include <sys/mman.h> and <hurd/fsys.h> anymore. (if_nametoindex): New implementation using SIOCGIFINDEX. (if_freenameindex): Straight copy of the Linux version. (if_nameindex): New implementation based on pfinet_siocgifconf and SIOCGIFINDEX. (if_indextoname): New implementation using SIOCGIFNAME. (map_interfaces): Function removed. From Marcus Brinkmann <marcus@gnu.org>. 2001-07-01 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/if_index.c: Redone to use new interfaces in the Hurd pfinet server, using equivalent code from the Linux version in sysdeps/unix/sysv/linux/if_index.c. In detail: Include <unistd.h>, <error.h>, <sys/ioctl.h>, <hurd/ioctl.h> and <hurd/pfinet.h>. Don't include <sys/mman.h> and <hurd/fsys.h> anymore. (if_nametoindex): New implementation using SIOCGIFINDEX. (if_freenameindex): Straight copy of the Linux version. (if_nameindex): New implementation based on pfinet_siocgifconf and SIOCGIFINDEX. (if_indextoname): New implementation using SIOCGIFNAME. (map_interfaces): Function removed. From Marcus Brinkmann <marcus@gnu.org>.
* * sysdeps/mach/hurd/read.c: Include <hurd/fd.h>. (__libc_read): Don't call ↵Mark Kettenis2001-06-272-4/+9
| | | | | | | | | | | __pread. Use _hurd_fd_read directly instead. * sysdeps/mach/hurd/write.c: Include <hurd/fd.h>. (__libc_write): Don't call __pwrite. Use _hurd_fd_write directly instead. * sysdeps/mach/hurd/read.c: Include <hurd/fd.h>. (__libc_read): Don't call __pread. Use _hurd_fd_read directly instead. * sysdeps/mach/hurd/write.c: Include <hurd/fd.h>. (__libc_write): Don't call __pwrite. Use _hurd_fd_write directly instead.
* * sysdeps/mach/hurd/Makefile ($(link-rpcuserlibs)): Add back -Wl,-soname ↵Mark Kettenis2001-06-271-0/+1
| | | | | | | | | option lost in 2001-06-16 change. 2001-06-28 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/Makefile ($(link-rpcuserlibs)): Add back -Wl,-soname option lost in 2001-06-16 change.
* * hurd/Makefile (user-interfaces): Add pfinet. * hurd/hurdioctl.c: Include ↵Mark Kettenis2001-06-261-5/+11
| | | | | | | | | | | | | | | | | | <hurd/pfinet.h>, <net/if.h> and <netinet/in.h>. (siocgifconf): New function. Register it with HURD_HANDLE_IOCTL as the handler for SIOCGIFCONF. * sysdeps/mach/hurd/bits/ioctls.h: Modify SIOCSIFFLAGS and SIOCGIFFLAGS to be of IOC type ifreq_short. Modify SIOCSIFMETRIC and SIOCGIFMETRIC to be of IOC type ifreq_int. Add new macro definitions for SIOCGIFMTU, SIOCSIFMTU, SIOCGIFINDEX and SIOCGIFNAME. From Marcus Brunkmann <marcus@gnu.org>. 2001-06-26 Mark Kettenis <kettenis@gnu.org> * hurd/Makefile (user-interfaces): Add pfinet. * hurd/hurdioctl.c: Include <hurd/pfinet.h>, <net/if.h> and <netinet/in.h>. (siocgifconf): New function. Register it with HURD_HANDLE_IOCTL as the handler for SIOCGIFCONF. * sysdeps/mach/hurd/bits/ioctls.h: Modify SIOCSIFFLAGS and SIOCGIFFLAGS to be of IOC type ifreq_short. Modify SIOCSIFMETRIC and SIOCGIFMETRIC to be of IOC type ifreq_int. Add new macro definitions for SIOCGIFMTU, SIOCSIFMTU, SIOCGIFINDEX and SIOCGIFNAME. From Marcus Brunkmann <marcus@gnu.org>.
* * sysdeps/unix/sysv/linux/i386/sigaction.c (restore, restore_rt):Roland McGrath2001-06-181-5/+3
| | | | | | | | | | | | | | | Declare these without `static', to avoid warning that we haven't defined them. * Makerules (build-module-helper-objlist): New variable, broken out of build-module. Insert --whole-archive/--no-whole-archive immediately each *_pic.a file in the link object list. (whole-archive): New variable, used by that. (build-module-objlist): New variable using build-module-helper-objlist. (build-module, build-module-helper): Use it. (build-shlib-objlist): New variable using build-module-helper-objlist. (build-shlib): Use that. * sysdeps/mach/hurd/Makefile ($(link-rpcuserlibs)): Likewise.
* * hurd/Makefile (routines): Add lookup-retry.Roland McGrath2001-06-171-215/+36
| | | | | | | | | | | * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Broken out ... * hurd/lookup-retry.c: ... into here, new file. * sysdeps/mach/hurd/dl-sysdep.c (open_file): Call that instead using of duplicate code here. * hurd/hurdexec.c (_hurd_exec): Be robust for DTABLESIZE==0. * posix/regex.c: Avoid an access violation if malloc fails.
* * sysdeps/mach/hurd/bits/fcntl.h [ __USE_POSIX199309 || __USE_UNIX98]:Roland McGrath2001-06-141-1/+8
| | | | (O_DSYNC, O_RSYNC): New macros, both defined to O_SYNC as Linux does.
* * sysdeps/mach/hurd/fork.c (LOSE): Put `goto lose' in dead codeRoland McGrath2001-06-146-5/+109
| | | | | | | | | | | | | | | | | | | | | | | | so the label is not considered unused. * sysdeps/mach/hurd/pwrite64.c: New file. * sysdeps/mach/hurd/pread64.c: New file. * sysdeps/mach/hurd/pread.c (__libc_pread): Define this name, with __pread as an alias. * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Define this name, with __pwrite as an alias. Implement POSIX "shared memory objects" as regular files residing in the /var/run/shm/ directory. This works on any system that supports _POSIX_MAPPED_FILES, to make it also support _POSIX_SHARED_MEMORY_OBJECTS. * sysdeps/posix/shm_open.c: New file. * sysdeps/posix/shm_unlink.c: New file. * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SHARED_MEMORY_OBJECTS): Define it. * rt/aio_notify.c (__aio_notify_only) [! _POSIX_REALTIME_SIGNALS]: Use raise instead of __aio_sigqueue.
* * sysdeps/mach/hurd/pread.c: Fail with EINVAL if OFFSET is negative.Roland McGrath2001-06-142-6/+12
| | | | | | | | | | * sysdeps/mach/hurd/pwrite.c: Likewise. * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): libc=0.3 [USE_IN_LIBIO && !GLIBC_OLDEST_ABI] (.*-.*-gnu-gnu.*): Use GLIBC_2.2.4 as default version set. (test_ftello): Check for EFBIG and ENOSPC, clean up error messages.
* 2001-06-06 Roland McGrath <roland@frob.com>Roland McGrath2001-06-071-3/+3
| | | | | * sysdeps/mach/hurd/getsockopt.c: Fix handling of returned buffer size. From Robert Bihlmeyer <robbe@orcus.priv.at>.
* * csu/Makefile ($(objpfx)g$(start-installed-name)): Turn this into aRoland McGrath2001-05-142-12/+7
| | | | | | | | | | | | | | | | | | | | | | | | static pattern rule also that also covers $(objpx)g$(static-start-installed-name). [$(start-installed-name) != $(static-start-installed-name)] (extra-objs, omit-deps, install-lib): Add $(static-start-installed-name) and g$(static-start-installed-name). * sysdeps/mach/hurd/i386/Makefile: Don't add crt0.o to those here; just setting static-start-installed-name is now sufficient. (extra-objs): Add static-start.o here. (CFLAGS-initfini.s): Remove obsolete variable. * sysdeps/mach/hurd/i386/Makeconfig: New file. Define static-start-installed-name here. * Makeconfig: Include existing $(full_config_sysdirs:=/Makeconfig). * Make-dist (+sysdep-tsrcs): Look for Makeconfig files. * Makerules ($(+sysdir_pfx)sysd-Makefile): Remove this target and associated hair. Instead, just use $(wildcard ...) in the include. * configure.in (critic_missing, aux_missing): Collect in these vars the names of the missing programs, and include them in the error msgs. * configure: Regenerated.
* 2001-05-11 Roland McGrath <roland@frob.com>Roland McGrath2001-05-111-6/+7
| | | | | | * sysdeps/mach/hurd/Makefile ($(link-rpcuserlibs)): Don't use $(build-module) here, since we don't need the full magilla. Just use $(build-module-helper) and append our special options.
* * sysdeps/mach/hurd/bits/environments.h: Add comment from ↵Mark Kettenis2001-05-051-3/+24
| | | | | | | | | sysdeps/generic/bits/environments.h. Define _POSIX_V6_* values. 2001-05-05 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/bits/environments.h: Add comment from sysdeps/generic/bits/environments.h. Define _POSIX_V6_* values.
* send returns ssize_t.Andreas Jaeger2001-04-244-8/+8
|
* * sysdeps/mach/hurd/mlock.c: New file.Roland McGrath2001-04-193-1/+96
| | | | | | | | | | | | | | | * sysdeps/mach/hurd/munlock.c: New file. * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK_RANGE): Define it. * misc/Makefile (routines): Add mlock munlock mlockall munlockall. * sysdeps/generic/mlock.c: New file. * sysdeps/generic/munlock.c: New file. * sysdeps/generic/mlockall.c: New file. * sysdeps/generic/munlockall.c: New file. * sysdeps/generic/bits/mman.h (MCL_CURRENT, MCL_FUTURE): New macros. * sysdeps/unix/sysv/linux/syscalls.list (mlock, munlock, mlockall, munlockall): Change caller field to - from EXTRA. Don't use __ names; not used (and not declared in include/sys/mman.h).
* * hurd/privports.c (__get_privileged_ports): Renamed with __.Roland McGrath2001-04-193-18/+15
| | | | | | | | | Use __ names for calls we make. (get_privileged_ports): Add alias. * hurd/hurd.h: Declare it with the __ name. * sysdeps/mach/hurd/reboot.c (reboot): Use __get_privileged_ports. * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise. * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.