diff options
author | Justus Winter <justus@gnupg.org> | 2017-09-01 11:40:52 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-09-12 10:41:08 +0200 |
commit | e9849c9bf993eae14f900a95819186e09cfd98fe (patch) | |
tree | 83169c88a84ce439a343754c64007337ddb2c440 /pflocal | |
parent | 796f8789f80568861b747265998f31fa83091915 (diff) | |
download | hurd-e9849c9bf993eae14f900a95819186e09cfd98fe.tar.gz hurd-e9849c9bf993eae14f900a95819186e09cfd98fe.tar.bz2 hurd-e9849c9bf993eae14f900a95819186e09cfd98fe.zip |
pflocal: Use default stub implementations.
* pflocal/Makefile (fsServer-CFLAGS): Make use of default
implementations.
(ioServer-CFLAGS): Likewise.
* pflocal/fs.c: Remove all stub functions.
* pflocal/io.c: Likewise.
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/Makefile | 2 | ||||
-rw-r--r-- | pflocal/fs.c | 267 | ||||
-rw-r--r-- | pflocal/io.c | 109 |
3 files changed, 2 insertions, 376 deletions
diff --git a/pflocal/Makefile b/pflocal/Makefile index 3a079753..0419c3ec 100644 --- a/pflocal/Makefile +++ b/pflocal/Makefile @@ -29,5 +29,7 @@ HURDLIBS = pipe trivfs iohelp fshelp ports ihash shouldbeinlibc LDLIBS = -lpthread MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h +fsServer-CFLAGS = "-DMIG_EOPNOTSUPP=EOPNOTSUPP" +ioServer-CFLAGS = "-DMIG_EOPNOTSUPP=EOPNOTSUPP" include ../Makeconf diff --git a/pflocal/fs.c b/pflocal/fs.c index d77f00b4..10ed9156 100644 --- a/pflocal/fs.c +++ b/pflocal/fs.c @@ -26,97 +26,6 @@ #include "fs_S.h" error_t -S_dir_notice_changes (struct sock_user *cred, - mach_port_t notify) -{ - return EOPNOTSUPP; -} - -error_t -S_dir_link (struct sock_user *dircred, - struct sock_user *filecred, - char *name, - int excl) -{ - return EOPNOTSUPP; -} - -error_t -S_dir_lookup (struct sock_user *dircred, - char *path, - int flags, - mode_t mode, - enum retry_type *retry, - char *retryname, - file_t *returned_port, - mach_msg_type_name_t *returned_port_poly) -{ - return EOPNOTSUPP; -} - -error_t -S_dir_mkdir (struct sock_user *dircred, - char *name, - mode_t mode) -{ - return EOPNOTSUPP; -} - -error_t -S_dir_mkfile (struct sock_user *cred, - int flags, - mode_t mode, - mach_port_t *newnode, - mach_msg_type_name_t *newnodetype) -{ - return EOPNOTSUPP; -} - -error_t -S_dir_readdir (struct sock_user *cred, - char **data, - size_t *datacnt, - boolean_t *data_dealloc, - int entry, - int nentries, - vm_size_t bufsiz, - int *amt) -{ - return EOPNOTSUPP; -} - -error_t -S_dir_rename (struct sock_user *fromcred, - char *fromname, - struct sock_user *tocred, - char *toname, - int excl) -{ - return EOPNOTSUPP; -} - -error_t -S_dir_rmdir (struct sock_user *dircred, - char *name) -{ - return EOPNOTSUPP; -} - -error_t -S_dir_unlink (struct sock_user *dircred, - char *name) -{ - return EOPNOTSUPP; -} - -error_t -S_file_chauthor (struct sock_user *user, - uid_t author) -{ - return EOPNOTSUPP; -} - -error_t S_file_check_access (struct sock_user *cred, int *type) { if (!cred) @@ -130,179 +39,3 @@ S_file_check_access (struct sock_user *cred, int *type) return 0; } - -error_t -S_file_chflags (struct sock_user *cred, int flags) -{ - return EOPNOTSUPP; -} - -error_t -S_file_notice_changes (struct sock_user *cred, mach_port_t notify) -{ - return EOPNOTSUPP; -} - -error_t -S_file_chmod (struct sock_user *cred, mode_t mode) -{ - return EOPNOTSUPP; -} - -error_t -S_file_chown (struct sock_user *cred, uid_t uid, gid_t gid) -{ - return EOPNOTSUPP; -} - -error_t -S_file_exec (struct sock_user *cred, - task_t task, - int flags, - char *argv, - size_t argvlen, - char *envp, - size_t envplen, - mach_port_t *fds, - size_t fdslen, - mach_port_t *portarray, - size_t portarraylen, - int *intarray, - size_t intarraylen, - mach_port_t *deallocnames, - size_t deallocnameslen, - mach_port_t *destroynames, - size_t destroynameslen) -{ - return EOPNOTSUPP; -} - -error_t -S_file_get_children (struct sock_user *cred, - char **children, - mach_msg_type_number_t *children_len) -{ - return EOPNOTSUPP; -} - -error_t -S_file_getcontrol (struct sock_user *cred, - mach_port_t *control, - mach_msg_type_name_t *controltype) -{ - return EOPNOTSUPP; -} - -error_t -S_file_getfh (struct sock_user *cred, char **fh, size_t *fh_len) -{ - return EOPNOTSUPP; -} - -error_t -S_file_get_fs_options (struct sock_user *cred, char **data, size_t *data_len) -{ - return EOPNOTSUPP; -} - -error_t -S_file_getlinknode (struct sock_user *cred, - file_t *port, - mach_msg_type_name_t *portpoly) -{ - return EOPNOTSUPP; -} - -error_t -S_file_get_source (struct sock_user *cred, char *source) -{ - return EOPNOTSUPP; -} - -error_t -S_file_get_storage_info (struct sock_user *cred, - mach_port_t **ports, - mach_msg_type_name_t *ports_type, - mach_msg_type_number_t *num_ports, - int **ints, mach_msg_type_number_t *num_ints, - off_t **offsets, - mach_msg_type_number_t *num_offsets, - char **data, mach_msg_type_number_t *data_len) -{ - return EOPNOTSUPP; -} - -error_t -S_file_get_translator (struct sock_user *cred, char **trans, size_t *translen) -{ - return EOPNOTSUPP; -} - -error_t -S_file_get_translator_cntl (struct sock_user *cred, - mach_port_t *ctl, - mach_msg_type_name_t *ctltype) -{ - return EOPNOTSUPP; -} - -error_t -S_file_lock (struct sock_user *cred, int flags) -{ - return EOPNOTSUPP; -} - -error_t -S_file_lock_stat (struct sock_user *cred, int *mystatus, int *otherstatus) -{ - return EOPNOTSUPP; -} - -error_t -S_file_reparent (struct sock_user *cred, mach_port_t parent, - mach_port_t *new, mach_msg_type_name_t *new_type) -{ - return EOPNOTSUPP; -} - -error_t -S_file_set_size (struct sock_user *cred, off_t size) -{ - return EOPNOTSUPP; -} - -error_t -S_file_set_translator (struct sock_user *cred, - int passive_flags, - int active_flags, - int killtrans_flags, - char *passive, - size_t passivelen, - fsys_t active) -{ - return EOPNOTSUPP; -} - -error_t -S_file_statfs (struct sock_user *file, fsys_statfsbuf_t *statbuf) -{ - return EOPNOTSUPP; -} - -error_t -S_file_sync (struct sock_user *cred, int wait, int omitmetadata) -{ - return EOPNOTSUPP; -} - -error_t -S_file_syncfs (struct sock_user *cred, int wait, int dochildren) -{ - return EOPNOTSUPP; -} - -error_t -S_file_utimes (struct sock_user *cred, time_value_t atime, time_value_t mtime) -{ - return EOPNOTSUPP; -} diff --git a/pflocal/io.c b/pflocal/io.c index 77e9df6e..2c23df4a 100644 --- a/pflocal/io.c +++ b/pflocal/io.c @@ -546,112 +546,3 @@ S_io_identity (struct sock_user *user, return err; } - - -/* Stubs for currently unsupported rpcs. */ - -error_t -S_io_revoke (struct sock_user *user) -{ - return EOPNOTSUPP; -} - -error_t -S_io_async(struct sock_user *user, - mach_port_t notify_port, - mach_port_t *async_id_port, - mach_msg_type_name_t *async_id_port_type) -{ - return EOPNOTSUPP; -} - -error_t -S_io_mod_owner(struct sock_user *user, pid_t owner) -{ - return EOPNOTSUPP; -} - -error_t -S_io_get_owner(struct sock_user *user, pid_t *owner) -{ - return EOPNOTSUPP; -} - -error_t -S_io_get_icky_async_id (struct sock_user *user, - mach_port_t *icky_async_id_port, - mach_msg_type_name_t *icky_async_id_port_type) -{ - return EOPNOTSUPP; -} - -error_t -S_io_map (struct sock_user *user, - mach_port_t *memobj_rd, mach_msg_type_name_t *memobj_rd_type, - mach_port_t *memobj_wt, mach_msg_type_name_t *memobj_wt_type) -{ - return EOPNOTSUPP; -} - -error_t -S_io_map_cntl (struct sock_user *user, - mach_port_t *mem, mach_msg_type_name_t *mem_type) -{ - return EOPNOTSUPP; -} - -error_t -S_io_get_conch (struct sock_user *user) -{ - return EOPNOTSUPP; -} - -error_t -S_io_release_conch (struct sock_user *user) -{ - return EOPNOTSUPP; -} - -error_t -S_io_eofnotify (struct sock_user *user) -{ - return EOPNOTSUPP; -} - -error_t -S_io_prenotify (struct sock_user *user, vm_offset_t start, vm_offset_t end) -{ - return EOPNOTSUPP; -} - -error_t -S_io_postnotify (struct sock_user *user, vm_offset_t start, vm_offset_t end) -{ - return EOPNOTSUPP; -} - -error_t -S_io_readsleep (struct sock_user *user) -{ - return EOPNOTSUPP; -} - -error_t -S_io_readnotify (struct sock_user *user) -{ - return EOPNOTSUPP; -} - - -error_t -S_io_sigio (struct sock_user *user) -{ - return EOPNOTSUPP; -} - -error_t -S_io_server_version (struct sock_user *user, - char *name, int *maj, int *min, int *edit) -{ - return EOPNOTSUPP; -} |