diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-18 21:21:57 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-18 21:21:57 +0000 |
commit | 852c90c1f85832213b9aa59725e06c12e9c7e5f9 (patch) | |
tree | c740543fb64fa931e6cd446e8abbe97f97130704 /libtrivfs | |
parent | 8c4ecb5b464c30fcd38568c0c8899f60d3119f9a (diff) |
Initial revision
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/demuxer.c | 41 | ||||
-rw-r--r-- | libtrivfs/nosenders.c | 2 | ||||
-rw-r--r-- | libtrivfs/notify-stubs.c | 57 |
3 files changed, 98 insertions, 2 deletions
diff --git a/libtrivfs/demuxer.c b/libtrivfs/demuxer.c new file mode 100644 index 00000000..676f78a6 --- /dev/null +++ b/libtrivfs/demuxer.c @@ -0,0 +1,41 @@ +/* + Copyright (C) 1993, 1994 Free Software Foundation + +This file is part of the GNU Hurd. + +The GNU Hurd is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +The GNU Hurd is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with the GNU Hurd; see the file COPYING. If not, write to +the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* Written by Michael I. Bushnell. */ + +#include "priv.h" + +int +ports_demuxer (mach_msg_header_t *inp, + mach_msg_header_t *outp) +{ + int fs_server (mach_msg_header_t *, mach_msg_header_t *); + int io_server (mach_msg_header_t *, mach_msg_header_t *); + int fsys_server (mach_msg_header_t *, mach_msg_header_t *); + int notify_server (mach_msg_header_t *, mach_msg_header_t *); + int interrupt_server (mach_msg_header_t *, mach_msg_header_t *); + + return (io_server (inp, outp) + || fs_server (inp, outp) + || notify_server (inp, outp) + || fsys_server (inp, outp) + || interrupt_server (inp, outp)); +} + + diff --git a/libtrivfs/nosenders.c b/libtrivfs/nosenders.c index 9fb18ba8..8e393567 100644 --- a/libtrivfs/nosenders.c +++ b/libtrivfs/nosenders.c @@ -31,8 +31,6 @@ trivfs_do_mach_notify_no_senders (mach_port_t notify, struct port_info *pt; pt = ports_get_port (notify); - if (!pt) - return EOPNOTSUPP; ports_no_senders (pt, mscount); diff --git a/libtrivfs/notify-stubs.c b/libtrivfs/notify-stubs.c new file mode 100644 index 00000000..1567d1b7 --- /dev/null +++ b/libtrivfs/notify-stubs.c @@ -0,0 +1,57 @@ +/* + Copyright (C) 1994 Free Software Foundation + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "priv.h" + +error_t +diskfs_do_seqnos_mach_notify_port_deleted (mach_port_t notify, + mach_port_seqno_t seqno, + mach_port_t name) +{ + return 0; +} + +error_t +diskfs_do_seqnos_mach_notify_msg_accepted (mach_port_t notify, + mach_port_seqno_t seqno, + mach_port_t name) +{ + return 0; +} + +error_t +diskfs_do_seqnos_mach_notify_port_destroyed (mach_port_t notify, + mach_port_seqno_t seqno, + mach_port_t name) +{ + return 0; +} + +error_t +diskfs_do_seqnos_mach_notify_send_once (mach_port_t notify, + mach_port_seqno_t seqno) +{ + return 0; +} + +error_t +diskfs_do_seqnos_mach_notify_dead_name (mach_port_t notify, + mach_port_seqno_t seqno, + mach_port_t name) +{ + return 0; +} |