diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-12-14 23:10:53 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-12-14 23:10:53 +0000 |
commit | 3d4e7cf7f67da1d63e8fad8162fed4321e2ea0ce (patch) | |
tree | 38bbc5ada6e05022a1545d8bdc5b384058d3816a /libnetfs | |
parent | 9cfc7061df9d24ea992bc2e0a4b37672072487f8 (diff) |
Initial revision
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/priv.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libnetfs/priv.h b/libnetfs/priv.h new file mode 100644 index 00000000..f9123ed2 --- /dev/null +++ b/libnetfs/priv.h @@ -0,0 +1,31 @@ +/* + Copyright (C) 1995 Free Software Foundation, Inc. + Written by Michael I. Bushnell, p/BSG. + + 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 this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ + +extern inline struct protid * +begin_using_protid_port (file_t port) +{ + return ports_lookup_port (netfs_port_bucket, port, netfs_protid_class); +} + +extern inline void +end_using_protid_port (struct protid *cred) +{ + ports_port_deref (cred); +} |