summaryrefslogtreecommitdiff
path: root/proc/info.c
AgeCommit message (Collapse)Author
2002-06-052002-06-05 Roland McGrath <roland@frob.com>Roland McGrath
* 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-082002-05-07 Roland McGrath <roland@frob.com>Roland McGrath
* 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-222001-12-22 Roland McGrath <roland@frob.com>Roland McGrath
* proc.h (check_owner): Move this extern inline function ... * info.c (check_owner): ... to here, made static inline.
2001-06-272001-06-27 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* info.c (S_proc_getprocinfo): If we return because mmap failed for *PIARRAY, be sure to munmap THDS if necessary.
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.
2000-01-242000-01-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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-111999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* 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-111999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* info.c: Add #include <sys/mman.h> for munmap decl. * mgt.c: Likewise.
1999-07-031999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* 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-301999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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-041999-05-01 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell
* 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.
1996-07-29(get_string_array):Miles Bader
Correctly adjust NEWSIZE when reallocating to add very long strings.
1996-05-29(S_proc_getprocinfo): Get rid of temp hack for strnlen.Miles Bader
1996-05-24(S_proc_getprocinfo): Set PI->exitstatus and PI->sigcode.Michael I. Bushnell
1996-05-15(S_proc_pid2task, S_proc_pid2proc): Use check_owner.Miles Bader
1996-05-12(PI_FETCH_THREAD_DETAILS): New macro.Miles Bader
(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.
1996-05-12(S_proc_getprocinfo): Add comment.Miles Bader
1996-05-10(S_proc_get_tty): New function.Miles Bader
1996-05-09(S_proc_getprocinfo): FLAGS is now an in-out parameter.Michael I. Bushnell
1996-05-01(S_proc_getprocinfo):Miles Bader
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.
1996-04-29(S_proc_getprocinfo): Install temporary hack so things at leastMichael I. Bushnell
compile.
1996-04-29*** empty log message ***Michael I. Bushnell
1996-04-25 Many changes to support multi-threading. See ChangeLog.Michael I. Bushnell
1996-02-14Add some more #ifdef'd-out code to return wait strings.Miles Bader
1995-12-20(get_vector): Rewritten without arbitrary limits.Roland McGrath
1995-12-19(get_string_array): Fix stupid bug in copying to newly allocated space.Roland McGrath
1995-11-08(S_proc_getprocinfo): Inhibit PI_FETCH_THREAD_WAITS differently.Michael I. Bushnell
1995-11-08(S_proc_getprocinfo): Don't attempt msg_report_wait if P->p_msgport isMichael I. Bushnell
not valid.
1995-11-08(S_proc_getprocinfo): Inhibit PI_FETCH_THREAD_WAITS for now.Michael I. Bushnell
1995-11-08(S_proc_getprocinfo): Calculate the size of the returned structure correctly.Miles Bader
1995-11-06(S_proc_getprocinfo):Miles Bader
Add NOISE and NOISE_LEN args. Fix various typos. Initialize ERR.
1995-10-31(S_proc_getprocinfo): Implement all the rest of the PI flags exceptMichael I. Bushnell
PI_ZOMBIE.
1995-10-30(S_proc_getprocinfo): Support new FETCH flags; support newMichael I. Bushnell
msg_report_wait call; improve organization.
1995-10-30(S_proc_getprocenv): Removed #ifdef notyet; fixed args toMichael I. Bushnell
get_string_array.
1995-04-06(S_proc_getprocinfo): New var `tp'. Bother to setMichael I. Bushnell
PI->logincollection.
1994-11-03entered into RCSMichael I. Bushnell
1994-10-24Formerly info.c.~9~Roland McGrath
1994-08-22Formerly info.c.~8~Michael I. Bushnell
1994-07-22Formerly info.c.~7~Michael I. Bushnell
1994-05-13Formerly info.c.~6~Michael I. Bushnell
1994-05-12Formerly info.c.~5~Michael I. Bushnell
1994-05-12Formerly info.c.~4~Roland McGrath
1994-05-06Formerly info.c.~3~Michael I. Bushnell
1994-03-22Formerly info.c.~2~Michael I. Bushnell
1994-03-22Initial revisionMichael I. Bushnell