summaryrefslogtreecommitdiff
path: root/hurd/hurd/fd.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-07 14:57:38 +0000
committerRoland McGrath <roland@gnu.org>1996-05-07 14:57:38 +0000
commit93a470c71a236c6fbf4f2a207eb3961754187e80 (patch)
treec6801bf6e8f7652cd06f81e8ff278243b5592a0d /hurd/hurd/fd.h
parent4ddc1f9dd6c09e8924204f9ecf70c95157e555ec (diff)
Tue May 7 10:51:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos. * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo. * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>. * sysdeps/stub/sched_sets.c: Likewise. * sysdeps/stub/sched_setp.c: Likewise. * sysdeps/stub/sched_rr_gi.c: Likewise. * sysdeps/stub/sched_gets.c: Likewise. * hurd/hurdsig.c: Use struct hurd_signal_detail. * hurd/hurd/fd.h (_hurd_fd_error): Likewise. * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
Diffstat (limited to 'hurd/hurd/fd.h')
-rw-r--r--hurd/hurd/fd.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/hurd/hurd/fd.h b/hurd/hurd/fd.h
index 4747c785a5..b6402ea075 100644
--- a/hurd/hurd/fd.h
+++ b/hurd/hurd/fd.h
@@ -1,5 +1,5 @@
/* File descriptors.
-Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright (C) 1993, 1994, 1995, 1996 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
@@ -153,14 +153,18 @@ _hurd_fd_error_signal (error_t err)
/* Handle an error from an RPC on a file descriptor's port. You should
always use this function to handle errors from RPCs made on file
- descriptor ports. Some errors are translated into signals. */
+ descriptor ports. Some errors are translated into signals. */
_EXTERN_INLINE error_t
_hurd_fd_error (int fd, error_t err)
{
int signo = _hurd_fd_error_signal (err);
if (signo)
- _hurd_raise_signal (NULL, signo, fd, err);
+ {
+ const struct hurd_signal_detail detail
+ = { code: fd, error: err, exc: 0 };
+ _hurd_raise_signal (NULL, signo, &detail);
+ }
return err;
}