diff options
author | Roland McGrath <roland@gnu.org> | 1995-12-09 10:00:22 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-12-09 10:00:22 +0000 |
commit | 787e4db95ce0de5195bc066b4682f840bec7baaf (patch) | |
tree | 07076e97588c63a8d94b74c83603e5ddc071592e /hurd | |
parent | Thu Dec 7 02:27:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> (diff) | |
download | glibc-787e4db95ce0de5195bc066b4682f840bec7baaf.tar.gz glibc-787e4db95ce0de5195bc066b4682f840bec7baaf.tar.bz2 glibc-787e4db95ce0de5195bc066b4682f840bec7baaf.zip |
Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>cvs/libc-951210cvs/libc-951209
* locale/error.c, locale/error.h: Files removed.
* locale/Makefile (distribute): Remove error.h.
(lib-modules): Remove error.
* hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
magic, return ENXIO if no ctty.
* sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
mapping if vm_map fails for that reason.
* posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
GLOB_TILDE, GLOB_NOMAGIC.
(glob): Use stat instead of lstat to determine directoriness.
* posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
New flag bits.
(__GLOB_FLAGS): Include them.
(glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
gl_stat.
* elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
* sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
define all the bit values.
(MAP_*, MCL_*): Macros removed.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurdlookup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hurd/hurdlookup.c b/hurd/hurdlookup.c index ee97a13fca..05ed03833c 100644 --- a/hurd/hurdlookup.c +++ b/hurd/hurdlookup.c @@ -250,6 +250,8 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port) error_t err; error_t ctty_open (file_t port) { + if (port == MACH_PORT_NULL) + return ENXIO; /* No controlling terminal. */ return __termctty_open_terminal (port, flags, result); @@ -278,7 +280,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port) bad_magic: return EGRATUITOUS; } - break; + break; default: return EGRATUITOUS; @@ -308,7 +310,7 @@ __hurd_file_name_split (error_t (*use_init_port) error_t addref (file_t crdir) { *dir = crdir; - return __mach_port_mod_refs (__mach_task_self (), + return __mach_port_mod_refs (__mach_task_self (), crdir, MACH_PORT_RIGHT_SEND, +1); } |