aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* .Roland McGrath2001-05-311-0/+13
|
* 2001-05-30 Roland McGrath <roland@frob.com>Roland McGrath2001-05-311-19/+12
| | | | | | | * users.c (trivfs_S_io_select): Mask out SELECT_READ and/or SELECT_WRITE if those accesses are not allowed by the peropen. Don't keep old bits in AVAILABLE across waits, return only what is true at the moment we return.
* .Roland McGrath2001-05-261-0/+6
|
* 2001-05-26 Roland McGrath <roland@frob.com>Roland McGrath2001-05-261-3/+2
| | | | | | * users.c (trivfs_S_io_select): Don't diagnose an error for *TYPE containing irrelevant bits (i.e. SELECT_URG). It's always ok to ask even when the answer is always no.
* 2001-05-13 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-05-132-1/+5
| | | | * file-exec.c: Initialize GID with st_gid rather than st_uid.
* 2001-05-12 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-05-122-1/+9
| | | | | * host.c (initialize_version_info): Clear last byte of KV to make sure that the string is null-terminated.
* libstore/Marcus Brinkmann2001-05-065-5/+21
| | | | | | | | | | | | | | | | | | | | | 2001-04-26 Marcus Brinkmann <marcus@ulysses.dhis.net> * set.c: Use explicit comparison to MACH_PORT_NULL. storeio/ 2001-05-06 Marcus Brinkmann <marcus@gnu.org> * dev.c (dev_open): Do not create/open the store with STORE_INACTIVE, as this doesn't work correctly. Inactivate the store afterwards instead. 2001-02-18 Marcus Brinkmann <marcus@gnu.org> * dev.h (struct dev): New member nperopens. * storeio.c (open_hook): Hold device lock and check if this is the TODO: add item about the storeio hack
* .Roland McGrath2001-05-062-0/+29
|
* 2001-04-23 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-05-061-1/+1
| | | | | * tmpfs.c (main): Pass diskfs_demuxer to diskfs_spawn_first_thread to conform to new libdiskfs semantics.
* 2001-04-22 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-05-067-34/+61
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* .Roland McGrath2001-05-061-0/+5
|
* 2001-05-05 Roland McGrath <roland@frob.com>Roland McGrath2001-05-061-1/+2
| | | | | * node.c (diskfs_truncate): Set st_size before rounding it up, and do set it when there is a memory object.
* .Roland McGrath2001-05-022-0/+8
|
* 2001-05-01 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-05-021-2/+2
| | | | * hurd_types.defs (startup_t): Fix typo.
* 2001-05-01 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-05-021-0/+1
| | | | * tmpfs.c (main): Set diskfs_root_node->dn_stat.st_nlink to 2.
* 2001-04-30 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-04-292-1/+10
| | | | | * rr.c (rrip_work): In the MATCH_NAME case, free NMBUF if it is non-zero before returning.
* 2001-04-29 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-04-292-78/+84
| | | | | | | | * lookup.c (diskfs_get_directs): If an RE entry is encountered, just decrement I again. Rearrange the code to check for a new logical sector in any case. Also make sure to always release RR before returning. This fixes some memory leaks and Debian bug report #63373.
* 2001-04-29 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-04-292-0/+35
| | | | * changelog: Update to reflect Debian upgrades.
* 2001-02-18 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-04-194-8/+39
| | | | | | | | | | * dev.h (struct dev): New member nperopens. * storeio.c (open_hook): Hold device lock and check if this is the first open. If yes, activate the store. (close_hook): Hold global_lock and check if this was the last open. If yes, inactivate the store. * dev.c (dev_open): Open the store with STORE_INACTIVE (in store_parsed_open as well as in store_create).
* .Roland McGrath2001-04-151-0/+8
|
* 2001-04-14 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-151-2/+10
| | | | | * node-create.c (diskfs_create_node): If we fail, set *NEWNODE to NULL; at least diskfs_S_dir_lookup depends on this behavior.
* 2001-04-14 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-151-11/+9
| | | | | * init-startup.c (diskfs_startup_diskfs): Use ERR, not errno, so we can actually read this variable in a debugger.
* .Roland McGrath2001-04-151-0/+17
|
* 2001-04-15 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-152-37/+71
| | | | | | | | | | | | | | | | | * dir.c (diskfs_get_directs): Total rewrite. (diskfs_lookup_hard): Likewise. (diskfs_enter_hard): Count node size in the size of the dirent so diskfs_get_directs does not have to guess; this is only a few bytes different. Check the amount of space correctly, i.e. we cannot compare bytes and pages. * node.c: (diskfs_free_node): We already hold diskfs_node_refcnt_lock; do not try to lock it again. (diskfs_cached_lookup): Use diskfs_nref, that is why we have it. Link the nodes correctly. (diskfs_set_translator): Add or remove S_IPTRANS from np->dn_stat.st_mode as appropriate. (diskfs_truncate): Set the new np->dn_stat.st_size. (diskfs_grow): Move the assert up.
* .Roland McGrath2001-04-151-0/+67
|
* 2000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-151-3/+2
| | | | | | | | | | | | | | | | * proc.h (struct ids): Drop gids and ngids, we never use them. Turn uids into a zero length array. * mgt.c (make_ids): Conform to new semantics. (ids_free): Removed. Rendered obsolete by ids_rele. (ids_rele): New function. Drop a reference to the given ids. (ids_ref): Add a reference to the given ids. (S_proc_reauthenticate): Use ids_rele and new make_ids semantics. (S_proc_child): Use ids_rele and ids_ref. (create_startup_proc): Conform to new make_ids semantics. (complete_proc): Use ids_ref. (process_has_exited): Use ids_rele.
* 2000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-152-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * host.c (S_proc_setexecdata): Check for memory allocation errors. Use memcpy, not bcopy. (S_proc_getexecdata): Likewise. (S_proc_execdata_notify): Check return of malloc. (S_proc_register_version): Likewise. (initialize_version_info): Add asserts. * info.c (S_proc_pid2task): Do not bother searching for the pid if we do not have a valid caller. (S_proc_pid2proc): Likewise. Use memcpy, not bcopy. (S_proc_getprocinfo): Doc fixes. Use MAP_FAILED not -1. Use memcpy, not bcopy. (S_proc_getloginpids): Check return value of malloc. Use realloc correctly. (S_proc_setlogin): Check return value of malloc. * main.c (main): Assert allocate_proc. * mgt.c (make_ids): Check return value of malloc and fail accordingly. (S_proc_reauthenticate): Check return value of make_ids and fail accordingly. (S_proc_child): Call task_find after we know that we were passed a valid child. (S_proc_reassign): Likewise. (S_proc_handle_exceptions): Use memcpy, not bcopy. (allocate_proc): Check return value of ports_create_port and fail accordingly. (create_startup_proc): Add asserts. (complete_proc): Do not assume the length of "<none>". * msg.c (S_proc_getmsgport): Call pid_find_allow_zombie after we know we were passed a valid caller. * pgrp.c: Include assert.h. (new_pgrp): Check return value of malloc and fail accordingly. (new_session): Likewise. (boot_setsid): Assert sess. (S_proc_getsessionpids): Use MAP_FAILED not -1. (S_proc_getsessionppids): Likewise. (S_proc_getpgrppids): Likewise. * wait.c (S_proc_wait): Use memset, not bzero.
* 2000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-154-76/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * host.c: Doc fix: ``Implement foo as described in <hurd/proc.defs>'' => ``Implement foo as described in <hurd/process.defs>'' * info.c: Likewise. * mgt.c: Likewise. * pgrp.c: Likewise. * wait.c: Likewise. * host.c (S_proc_setexecdata): Check for memory allocation errors. Use memcpy, not bcopy. (S_proc_getexecdata): Likewise. (S_proc_execdata_notify): Check return of malloc. (S_proc_register_version): Likewise. (initialize_version_info): Add asserts. * info.c (S_proc_pid2task): Do not bother searching for the pid if we do not have a valid caller. (S_proc_pid2proc): Likewise. Use memcpy, not bcopy. (S_proc_getprocinfo): Doc fixes. Use MAP_FAILED not -1. Use memcpy, not bcopy. (S_proc_getloginpids): Check return value of malloc. Use realloc correctly. (S_proc_setlogin): Check return value of malloc. * main.c (main): Assert allocate_proc. * mgt.c (make_ids): Check return value of malloc and fail accordingly. (S_proc_reauthenticate): Check return value of make_ids and fail accordingly. (S_proc_child): Call task_find after we know that we were passed a valid child. (S_proc_reassign): Likewise. (S_proc_handle_exceptions): Use memcpy, not bcopy. (allocate_proc): Check return value of ports_create_port and fail accordingly. (create_startup_proc): Add asserts. (complete_proc): Do not assume the length of "<none>". * msg.c (S_proc_getmsgport): Call pid_find_allow_zombie after we know we were passed a valid caller. * pgrp.c: Include assert.h. (new_pgrp): Check return value of malloc and fail accordingly. (new_session): Likewise. (boot_setsid): Assert sess. (S_proc_getsessionpids): Use MAP_FAILED not -1. (S_proc_getsessionppids): Likewise. (S_proc_getpgrppids): Likewise. * wait.c (S_proc_wait): Use memset, not bzero.
* 2000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-151-61/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * proc.h (struct ids): Drop gids and ngids, we never use them. Turn uids into a zero length array. * mgt.c (make_ids): Conform to new semantics. (ids_free): Removed. Rendered obsolete by ids_rele. (ids_rele): New function. Drop a reference to the given ids. (ids_ref): Add a reference to the given ids. (S_proc_reauthenticate): Use ids_rele and new make_ids semantics. (S_proc_child): Use ids_rele and ids_ref. (create_startup_proc): Conform to new make_ids semantics. (complete_proc): Use ids_ref. (process_has_exited): Use ids_rele. * host.c: Doc fix: ``Implement foo as described in <hurd/proc.defs>'' => ``Implement foo as described in <hurd/process.defs>'' * info.c: Likewise. * mgt.c: Likewise. * pgrp.c: Likewise. * wait.c: Likewise. * mgt.c (S_proc_reauthenticate): Calculate the value of NGEN_UIDS, NAUX_UIDS, NGEN_GIDS AND NAUX_GIDS; do not use a constant. (create_startup_proc): Add asserts. * host.c (S_proc_setexecdata): Check for memory allocation errors. Use memcpy, not bcopy. (S_proc_getexecdata): Likewise. (S_proc_execdata_notify): Check return of malloc. (S_proc_register_version): Likewise. (initialize_version_info): Add asserts. * info.c (S_proc_pid2task): Do not bother searching for the pid if we do not have a valid caller. (S_proc_pid2proc): Likewise. Use memcpy, not bcopy. (S_proc_getprocinfo): Doc fixes. Use MAP_FAILED not -1. Use memcpy, not bcopy. (S_proc_getloginpids): Check return value of malloc. Use realloc correctly. (S_proc_setlogin): Check return value of malloc. * main.c (main): Assert allocate_proc. * mgt.c (make_ids): Check return value of malloc and fail accordingly. (S_proc_reauthenticate): Check return value of make_ids and fail accordingly. (S_proc_child): Call task_find after we know that we were passed a valid child. (S_proc_reassign): Likewise. (S_proc_handle_exceptions): Use memcpy, not bcopy. (allocate_proc): Check return value of ports_create_port and fail accordingly. (create_startup_proc): Add asserts. (complete_proc): Do not assume the length of "<none>". * msg.c (S_proc_getmsgport): Call pid_find_allow_zombie after we know we were passed a valid caller. * pgrp.c: Include assert.h. (new_pgrp): Check return value of malloc and fail accordingly. (new_session): Likewise. (boot_setsid): Assert sess. (S_proc_getsessionpids): Use MAP_FAILED not -1. (S_proc_getsessionppids): Likewise. (S_proc_getpgrppids): Likewise. * wait.c (S_proc_wait): Use memset, not bzero.
* .Roland McGrath2001-04-121-0/+7
|
* 2001-04-10 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-121-4/+4
| | | | | | | * tmpfs.c (diskfs_shortcurt_chrdev): Rename to diskfs_shortcut_chrdev. (diskfs_shortcurt_blkdev): Rename to diskfs_shortcut_blkdev. (diskfs_shortcurt_fifo): Rename to diskfs_shortcut_fifo. (diskfs_shortcurt_ifsock): Rename to diskfs_shortcut_ifsock.
* .Roland McGrath2001-04-121-0/+7
|
* 2001-04-08 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-123-9/+9
| | | | | | | * io-write.c (diskfs_S_io_write): Make local variable OFF an off_t and not an int. * io-read.c (diskfs_S_io_read): Likewise. * io-stat.c (diskfs_S_io_stat): Use memcpy, not bcopy.
* .Roland McGrath2001-04-012-4/+14
|
* 2001-04-01 Roland McGrath <roland@frob.com>Roland McGrath2001-04-012-2/+1
| | | | | * Makefile (FSYSSRCS): Add fsys-goaway.c. * fsys-goaway.c: Don't include "priv.h" here.
* 2001-04-01 Roland McGrath <roland@frob.com>Roland McGrath2001-04-011-29/+0
| | | | * io-interrupt.c: Obsolete file removed.
* 2001-04-01 Roland McGrath <roland@frob.com>Roland McGrath2001-04-011-1/+1
| | | | | | * io-interrupt.c: Obsolete file removed. * Makefile (IOSRCS): Remove it from the list. Reported by Neal H Walfield <neal@cs.uml.edu>.
* .Roland McGrath2001-04-012-0/+22
|
* 2001-03-31 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-012-18/+149
| | | | | * fsys-goaway.c (netfs_S_fsys_goaway): Actually implement it. * shutdown.c (netfs_attempt_shutdown): Likewise.
* 2001-03-31 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-015-13/+23
| | | | | | | | | | | | | | | * Makefile (fsys-MIGSFLAGS): Add -DREPLY_PORTS, which we want for netfs_S_fsys_goaway. * fsys-get-options.c (netfs_S_fsys_getoptions): Add reply port arguments to declaration. * fsys-getroot.c (netfs_S_fsys_getroot): Likewise. * fsys-goaway.c (netfs_S_fsys_goaway): Likewise. * fsys-set-options.c (netfs_S_fsys_set_options): Likewise. * fsys-syncfs.c (netfs_S_fsys_syncfs): Likewise. * fsysstubs.c (netfs_S_fsys_getfile): Likewise. (netfs_S_fsys_getpriv): Likewise. (netfs_S_fsys_forward): Likewise. (netfs_S_fsys_startup): Likewise.
* 2001-03-31 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-011-2/+2
| | | | | | | | | | | | | | | | * Makefile (fsys-MIGSFLAGS): Add -DREPLY_PORTS, which we want for netfs_S_fsys_goaway. * fsys-get-options.c (netfs_S_fsys_getoptions): Add reply port arguments to declaration. * fsys-getroot.c (netfs_S_fsys_getroot): Likewise. * fsys-goaway.c (netfs_S_fsys_goaway): Likewise. * fsys-set-options.c (netfs_S_fsys_set_options): Likewise. * fsys-syncfs.c (netfs_S_fsys_syncfs): Likewise. * fsysstubs.c (netfs_S_fsys_getfile): Likewise. (netfs_S_fsys_getpriv): Likewise. (netfs_S_fsys_forward): Likewise. (netfs_S_fsys_startup): Likewise. * Makefile (MIGSTUBS): Add fsys_replyUser.o.
* 2001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-011-1/+1
| | | | * protid-rele.c: Doc typo fix.
* .Roland McGrath2001-04-015-0/+50
|
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-04-011-3/+3
| | | | * pids.h: Fix obsolescent #endif syntax.
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-04-014-30/+30
| | | | | | | * assert.h: Fix obsolescent #endif syntax. * default_pager.c: Likewise. * queue.h: Likewise. * load.c: Likewise.
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-04-011-3/+3
| | | | * sock.c: Include "connq.h" for connq_destroy decl.
* 2001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-011-2/+2
| | | | | * io-identity.c (diskfs_S_io_identity): Use INUM; that is what we bothered getting the lock for.
* 2001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-011-2/+4
| | | | | | | * shutdown.c: Move initialization of diskfs_fsys_lock from here ... * init-init.c: ... to here with the rest of the initialization code. * init-init.c: Do not initialize global variables to zero.
* 2001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-012-2/+10
| | | | | | * dir-chg.c (diskfs_S_dir_notice_changes): Check what malloc returns. * peropen-make.c (diskfs_make_peropen): Likewise.
* 2001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-012-4/+4
| | | | | | * protid-rele: Doc fix. * node-nput.c: Likewise. * io-prenotify.c: Likewise.