aboutsummaryrefslogtreecommitdiff
path: root/proc/main.c
Commit message (Collapse)AuthorAgeFilesLines
* 2000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-151-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-03-17 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-171-3/+1
| | | | * main.c (main): Use ports_get_send_right.
* 2000-03-12 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-121-1/+2
| | | | | | | | | * mgt.c (allocate_proc): Don't do mach_port_request_notification here. (proc_death_notify): New function, do it here instead. (complete_proc): Call proc_death_notify. * main.c (main): Call proc_death_notify on STARTUP_PROC after we have set its task port. * proc.h: Declare proc_death_notify.
* 1999-06-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-191-4/+0
| | | | * main.c (main): Remove commented-out wire_task_self call, #include.
* 1999-06-05 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-051-0/+2
| | | | | * mgt.c (create_startup_proc): Don't call add_proc_to_hash here. * main.c (main): Do it here instead, after we have the task port.
* 1999-06-05 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-051-6/+6
| | | | | | | | | | | * mgt.c (allocate_proc, complete_proc): New functions, broken out of new_proc. Remove magic handling of PIDs 0 and 1. (new_proc): Now just call those two. Made static. (create_startup_proc): New function, also broken out of old new_proc. Do special setup for PID 1 (init) proc structure here. * proc.h: Update decls. * main.c (main): Use create_startup_proc for startup_proc, and allocate_proc + complete_proc (with PID 0) for self_proc.
* 1999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-301-0/+1
| | | | * main.c: Include <device/device.h>.
* 1999-05-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-231-0/+13
| | | | * main.c (main): Set up console on stderr.
* 1999-05-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-021-0/+1
| | | | * main.c: Include <error.h>.
* 1999-05-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-021-8/+11
| | | | | * main.c (main): Use assert_perror. Give diagnostic for lack of bootstrap port.
* Wed Aug 20 14:06:46 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-08-201-1/+1
| | | | | * main.c (main): New args for ports_manage_port_operations_multithread.
* (main):Miles Bader1997-06-301-5/+8
| | | | | | | | Arg parsing added. HOLD variable removed. (argp_program_version): New variable. Include <argp.h> and <version.h>.
* *** empty log message ***Michael I. Bushnell1996-07-181-1/+1
|
* Many changes to support multi-threading. See ChangeLog.Michael I. Bushnell1996-04-251-30/+32
|
* (message_demuxer): Remove call to interrupt_server.Michael I. Bushnell1996-03-201-2/+2
| | | | (global_lock): Provide definition.
* (message_demuxer): Don't call proc_excrepl_server.Roland McGrath1996-02-091-9/+7
|
* (main): Missing decls.Michael I. Bushnell1995-04-041-0/+1
|
* (main): Wire text and data segment on startup to avoid failure modeMichael I. Bushnell1995-04-041-1/+14
| | | | during non-standalone pseudo-crash.
* entered into RCSMichael I. Bushnell1994-08-181-3/+3
|
* Formerly main.c.~12~Michael I. Bushnell1994-08-151-0/+4
|
* Formerly main.c.~10~Michael I. Bushnell1994-06-281-1/+1
|
* Formerly main.c.~9~Michael I. Bushnell1994-06-271-0/+15
|
* Formerly main.c.~8~Roland McGrath1994-05-121-2/+6
|
* Formerly main.c.~7~Michael I. Bushnell1994-05-091-0/+2
|
* Formerly main.c.~6~Michael I. Bushnell1994-04-071-0/+1
|
* Formerly main.c.~5~Michael I. Bushnell1994-04-051-2/+8
|
* Formerly main.c.~4~Michael I. Bushnell1994-03-291-2/+0
|
* Formerly main.c.~3~Michael I. Bushnell1994-03-231-1/+0
|
* Formerly main.c.~2~Michael I. Bushnell1994-03-221-1/+7
|
* Initial revisionMichael I. Bushnell1994-03-221-0/+70