From d0cc8075120e7d90236e382f7bf0ff293d1d3d54 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 18 Mar 1996 19:40:11 +0000 Subject: (netfs_protid_class, netfs_control_class, netfs_port_bucket, netfs_root_node, netfs_auth_server_port): Make this extern. --- libnetfs/netfs.h | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'libnetfs/netfs.h') diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h index e51a6ac9..1fee37e2 100644 --- a/libnetfs/netfs.h +++ b/libnetfs/netfs.h @@ -103,10 +103,30 @@ error_t netfs_attempt_chauthor (struct netcred *cred, struct node *np, /* The user must define this function. This should attempt a chmod call for the user specified by CRED on node NODE, to change the - mode to MODE. */ + mode to MODE. Unlike the normal Unix and Hurd meaning of chmod, + this function is also used to attempt to change files into other + types. If such a transition is attempted which is impossible, then + return EOPNOTSUPP. + */ error_t netfs_attempt_chmod (struct netcred *cred, struct node *np, mode_t mode); +/* The user must define this function. Attempt to turn NODE (user CRED) + into a symlink with target NAME. */ +error_t netfs_attempt_mksymlink (struct netcred *cred, struct node *np, + char *name); + +/* The user must define this function. Attempt to turn NODE (user + CRED) into a device. TYPE is either S_IFBLK or S_IFCHR. */ +error_t netfs_attempt_mkdev (struct netcred *cred, struct node *np, + mode_t type, dev_t indexes); + +/* The user must define this function. Attempt to set the passive + translator record for FILE to ARGZ (of length ARGZLEN) for user + CRED. */ +error_t netfs_set_translator (struct netcred *cred, struct node *np, + char *argz, size_t argzlen); + /* The user must define this function. This should attempt a chflags call for the user specified by CRED on node NODE, to change the flags to FLAGS. */ @@ -294,12 +314,12 @@ error_t netfs_get_options (char **argz, unsigned *argz_len); completely. */ extern const struct argp *netfs_startup_argp; -struct port_class *netfs_protid_class; -struct port_class *netfs_control_class; -struct port_bucket *netfs_port_bucket; -struct node *netfs_root_node; +extern struct port_class *netfs_protid_class; +extern struct port_class *netfs_control_class; +extern struct port_bucket *netfs_port_bucket; +extern struct node *netfs_root_node; -auth_t netfs_auth_server_port; +extern auth_t netfs_auth_server_port; extern inline void netfs_nref (struct node *np) -- cgit v1.2.3