aboutsummaryrefslogtreecommitdiff
path: root/proc
Commit message (Collapse)AuthorAgeFilesLines
* .Roland McGrath2000-03-171-0/+4
|
* 2000-03-17 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-171-3/+1
| | | | * main.c (main): Use ports_get_send_right.
* .Roland McGrath2000-03-141-0/+7
|
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-141-3/+29
| | | | | | | | | * mgt.c (S_proc_exception_raise): Check for MACH_SEND_NOTIFY_IN_PROGRESS rather than MACH_SEND_INVALID_NOTIFY. Don't deallocate THREAD and TASK ports before the switch, since the successful case uses THREAD again and the failure case uses TASK again. Instead, deallocate them at the end of the successful case. At the end of the error case, use mach_port_destroy on THREAD only.
* .Roland McGrath2000-03-131-0/+13
|
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-131-88/+120
| | | | | | | | | | | | | * stubs.c (struct msg_sig_post_request): New type, broken out of send_signal, where it was anonymous. (struct msg_spec): Type removed. (blocking_message_send): Change type to any_t -> any_t. Don't call cthread_wire; it's a no-op in GNU anyway. Just return instead of calling cthread_exit. Argument is now a pointer to struct msg_sig_post_request. Check mach_msg return value for sanity assert. (send_signal): Make MESSAGE auto instead of static, use new type name. This problem tracked down by Mark Kettenis <kettenis@gnu.org>.
* .Roland McGrath2000-03-121-0/+9
|
* 2000-03-12 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-123-10/+24
| | | | | | | | | * 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.
* .Roland McGrath2000-01-241-0/+7
|
* 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.
* obsolete file removedRoland McGrath2000-01-072-135/+5
|
* 2000-01-06 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-01-071-2/+1
| | | | | * primes.c: File removed (long obsolete). * proc.h: Don't declare nextprime.
* .Roland McGrath1999-07-111-0/+4
|
* 1999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-1/+2
| | | | * proc.h: Add #include <sys/mman.h>.
* 1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-114-15/+28
| | | | | | | | | | * 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.
* .Roland McGrath1999-07-111-0/+5
|
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-112-0/+2
| | | | | * 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-033-27/+26
| | | | | | | | | | * 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.
* .Roland McGrath1999-06-191-0/+4
|
* 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.
* .Roland McGrath1999-06-051-0/+5
|
* 1999-06-05 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-052-1/+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.
* .Roland McGrath1999-06-051-0/+15
|
* 1999-06-05 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-051-97/+97
| | | | | | | | | | | | * 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. * mgt.c (make_ids): Add const to arguments.
* 1999-06-05 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-051-15/+17
| | | | | | | | | | | | * proc.h (struct proc): Use unsigned int for flag bitfields. * 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-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.
* .Roland McGrath1999-05-301-0/+3
|
* 1999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-302-3/+10
| | | | | * mgt.c (add_tasks): Skip invalid (null) rights in tasks array. * info.c (S_proc_pid2task): Add assert for p_task right validity.
* .Roland McGrath1999-05-301-0/+4
|
* 1999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-301-0/+1
| | | | * main.c: Include <device/device.h>.
* .Roland McGrath1999-05-231-1/+5
|
* 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-01 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-05-044-18/+40
| | | | | | | | * 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.
* .Roland McGrath1999-05-021-0/+4
|
* 1999-05-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-021-0/+1
| | | | * main.c: Include <error.h>.
* .Roland McGrath1999-05-021-0/+5
|
* 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.
* .Roland McGrath1999-03-141-6/+10
|
* 1999-03-14 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-03-141-1/+0
| | | | * mgt.c (S_proc_reassign): Remove unused variable FOO.
* 1999-03-11 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-03-124-17/+30
| | | | | | | | | | | | * notify.c (do_mach_notify_dead_name): Remove unnecessary braces. * msg.c (S_proc_setmsgport): Remove unused variable FOO. (S_proc_getmsgport): Only check if the message port is still alive if it is not MACH_PORT_NULL. Use mach_port_type instead of mach_port_get_refs to check if the port is dead. * mgt.c (S_proc_reassign): Use mach_port_destroy to release the old task port.
* Tue Mar 9 13:11:43 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-03-095-27/+33
| | | | | | | | | | | | | | * notify.c (do_mach_notify_dead_name): Don't check against P->p_msgport anymore. * msg.c (message_port_dead): Delete function. (S_proc_setmsgport): Don't request a dead-name notification anymore. (S_proc_getmsgport): Check to see if P->p_msgport is dead before returning it. * mgt.c (S_proc_reassign): Only use mach_port_deallocate to release P->msgport. (process_has_exited): Likewise. * proc.h (message_port_dead): Delete prototype.
* Tue Mar 9 13:11:43 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-03-092-9/+11
| | | | | | | | | | * mgt.c (S_proc_reassign): It's not necessary to re-request the task-death notification; we've moved both the task right and the proc port that gets the notification, so delete that. * mgt.c (S_proc_reassign): Use mach_port_destroy instead of mach_port_deallocate to release P->p_msgport, for the same reasons as the changes below.
* Sun Mar 7 18:19:07 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-03-072-3/+14
| | | | | | | | | | | * mgt.c (process_has_exited): Use mach_port_destroy instead of mach_port_deallocate to release P->p_msgport. (complete_exit): Likewise for P->p_task. These changes eliminate a race; we are destroying the receiver of the dead-name notifications on these ports, but if that means we lose a notification, then the ref-count on the name will get incremented and we can't re-decrement it since we never hear the notification.
* 1999-03-06 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-03-062-2/+12
| | | | | * notify.c (do_mach_notify_dead_name): Deallocate reference to DEADPORT.
* Sat Feb 20 06:26:17 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-02-212-2/+6
| | | | * stubs.c (send_signal): Typo in comment.
* .Roland McGrath1998-07-201-5/+10
|
* 1998-07-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-07-201-0/+14
| | | | | | * cpu-types.c: Test with #ifdef for CPU_TYPE_I486, CPU_TYPE_PENTIUM, CPU_TYPE_PENTIUMPRO, CPU_TYPE_POWERPC, since not all <mach/machine.h> versions have them.
* Tue Sep 16 15:26:04 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-09-162-79/+8
| | | | | | * host.c (hostid, hostname, hostnamelen): Delete variables. (S_proc_sethostid, S_proc_gethostid, S_proc_sethostname, S_proc_gethostname): Delete functions.
* Wed Aug 20 14:06:46 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-08-202-1/+6
| | | | | * main.c (main): New args for ports_manage_port_operations_multithread.
* Thu Jun 26 14:03:16 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-06-302-8/+23
| | | | | | | * cpu-types.c (mach_cpu_types): Add entries for 486, 586, 686, and powerpc. (mach_cpu_subtypes): Add subtypes for new x86 subtypes. (None added for powerpc yet.)