diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-06-24 23:46:55 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-06-24 23:46:55 +0000 |
commit | 71a1935eec0e651a74ddfc51d2e291d6376e04f0 (patch) | |
tree | 0d91eba8831c50397be9cebbbd378e5830fcf7e5 /console/priv.h | |
parent | 52be5cefb4852e6c2921fd1b19c4d0b4952860ea (diff) |
2002-06-25 Marcus Brinkmann <marcus@gnu.org>
* Makefile (LCLHDRS): Add priv.h and mutations.h.
(MIGSTUBS): Add tioctlServer.o
* console.c: Include <hurd/ioctl-types.h>.
(new_node): Bump up st_size for display node.
(S_tioctl_tiocflush, S_tioctl_tiocgwinsz, S_tioctl_tiocstart,
S_tioctl_tiocstop, S_tioctl_tiocoutq, S_tioctl_tiocspgrp,
S_tioctl_tiocgpgrp): New functions.
(S_tioctl_tiocmodg, S_tioctl_tiocmods, S_tioctl_tiocexcl,
S_tioctl_tiocnxcl, S_tioctl_tiocgeta, S_tioctl_tiocseta,
S_tioctl_tiocsetaw, S_tioctl_tiocsetaf, S_tioctl_tiocgetd,
S_tioctl_tiocsetd, S_tioctl_tiocdrain, S_tioctl_tiocmget,
S_tioctl_tiocmset, S_tioctl_tiocsig, S_tioctl_tiocext,
S_tioctl_tiocswinsz, S_tioctl_tiocremote, S_tioctl_tiocmbic,
S_tioctl_tiocmbis, S_tioctl_tiocpkt, S_tioctl_tiocsti,
S_tioctl_tioccdtr, S_tioctl_tiocsdtr, S_tioctl_tioccbrk,
S_tioctl_tiocsbrk): New stubs.
(console_demuxer): New function.
(main): Don't call netfs_server_loop, but call
ports_manage_port_operations_multithread, so we can use our own
demuxer.
* mutations.h: Use intran and outtran for netfs.
* priv.h: Likewise.
* console.h (cons_change_t): Add bits for bell_audible and
bell_visible.
(struct cons_display): Add member BELL.
* display.c (struct changes): Add new members bell_audible and
bell_visible. Add bit flag macro names for those.
(display_flush_filechange): Start with first index in buffer.
Signal bell events.
(display_record_filechange): Set DISPLAY_CHANGE_MATRIX bit in the
disjoint case after flushing the update.
(display_output_one): Recognize '\a' as audible bell and '\Eg' as
visible bell.
(display_output_some): Handle bell updates.
Diffstat (limited to 'console/priv.h')
-rw-r--r-- | console/priv.h | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/console/priv.h b/console/priv.h index da5f5ef9..2fb72bf9 100644 --- a/console/priv.h +++ b/console/priv.h @@ -1,6 +1,36 @@ -#ifndef CONSOLE_PRIV_H -#define CONSOLE_PRIV_H +/* + Copyright (C) 1995,96,2001 Free Software Foundation, Inc. + Written by Michael I. Bushnell, p/BSG. -typedef struct trivfs_protid *trivfs_protid_t; + This file is part of the GNU Hurd. -#endif + 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 this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ + +#include <hurd/hurd_types.h> + +#include <hurd/netfs.h> + +static inline struct protid * __attribute__ ((unused)) +begin_using_protid_port (file_t port) +{ + return ports_lookup_port (netfs_port_bucket, port, netfs_protid_class); +} + +static inline void __attribute__ ((unused)) +end_using_protid_port (struct protid *cred) +{ + if (cred) + ports_port_deref (cred); +} |