aboutsummaryrefslogtreecommitdiff
path: root/proc/info.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-06-05 Roland McGrath <roland@frob.com>Roland McGrath2002-06-051-0/+8
| | | | | * info.c (S_proc_getprocinfo): If PI_FETCH_TASKEVENTS is set in *FLAGS, fill in PI->taskevents using task_info with TASK_EVENTS_INFO.
* 2002-05-07 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-12/+26
| | | | | | | | | * host.c (S_proc_setexecdata, S_proc_getexecdata): u_int -> size_t (initialize_version_info): Likewise. Fix cast in host_info arg. (get_string_array): Likewise. * info.c (get_string, S_proc_getprocargs, S_proc_getprocenv): Likewise. (S_proc_getprocinfo, S_proc_getloginpids): Likewise. (S_proc_getprocinfo): int -> size_t; fix casts in *_info argument.
* 2001-12-22 Roland McGrath <roland@frob.com>Roland McGrath2001-12-221-1/+15
| | | | | * proc.h (check_owner): Move this extern inline function ... * info.c (check_owner): ... to here, made static inline.
* 2001-06-27 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-06-271-1/+6
| | | | | * info.c (S_proc_getprocinfo): If we return because mmap failed for *PIARRAY, be sure to munmap THDS if necessary.
* 2000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-151-39/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-01-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-01-241-21/+22
| | | | | | | * info.c (get_string): New arg, pass back length of string. (get_string_array): Use it, rather than repeating strlen. When increasing NEWSIZE to fit, round it to page size. Diddle a few casts to be prettier.
* 1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-111-6/+9
| | | | | | | | | | * info.c (get_string_array): Use mmap instead of vm_allocate. (S_proc_getprocinfo): Likewise. (S_proc_getloginpids): Likewise. * mgt.c (S_proc_getallpids): Likewise. * pgrp.c (S_proc_getsessionpids): Likewise. (S_proc_getsessionpgids): Likewise. (S_proc_getpgrppids): Likewise.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-0/+1
| | | | | * info.c: Add #include <sys/mman.h> for munmap decl. * mgt.c: Likewise.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-13/+9
| | | | | | | | | | * info.c (get_string): Use munmap instead of vm_deallocate. (get_vector): Likewise. (get_string_array): Likewise. (S_proc_getprocinfo): Likewise. * mgt.c (S_proc_reauthenticate): Likewise. (S_proc_dostop): Likewise. (add_tasks): Likewise.
* 1999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-301-2/+3
| | | | | * mgt.c (add_tasks): Skip invalid (null) rights in tasks array. * info.c (S_proc_pid2task): Add assert for p_task right validity.
* 1999-05-01 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-05-041-1/+3
| | | | | | | | * msg.c (check_msgport_death): New function. (S_proc_getmsgport): Use it. * proc.h (check_msgport_death): Provide prototype. * info.c (S_proc_getprocinfo): Call check_msgport_death to make sure that our knowledge about P's message port is up to date.
* (get_string_array):Miles Bader1996-07-291-5/+8
| | | | Correctly adjust NEWSIZE when reallocating to add very long strings.
* (S_proc_getprocinfo): Get rid of temp hack for strnlen.Miles Bader1996-05-291-3/+0
|
* (S_proc_getprocinfo): Set PI->exitstatus and PI->sigcode.Michael I. Bushnell1996-05-241-0/+7
|
* (S_proc_pid2task, S_proc_pid2proc): Use check_owner.Miles Bader1996-05-151-2/+3
|
* (PI_FETCH_THREAD_DETAILS): New macro.Miles Bader1996-05-121-13/+27
| | | | | | | (S_proc_getprocinfo): Only allocate thread detail storage if we're actually returning thread details (a lone PI_FETCH_THREADS simply means "number of threads"). React to errors somewhat more gracefully.
* (S_proc_getprocinfo): Add comment.Miles Bader1996-05-121-0/+3
|
* (S_proc_get_tty): New function.Miles Bader1996-05-101-0/+7
|
* (S_proc_getprocinfo): FLAGS is now an in-out parameter.Michael I. Bushnell1996-05-091-11/+11
|
* (S_proc_getprocinfo):Miles Bader1996-05-011-6/+16
| | | | | | Release GLOBAL_LOCK around time consuming bits, and more importantly, potential calls to P's msgport, which can block. Fix test when appending to WAITS.
* (S_proc_getprocinfo): Install temporary hack so things at leastMichael I. Bushnell1996-04-291-0/+3
| | | | compile.
* *** empty log message ***Michael I. Bushnell1996-04-291-48/+42
|
* Many changes to support multi-threading. See ChangeLog.Michael I. Bushnell1996-04-251-4/+45
|
* Add some more #ifdef'd-out code to return wait strings.Miles Bader1996-02-141-18/+70
|
* (get_vector): Rewritten without arbitrary limits.Roland McGrath1995-12-201-31/+37
|
* (get_string_array): Fix stupid bug in copying to newly allocated space.Roland McGrath1995-12-191-43/+48
|
* (S_proc_getprocinfo): Inhibit PI_FETCH_THREAD_WAITS differently.Michael I. Bushnell1995-11-081-4/+4
|
* (S_proc_getprocinfo): Don't attempt msg_report_wait if P->p_msgport isMichael I. Bushnell1995-11-081-1/+3
| | | | not valid.
* (S_proc_getprocinfo): Inhibit PI_FETCH_THREAD_WAITS for now.Michael I. Bushnell1995-11-081-3/+6
|
* (S_proc_getprocinfo): Calculate the size of the returned structure correctly.Miles Bader1995-11-081-3/+2
|
* (S_proc_getprocinfo):Miles Bader1995-11-061-7/+12
| | | | Add NOISE and NOISE_LEN args. Fix various typos. Initialize ERR.
* (S_proc_getprocinfo): Implement all the rest of the PI flags exceptMichael I. Bushnell1995-10-311-1/+6
| | | | PI_ZOMBIE.
* (S_proc_getprocinfo): Support new FETCH flags; support newMichael I. Bushnell1995-10-301-46/+54
| | | | msg_report_wait call; improve organization.
* (S_proc_getprocenv): Removed #ifdef notyet; fixed args toMichael I. Bushnell1995-10-301-5/+1
| | | | get_string_array.
* (S_proc_getprocinfo): New var `tp'. Bother to setMichael I. Bushnell1995-04-061-1/+5
| | | | PI->logincollection.
* entered into RCSMichael I. Bushnell1994-11-031-2/+2
|
* Formerly info.c.~9~Roland McGrath1994-10-241-3/+3
|
* Formerly info.c.~8~Michael I. Bushnell1994-08-221-1/+2
|
* Formerly info.c.~7~Michael I. Bushnell1994-07-221-1/+1
|
* Formerly info.c.~6~Michael I. Bushnell1994-05-131-13/+57
|
* Formerly info.c.~5~Michael I. Bushnell1994-05-121-1/+0
|
* Formerly info.c.~4~Roland McGrath1994-05-121-37/+39
|
* Formerly info.c.~3~Michael I. Bushnell1994-05-061-13/+13
|
* Formerly info.c.~2~Michael I. Bushnell1994-03-221-0/+76
|
* Initial revisionMichael I. Bushnell1994-03-221-0/+403