aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/priv.h
Commit message (Collapse)AuthorAgeFilesLines
* 2002-04-30 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-05-011-0/+7
| | | | | | | | | | | | | | | | | | * priv.h: Add OPT_NO_INHERIT_DIR_GROUP and OPT_INHERIT_DIR_GROUP. (_diskfs_no_inherit_dir_group): New declaration. * node-create.c (_diskfs_no_inherit_dir_group): New variable. (diskfs_create_node): Implement SysV group behaviour. * opts-common.c (diskfs_common_options): Add --no-inherit-dir-group (--nogrpdir, --sysvgroups) and --inherit-dir-group (--grpdir, --bsdgroups). * opts-append-std.c (diskfs_append_std_options): Add --no-inherit-dir-group if set. * opts-std-startup.c (parse_startup_opt): Add toggle for _diskfs_no_inherit_dir_group. * opts-std-runtime.c (struct parse_hook): Add noinheritdirgroup. (set_opts): Handle H->noinheritdirgroup. (parse_opt): Initialize H->noinheritdirgroup. Handle OPT_NO_INHERIT_DIR_GROUP and OPT_INHERIT_DIR_GROUP.
* 2001-04-22 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-05-061-20/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile (OTHERSRCS): Add extern-inline.c. * diskfs.h (DISKFS_EXTERN_INLINE): New macro. (diskfs_spawn_first_thread): Update prototype to include the additional parameter, a demuxer. (diskfs_begin_using_protid_port): Moved and renamed function begin_using_protid_port from priv.h. (diskfs_end_using_protid_port): Moved and renamed function end_using_protid_port from priv.h. * extern-inline.c: New file. * fsmutations.h (FILE_INTRAN): Use new function name. (FILE_DESTRUCTOR): Likewise. (IO_INTRAN): Likewise. (IO_DESTRUCTOR): Likewise. * init-first.c: Include <hurd/ports.h>. (master_thread_function): Unnamed parameter is now the demuxer. Use that rather than diskfs_demuxer directly. (diskfs_spawn_first_thread): New parameter DEMUXER. * init-main.c (diskfs_init_main): Pass diskfs_demuxer to diskfs_spawn_first_thread to conform to new semantics. * priv.h (begin_using_protid_port): Moved to diskfs.h. (end_using_protid_port): Likewise.
* 2000-05-14 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>Marcus Brinkmann2000-05-141-0/+5
| | | | | | | | | | | * priv.h (DEFAULT_SYNC_INTERVAL): New macro. (DEFAULT_SYNC_INTERVAL_STRING): Likewise. (STRINGIFY): Likewise. (STRINGIFY_1): Likewise. * opts-common.h (diskfs_common_options): Use DEFAULT_SYNC_INTERVAL_STRING instead hardcoded value. * sync-default.h: Include "priv.h". Use DEFAULT_SYNC_INTERVAL instead hardcoded value.
* 1999-11-09 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-091-1/+1
| | | | | * priv.h (_diskfs_chroot_directory): Remove const from type. * init-startup.c (_diskfs_chroot_directory): Likewise.
* 1999-10-06 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-10-061-1/+1
| | | | | | | | | | | | | * lookup.c (diskfs_lookup): NAME is no longer const. Update documentation Strip leading and trailing slashes from NAME before using it. * diskfs.h (diskfs_lookup): NAME is no longer const. Update documentation. 1999-10-05 Thomas Bushnell, BSG <tb@mit.edu> * priv.h (CHANGE_NODE_FIELD): Use diskfs_check_readonly instead of directly reading diskfs_readonly.
* 1999-09-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-09-191-1/+9
| | | | | | | | | | | | | | | | | | | | | | | * node-times.c (diskfs_set_node_times): If _diskfs_noatime is set and neither NP->dn_set_mtime nor NP->dn_set_ctime is set, clear NP->dn_set_atime. Short-circuit return if none of dn_set_?time set. * opts-common.c (diskfs_common_options): Include "priv.h". Add aliases --ro/--rw for -r/-w. Add alias --nosuid for --no-suid, --noexec for --no-exec. Move --suid-ok, --exec-ok here from ... * opts-std-runtime.c (std_runtime_options): ... here. (struct parse_hook): New member `noatime'. (set_opts): Use H->noatime to set _diskfs_noatime. (parse_opt): Grok -A and OPT_ATIME to set/clear H->noatime. (OPT_ATIME): New macro. (OPT_SUID_OK, OPT_EXEC_OK): Moved to ... * priv.h: ... here. (diskfs_common_options): Add const to decl. * opts-std-startup.c (parse_startup_opt): Grok OPT_SUID_OK, OPT_EXEC_OK, -A, and OPT_ATIME. * init-init.c (_diskfs_noatime): New variable. (_diskfs_nosuid, _diskfs_noexec): Use uninitialized defns. * opts-append-std.c (diskfs_append_std_options): Add --no-atime if _diskfs_noatime is set.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-1/+2
| | | | * priv.h: Add #include <sys/mman.h> for munmap decl.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-301-0/+4
| | | | | | | | | | | | | | | | Use a struct hurd_port for the cached exec server port, so it is properly reference-counted and locked. * boot-start.c (diskfs_exec): Variable removed. (diskfs_start_bootstrap): Make it a local here. Install that port in _diskfs_exec_portcell. (diskfs_S_fsys_init): Use _diskfs_exec_portcell instead of diskfs_exec. * init-init.c (_diskfs_exec_portcell): New variable. (diskfs_init_diskfs): Initialize it. * priv.h: Declare it. * diskfs.h (diskfs_exec, diskfs_exec_ctl): Remove decls. * file-exec.c (diskfs_S_file_exec): Use _diskfs_exec_portcell instead of diskfs_exec.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-0/+3
| | | | | | * boot-start.c (_diskfs_boot_privports): Renamed from diskfs_*. * priv.h: Declare it. * console.c (diskfs_console_stdio): Change caller.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | * opts-std-startup.c (startup_options): Move -C above "Boot options:", give it a docstring. Docstrings for --bootflags, --boot-command. (_diskfs_boot_command): New variable. (startup_options, parse_startup_opt): New option --boot-command, consumes remaining args to set _diskfs_boot_command. * priv.h: Declare _diskfs_boot_command. * boot-start.c (diskfs_start_bootstrap): If diskfs_exec_server_task is null, assume we are running as the boot command and have a root with /servers/exec. If _diskfs_boot_command is set, start that command in place of init. If can't lookup initname, print error msg and loop to prompt. Put a newline before "Init name" prompt. After starting exec server, try to set active trans on /servers/exec. (diskfs_boot_getpriv): New function: if _hurd_host_priv is null, use fsys_getpriv on our bootstrap port. (parent_task): New static variable, set there with fsys_getpriv call. (diskfs_S_fsys_init): If diskfs_exec_server_task is null, don't do anything with it; instead register parent_task as our child and send an fsys_init to our parent on our bootstrap port. * console.c (diskfs_console_stdio): Call diskfs_boot_privports before get_privileged_ports if diskfs_boot_flags is set.
* 1998-04-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-10-241-1/+4
| | | | | | | | | | | | | | Add support for a "virtual root directory" specified at startup. * priv.h (_diskfs_chroot_directory): Declare new variable. * opts-std-startup.c (startup_options, parse_startup_opt): New string-valued option -C/--directory/--virtual-root/--chroot sets _diskfs_chroot_directory. * init-startup.c (_diskfs_chroot_directory): New variable. (diskfs_startup_diskfs): If that's set, look up the name and warp us to that as a virtual root directory. * fsys-getroot.c (diskfs_S_fsys_getroot): Initialize new peropen's shadow_root_parent to null, and shadow_root to either null or, if _diskfs_chroot_directory is set, to diskfs_root_node.
* (fs_control_port):Miles Bader1997-09-191-3/+1
| | | | | | Declaration removed. (_diskfs_nosuid, _diskfs_noexec): Renamed from nosuid & noexec.
* Tue Sep 16 14:37:51 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-09-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | * priv.h (nosuid, noexec): New variables. * init-init.c (nosuid, noexec): New variables, initialized to zero. * file-exec.c (diskfs_S_file_exec): If noexec is on, then prohibit all execution with EACCES. If nosuid is on, then prohibit setuid or setgid execution by silently omitting the uid substitution. * opts-std-startup.c (parse_startup_opt): Implement --no-suid and --no-exec. * opts-common.c (diskfs_common_options): Add --no-suid and --no-exec. * opts-std-runtime.c (struct parse_hook): Add nosuid and noexec. (parse_opt) [cases 'S', 'E', OPT_SUID_OK, OPT_EXEC_OK] Understand --no-suid, --no-exec, --suid-ok, and --exec-ok. (parse_opt) [case ARGP_KEY_INIT]: Initialize H->nosuid and H->noexec. (OPT_SUID_OK, OPT_EXEC_OK): New macros. (std_runtime_options): Add --suid-ok and --exec-ok. (set_opts): Set nosuid and noexec from H->nosuid and H->noexec. * opts-common.c (diskfs_common_options): Rename --nosync to --no-sync; leave --nosync as an alias.
* (struct diskfs_trans_callback_cookie2):Miles Bader1997-02-141-8/+0
| | | | Type removed.
* (struct diskfs_trans_callback_cookie2):Miles Bader1997-02-061-1/+9
| | | | New type.
* (OPENONLY_STATE_MODES): Add O_EXLOCK & O_SHLOCK.Miles Bader1996-10-121-1/+2
|
* change name to _diskfs_diskdirty.Michael I. Bushnell1996-06-241-2/+2
|
* (_diskfs_diskclean): New variable.Michael I. Bushnell1996-06-241-0/+3
|
* ioserver.h -> iohelp.h.Michael I. Bushnell1996-05-091-1/+1
|
* (_diskfs_init_completed): New declaration.Michael I. Bushnell1996-04-301-0/+4
|
* Fix args in _diskfs_rdwr_internal prototype.Roland McGrath1996-01-041-3/+3
|
* (end_using_protid_port): Don't calls ports_port_deref if CRED is null.Roland McGrath1995-12-281-3/+4
|
* (_diskfs_translator_callback1, _diskfs_translator_callback2): Declare.Miles Bader1995-11-021-2/+3
|
* (diskfs_common_options): New declaration.Miles Bader1995-10-191-0/+2
|
* (_diskfs_translator_callback): Must be extern to force inclusion ofMichael I. Bushnell1995-06-221-1/+1
| | | | trans-callback.c.
* Really do last change.Michael I. Bushnell1995-06-141-2/+1
|
* (_diskfs_translator_callback): Declare with typedef.Michael I. Bushnell1995-06-141-1/+1
|
* (_diskfs_translator_callback): New function.Michael I. Bushnell1995-06-141-0/+4
|
* (begin_using_protid_port): Use ports_lookup_port.Michael I. Bushnell1995-06-091-13/+2
| | | | | (end_using_protid_port): Use ports_port_deref. (enum porttype): Delete.
* (_diskfs_idcheckdirmod): `diskfs_hasuid' -> _diskfs_idhasuid.Michael I. Bushnell1995-03-171-1/+1
| | | | (CHANGE_NODE_FIELD): Remove trailing space on backslashed line.
* (CHANGE_NODE_FIELD): If DISKFS_SYNCHRONOUS, then sync node afterMichael I. Bushnell1995-03-081-1/+3
| | | | possibly changing it.
* entered into RCSMichael I. Bushnell1994-11-021-1/+0
|
* Formerly priv.h.~13~Michael I. Bushnell1994-10-071-3/+0
|
* Formerly priv.h.~12~Michael I. Bushnell1994-07-131-3/+20
|
* Formerly priv.h.~11~Michael I. Bushnell1994-02-101-40/+0
|
* Formerly priv.h.~10~Michael I. Bushnell1994-02-081-8/+7
|
* Formerly priv.h.~9~Michael I. Bushnell1994-02-051-3/+11
|
* Formerly priv.h.~8~Michael I. Bushnell1994-02-031-0/+26
|
* Formerly priv.h.~7~Michael I. Bushnell1994-02-031-0/+4
|
* Formerly priv.h.~6~Michael I. Bushnell1994-02-031-1/+3
|
* Formerly priv.h.~5~Michael I. Bushnell1994-02-021-0/+42
|
* Formerly priv.h.~4~Michael I. Bushnell1994-01-311-0/+24
|
* Formerly priv.h.~3~Michael I. Bushnell1994-01-271-1/+18
|
* Formerly priv.h.~2~Michael I. Bushnell1994-01-271-104/+1
|
* Initial revisionMichael I. Bushnell1994-01-271-0/+122