summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2001-04-152001-04-14 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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-152001-04-14 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* init-startup.c (diskfs_startup_diskfs): Use ERR, not errno, so we can actually read this variable in a debugger.
2001-04-15.Roland McGrath
2001-04-152001-04-15 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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.
2001-04-15.Roland McGrath
2001-04-152000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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.
2001-04-152000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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.
2001-04-152000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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.
2001-04-152000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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.
2001-04-12.Roland McGrath
2001-04-122001-04-10 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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.
2001-04-12.Roland McGrath
2001-04-122001-04-08 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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.
2001-04-01.Roland McGrath
2001-04-012001-04-01 Roland McGrath <roland@frob.com>Roland McGrath
* Makefile (FSYSSRCS): Add fsys-goaway.c. * fsys-goaway.c: Don't include "priv.h" here.
2001-04-012001-04-01 Roland McGrath <roland@frob.com>Roland McGrath
* io-interrupt.c: Obsolete file removed.
2001-04-012001-04-01 Roland McGrath <roland@frob.com>Roland McGrath
* io-interrupt.c: Obsolete file removed. * Makefile (IOSRCS): Remove it from the list. Reported by Neal H Walfield <neal@cs.uml.edu>.
2001-04-01.Roland McGrath
2001-04-012001-03-31 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* fsys-goaway.c (netfs_S_fsys_goaway): Actually implement it. * shutdown.c (netfs_attempt_shutdown): Likewise.
2001-04-012001-03-31 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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-04-012001-03-31 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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-04-012001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* protid-rele.c: Doc typo fix.
2001-04-01.Roland McGrath
2001-04-012001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* pids.h: Fix obsolescent #endif syntax.
2001-04-012001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* assert.h: Fix obsolescent #endif syntax. * default_pager.c: Likewise. * queue.h: Likewise. * load.c: Likewise.
2001-04-012001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* sock.c: Include "connq.h" for connq_destroy decl.
2001-04-012001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* io-identity.c (diskfs_S_io_identity): Use INUM; that is what we bothered getting the lock for.
2001-04-012001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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-04-012001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* dir-chg.c (diskfs_S_dir_notice_changes): Check what malloc returns. * peropen-make.c (diskfs_make_peropen): Likewise.
2001-04-012001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* protid-rele: Doc fix. * node-nput.c: Likewise. * io-prenotify.c: Likewise.
2001-04-012001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* shutdown.c: Move initialization of diskfs_fsys_lock from here ... * init-init.c: ... to here with the rest of the initialization code.
2001-04-012001-03-28 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* ports-noports.c, ports-clean.c, ports-soft.c, ports-idle.c, ports-consts.c: Dead files finally removed from cvs.
2001-04-012001-03-03 Roland McGrath <roland@frob.com>Roland McGrath
* hyper.c (zeroblock, modified_global_blocks): Remove superfluous zero initializers. (allocate_mod_map): Likewise for static here. (get_hypermetadata): Don't munmap old ZEROBLOCK, just keep it. Allocate ZEROBLOCK with PROT_READ.
2001-03-31.Roland McGrath
2001-03-312001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* cthreads.h: Fix obsolescent #endif syntax. * cthread_internals.h: Likewise. * cancel-cond.c: Likewise. * stack.c: Likewise. * cthreads.c: Likewise. * cprocs.c: Likewise. * call.c: Likewise. * i386/thread.c: Likewise. * cthread_data.c: Likewise.
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* host.c: Fix comments. (ps_host_basic_info): Make INITIALIZED static; otherwise we never cache BUF. Do not initalize static variables to 0. (ps_host_sched_info): Likewise. * ps.h: Doc fix.
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* create-bucket.c (ports_create_bucket): Include errno.h and stdlib.h. Do not include assert.h. Turn assertions into errors that set errno and return NULL. * create-class.c (ports_create_class): Likewise.
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* claim-right.c (ports_claim_right): Include errno.h and assert.h. Add assertions. Clean up the logic.
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* init.c: Do not initialize global variables to 0. * interrupt-notified-rpcs.c: Likewise.
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* create-internal.c (_ports_create_internal): On error, do not deallocate a send right, but a receive right.
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* port-deref.c (ports_port_deref): Simplify logic.
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* reallocate-port.c (ports_reallocate_port): Assert return from mach_port_move_member. * transfer-right.c (ports_transfer_right): Likewise.
2001-03-31.Roland McGrath
2001-03-312001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* cthreads.h: Fix obsolescent #endif syntax. * cthread_internals.h: Likewise. * cancel-cond.c: Likewise. * stack.c: Likewise. * cthreads.c: Likewise. * cprocs.c: Likewise. * call.c: Likewise. * i386/thread.c: Likewise.
2001-03-31.Roland McGrath
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* idvec-auth.c (idvec_merge_auth): Really allow parameters to be NULL.
2001-03-312001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* ugids.h: Fix obsolescent #endif syntax.
2001-03-312001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* cthreads.h: Fix obsolescent #endif syntax. * cthread_internals.h: Likewise. * cancel-cond.c: Likewise. * stack.c: Likewise. * cthreads.c: Likewise. * cprocs.c: Likewise. * call.c: Likewise.
2001-03-282001-03-28 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* dir-lookup.c (diskfs_S_dir_lookup): New variable USER. Store new iouser in that variable and free it after creating the protid for DIRPORT. * trans-callback.c (_diskfs_translator_callback2_fn): Likewise. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Likewise. * io-reauthenticate.c (diskfs_S_io_reauthenticate): Likewise.
2001-03-26.Roland McGrath