diff options
author | Roland McGrath <roland@gnu.org> | 2001-04-15 08:10:44 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-04-15 08:10:44 +0000 |
commit | 40fd49dcdf0072e4229473f2350f0b8a1ea04a04 (patch) | |
tree | 8ce3be811dca502ba4421099420ddc1548e42d88 /proc/wait.c | |
parent | 984d6149fd9d474bec3f80a71bbcd90582139b19 (diff) | |
download | hurd-40fd49dcdf0072e4229473f2350f0b8a1ea04a04.tar.gz hurd-40fd49dcdf0072e4229473f2350f0b8a1ea04a04.tar.bz2 hurd-40fd49dcdf0072e4229473f2350f0b8a1ea04a04.zip |
2000-04-03 Neal H Walfield <neal@cs.uml.edu>
* 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.
Diffstat (limited to 'proc/wait.c')
-rw-r--r-- | proc/wait.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/proc/wait.c b/proc/wait.c index 60ec58ff..06aa594b 100644 --- a/proc/wait.c +++ b/proc/wait.c @@ -1,5 +1,5 @@ /* Implementation of wait - Copyright (C) 1994, 1995, 1996 Free Software Foundation + Copyright (C) 1994, 1995, 1996, 2001 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -113,7 +113,7 @@ S_proc_wait (struct proc *p, *sigcode = child->p_sigcode; if (child->p_dead) complete_exit (child); - bzero (ru, sizeof (struct rusage)); + memset (ru, 0, sizeof (struct rusage)); *pid_status = pid; return 0; } @@ -136,7 +136,7 @@ S_proc_wait (struct proc *p, *pid_status = child->p_pid; if (child->p_dead) complete_exit (child); - bzero (ru, sizeof (struct rusage)); + memset (ru, 0, sizeof (struct rusage)); return 0; } } @@ -157,7 +157,7 @@ S_proc_wait (struct proc *p, goto start_over; } -/* Implement proc_mark_stop as described in <hurd/proc.defs>. */ +/* Implement proc_mark_stop as described in <hurd/process.defs>. */ kern_return_t S_proc_mark_stop (struct proc *p, int signo, @@ -183,7 +183,7 @@ S_proc_mark_stop (struct proc *p, return 0; } -/* Implement proc_mark_exit as described in <hurd/proc.defs>. */ +/* Implement proc_mark_exit as described in <hurd/process.defs>. */ kern_return_t S_proc_mark_exit (struct proc *p, int status, @@ -201,7 +201,7 @@ S_proc_mark_exit (struct proc *p, return 0; } -/* Implement proc_mark_cont as described in <hurd/proc.defs>. */ +/* Implement proc_mark_cont as described in <hurd/process.defs>. */ kern_return_t S_proc_mark_cont (struct proc *p) { @@ -211,7 +211,7 @@ S_proc_mark_cont (struct proc *p) return 0; } -/* Implement proc_mark_traced as described in <hurd/proc.defs>. */ +/* Implement proc_mark_traced as described in <hurd/process.defs>. */ kern_return_t S_proc_mark_traced (struct proc *p) { @@ -221,7 +221,7 @@ S_proc_mark_traced (struct proc *p) return 0; } -/* Implement proc_mark_nostopchild as described in <hurd/proc.defs>. */ +/* Implement proc_mark_nostopchild as described in <hurd/process.defs>. */ kern_return_t S_proc_mod_stopchild (struct proc *p, int value) |