summaryrefslogtreecommitdiff
path: root/libtrivfs/fsys-getroot.c
AgeCommit message (Collapse)Author
2014-04-15Include the MIG-generated server header filesJustus Winter
This enables the compiler to check that the server function declarations match MIGs expectations. Fix a few oddities along the way. * console-client/trans.c: Include MIG-generated server header file(s). * console/console.c: Likewise. Also, fix declarations. * console/mutations.h (TIOCTL_IMPORTS): Just use libnetfs/priv.h. * console/priv.h: Delete now unused file. * ext2fs/storeinfo.c: Include MIG-generated server header file(s). * fatfs/inode.c: Likewise. * fatfs/main.c: Likewise. Also, fix declaration. * isofs/inode.c: Likewise. * libdiskfs/boot-start.c: Likewise. * libdiskfs/file-chg.c: Include the correct MIG-generated server header file. * libdiskfs/file-chmod.c: Include MIG-generated server header file(s). * libdiskfs/file-get-fs-opts.c: Likewise. * libdiskfs/init-startup.c: Likewise. * libnetfs/file-get-children.c: Likewise. * libnetfs/file-getcontrol.c: Include the correct MIG-generated server header file. * libnetfs/file-set-translator.c: Include MIG-generated server header file(s). * libnetfs/fsstubs.c: Likewise. * libtrivfs/file-access.c: Likewise. * libtrivfs/file-chauthor.c: Likewise. * libtrivfs/file-chflags.c: Likewise. * libtrivfs/file-chg.c: Likewise. * libtrivfs/file-chmod.c: Likewise. * libtrivfs/file-chown.c: Likewise. * libtrivfs/file-exec.c: Likewise. * libtrivfs/file-get-children.c: Likewise. * libtrivfs/file-get-fs-options.c: Likewise. * libtrivfs/file-get-source.c: Likewise. * libtrivfs/file-get-storage-info.c: Likewise. * libtrivfs/file-get-trans.c: Likewise. * libtrivfs/file-get-transcntl.c: Likewise. * libtrivfs/file-getcontrol.c: Likewise. * libtrivfs/file-getfh.c: Likewise. * libtrivfs/file-getlinknode.c: Likewise. * libtrivfs/file-lock.c: Likewise. * libtrivfs/file-reparent.c: Likewise. * libtrivfs/file-set-size.c: Likewise. * libtrivfs/file-set-trans.c: Likewise. * libtrivfs/file-statfs.c: Likewise. * libtrivfs/file-sync.c: Likewise. * libtrivfs/file-syncfs.c: Likewise. * libtrivfs/file-utimes.c: Likewise. * libtrivfs/fsys-forward.c: Likewise. * libtrivfs/fsys-get-options.c: Likewise. * libtrivfs/fsys-getroot.c: Likewise. * libtrivfs/fsys-goaway.c: Likewise. * libtrivfs/fsys-set-options.c: Likewise. * libtrivfs/fsys-stubs.c: Likewise. * libtrivfs/fsys-syncfs.c: Likewise. * libtrivfs/io-async-icky.c: Likewise. * libtrivfs/io-async.c: Likewise. * libtrivfs/io-duplicate.c: Likewise. * libtrivfs/io-identity.c: Likewise. * libtrivfs/io-map.c: Likewise. * libtrivfs/io-modes-get.c: Likewise. * libtrivfs/io-modes-off.c: Likewise. * libtrivfs/io-modes-on.c: Likewise. * libtrivfs/io-modes-set.c: Likewise. * libtrivfs/io-owner-get.c: Likewise. * libtrivfs/io-owner-mod.c: Likewise. * libtrivfs/io-pathconf.c: Likewise. * libtrivfs/io-read.c: Likewise. * libtrivfs/io-readable.c: Likewise. * libtrivfs/io-reauthenticate.c: Likewise. * libtrivfs/io-restrict-auth.c: Likewise. * libtrivfs/io-revoke.c: Likewise. * libtrivfs/io-seek.c: Likewise. * libtrivfs/io-select.c: Likewise. * libtrivfs/io-stat.c: Likewise. * libtrivfs/io-stubs.c: Likewise. * libtrivfs/io-version.c: Likewise. * libtrivfs/io-write.c: Likewise. * pfinet/tunnel.c: Likewise. * storeio/io.c: Likewise. * storeio/storeio.c: Likewise. * term/users.c: Likewise. * tmpfs/node.c: Likewise. * trans/fakeroot.c: Likewise. Also, include all server headers that provide the X_server_routine functions... (netfs_demuxer): ... that were previously declared here. * trans/fifo.c: Include MIG-generated server header file(s). * trans/firmlink.c: Likewise. * trans/hello-mt.c: Likewise. * trans/hello.c: Likewise. * trans/magic.c: Likewise. * trans/mtab.c: Likewise. * trans/new-fifo.c: Likewise. * trans/null.c: Likewise. * trans/proxy-defpager.c: Likewise. * trans/streamio.c: Likewise. * libdiskfs/fsmutations.h: Qualify the import with the libraries path. Without this change, out-of-tree builds would no longer work. * libnetfs/mutations.h: Likewise. * libtrivfs/mig-mutate.h: Likewise.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir-chg.c: Don't include stub header, trivfs.h now gets those decls. * dir-link.c: Likewise. * dir-lookup.c: Likewise. * dir-mkdir.c: Likewise. * dir-mkfile.c: Likewise. * dir-readdir.c: Likewise. * dir-rename.c: Likewise. * dir-rmdir.c: Likewise. * dir-unlink.c: Likewise. * file-access.c: Likewise. * file-chauthor.c: Likewise. * file-chflags.c: Likewise. * file-chg.c: Likewise. * file-chmod.c: Likewise. * file-chown.c: Likewise. * file-get-fs-options.c: Likewise. * file-get-storage-info.c: Likewise. * file-get-trans.c: Likewise. * file-get-transcntl.c: Likewise. * file-getcontrol.c: Likewise. * file-getfh.c: Likewise. * file-getlinknode.c: Likewise. * file-lock.c: Likewise. * file-reparent.c: Likewise. * file-set-size.c: Likewise. * file-set-trans.c: Likewise. * file-statfs.c: Likewise. * file-sync.c: Likewise. * file-syncfs.c: Likewise. * file-utimes.c: Likewise. * fsys-forward.c: Likewise. * fsys-get-options.c: Likewise. * fsys-getroot.c: Likewise. * fsys-goaway.c: Likewise. * fsys-set-options.c: Likewise. * fsys-stubs.c: Likewise. * fsys-syncfs.c: Likewise. * io-async-icky.c: Likewise. * io-async.c: Likewise. * io-duplicate.c: Likewise. * io-identity.c: Likewise. * io-map.c: Likewise. * io-modes-get.c: Likewise. * io-modes-off.c: Likewise. * io-modes-on.c: Likewise. * io-owner-get.c: Likewise. * io-owner-mod.c: Likewise. * io-pathconf.c: Likewise. * io-read.c: Likewise. * io-readable.c: Likewise. * io-reauthenticate.c: Likewise. * io-restrict-auth.c: Likewise. * io-revoke.c: Likewise. * io-seek.c: Likewise. * io-select.c: Likewise. * io-stat.c: Likewise. * io-stubs.c: Likewise. * io-write.c: Likewise.
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* dir-readdir.c (trivfs_S_dir_readdir): u_int -> size_t * file-get-trans.c (trivfs_S_file_get_translator): Likewise. * file-set-trans.c (trivfs_S_file_set_translator): Likewise. * file-getfh.c (trivfs_S_file_getfh): Likewise. * fsys-getroot.c (trivfs_S_fsys_getroot): Likewise. * io-restrict-auth.c (trivfs_S_io_restrict_auth): Likewise * fsys-stubs.c (trivfs_S_fsys_getfile): Likewise. (trivfs_S_fsys_startup): Fix argument type.
2001-06-162001-04-01 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* dir-lookup.c (trivfs_S_dir_lookup): Use iohelp_dup_iouser as per the new semantics. * fsys-getroot.c (trivfs_S_fsys_getroot): Use iohelp_create_complex_iouser. * io-reauthenticate.c (trivfs_S_io_reauthenticate): Use iohelp_reauth as per the new semantics. * io-restrict-auth.c (trivfs_S_io_restrict_auth): Use iohelp_create_complex_iouser. Check return values. * trivfs_protid_dup (trivfs_protid_dup): Use iohelp_dup_iouser as per the new semantics.
1999-11-081999-11-08 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* fsys-getroot.c (trivfs_S_fsys_getroot): Fix typo.
1999-11-081999-11-08 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* fsys-getroot.c (trivfs_S_fsys_getroot): Return EROFS or EACCES for a disallowed open attempt, instead of EOPNOTSUPP. EOPNOTSUPP results in the confusing result of ENOTDIR being delivered to the user.
1999-10-111999-10-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* trivfs.h (trivfs_open_hook): New variable. * fsys-getroot.c (trivfs_S_fsys_getroot): Use it.
1999-02-191999-02-06 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell
* trivfs.h (trivfs_check_access_hook): New variable. * fsys-getroot.c (trivfs_S_fsys_getroot): Use trivfs_check_acces_hook. * dir-lookup.c (trivfs_S_dir_lookup): Likewise. * file-access.c (trivfs_S_file_check_access): Likewise.
1997-02-14(trivfs_S_fsys_getroot):Miles Bader
Use trivfs_getroot_hook.
1996-11-13Thu Nov 7 01:01:05 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* io-restrict-auth.c (trivfs_S_io_restrict_auth): Rewrite to use idvecs. Wed Nov 6 23:40:50 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * trivfs.h (struct trivfs_protid): Delete members `uids', `gids', `nuids', and `ngids'. Replace with `user'. (trivfs_check_open_hook): Delete args `uids', `nuids', `gids', `ngids'. Replace with new arg `user'. All callers changed. (trivfs_open): Likewise. * open.c (trivfs_open): Change to match new declaration. * trivfs.h (struct trivfs_protid): Delete members `uids', `gids', * io-reauthenticate.c (trivfs_S_io_reauthenticate): Use new iohelp_reauth call.
1995-08-12(trivfs_S_fsys_getroot): Allow trivfs_protid_create_hook andMiles Bader
trivfs_peropen_create_hook to return an error code, and abort if either does. (trivfs_S_fsys_getroot): Guts (except for protection check) moved into trivfs_open.
1995-07-21(trivfs_S_fsys_getroot): Free initial reference created byMichael I. Bushnell
ports_allocate_port.
1995-06-27(trivfs_S_fsys_getroot): Use new form of ports_allocate_port call.Michael I. Bushnell
1995-03-30(trivfs_S_fsys_getroot): Strip out old hack for blocking.Michael I. Bushnell
(struct pending_open): Delete type. (trivfs_complete_open): Delete function.
1994-10-25entered into RCSMichael I. Bushnell
1994-08-30Formerly fsys-getroot.c.~16~Michael I. Bushnell
1994-07-22Formerly fsys-getroot.c.~15~Michael I. Bushnell
1994-07-19Formerly fsys-getroot.c.~14~Michael I. Bushnell
1994-07-05Formerly fsys-getroot.c.~13~Michael I. Bushnell
1994-06-30Formerly fsys-getroot.c.~12~Michael I. Bushnell
1994-06-27Formerly fsys-getroot.c.~11~Michael I. Bushnell
1994-06-23Formerly fsys-getroot.c.~10~Michael I. Bushnell
1994-06-22Formerly fsys-getroot.c.~9~Michael I. Bushnell
1994-06-20Formerly fsys-getroot.c.~8~Michael I. Bushnell
1994-06-16Formerly fsys-getroot.c.~7~Michael I. Bushnell
1994-06-15Formerly fsys-getroot.c.~6~Michael I. Bushnell
1994-05-25Formerly fsys-getroot.c.~5~Michael I. Bushnell
1994-05-24Formerly fsys-getroot.c.~4~Michael I. Bushnell
1994-05-10Formerly fsys-getroot.c.~3~Michael I. Bushnell
1994-02-18Formerly fsys-getroot.c.~2~Michael I. Bushnell
1994-02-18Initial revisionMichael I. Bushnell