aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* (open_write, open_read): Bounds check I/O.Miles Bader1995-04-101-16/+14
|
* (main, check_open_hook, close_device, trivfs_goaway): Add a new lock,Miles Bader1995-04-101-124/+81
| | | | | | | | | | | | | | | | | | | | device_lock, and use it to control access to the DEVICE variable. (open_hook, trivfs_modify_stat, trivfs_S_fys_syncfs): Copy DEVICE before using it, so it doesn't change underneath us. (clean_exit): Add a new argument that says whether to aquire a lock before doing our work. (ports_notice_idle, ports_no_live_ports): Use it. (close_device): New function, closes DEVICE cleanly. (clean_exit, ports_no_hard_ports): Use close_device. (main): Use trivfs_startup instead of doing it manually. (trivfs_goaway): Try and do it better, paying attention to flags, etc.; this still isn't right though, we may want to wait for the ports library to be fixed first. (DEBUG): New macro, executes its arg with debug_lock locked.
* (open_create): Supply our device's size when creating a window.Miles Bader1995-04-101-1/+1
|
* (struct execdata) [BFD]: New member `interp_section'.Roland McGrath1995-04-101-69/+186
| | | | | | | | | | | | (check_section): Notice section named ".interp" and set that pointer. (load_section): Do nothing if the section is zero size. When reading into our copy of the overlap page, don't read past the end of the section. (do_exec): Consolidate new subfunction `check_maybe_gzip'. If there is an interpreter section, load the interpreter file too, and use its entry point instead of the user program's. Cleaned up and made more robust deallocation of BOOT info on error. (deadboot): New function, split out of do_mach_port_notify_no_senders.
* Read or write partial pages at the end of the device.Miles Bader1995-04-091-12/+26
|
* (position): Use a shorter than normal window if necessary to avoid going pastMiles Bader1995-04-091-10/+13
| | | | | | the end of the device. (window_create): Initialize the new MAX_POS field. Rename the location field `pos'.
* Add a new window field, max_pos. Rename the location field `pos'.Miles Bader1995-04-091-2/+4
|
* Getopt now returns '\001' for non-switch options instead of '\0', no doubt toMiles Bader1995-04-091-1/+1
| | | | | work around an obscure bug in some brain-dead system only used by 2 people twice a decade.
* (vpath lib%.a): Move this after include ../Makeconf, since it uses aRoland McGrath1995-04-091-1/+2
| | | | variable set there.
* (vpath lib%.a): Add search path.Roland McGrath1995-04-091-6/+8
| | | | | | (exec): Depend on -lbfd and -liberty. (CPPFLAGS): Append -DBFD; omit -DA_OUT_H=... (bfdexec): Target removed.
* (load_section): fseek to desired position before freading.Roland McGrath1995-04-091-2/+12
| | | | (input_room): Always map a page-aligned region.
* Link ifsock with error.o.Miles Bader1995-04-091-1/+1
|
* Use trivfs_startup() instead of doing things manually.Miles Bader1995-04-091-22/+7
| | | | | Get rid of _libports_initialize() [it gets called automatically]. Use error() to print error messages.
* Use trivfs_startup() instead of doing things manually.Miles Bader1995-04-091-18/+5
| | | | Get rid of _libports_initialize() [it gets called automatically].
* If trivfs_fsid is zero, set it to our process id, which should be a niceMiles Bader1995-04-091-0/+5
| | | | unique value.
* Before calling trivfs_modify_stat, set the st_fstype & st_fsid fields toMiles Bader1995-04-091-1/+12
| | | | | trivfs_fstype & trivfs_fsid. But first, if trivfs_fsid is zero, set it to our process id, which should be a nice unique value.
* Declare trivfs_startup.Miles Bader1995-04-091-0/+9
|
* Initial revisionMiles Bader1995-04-091-0/+62
|
* (subdirs-nodist, other-subdirs): Delete `ext2fs'.Michael I. Bushnell1995-04-071-2/+2
|
* Make everything depend on ps.h. Other random tweaks.Miles Bader1995-04-071-6/+4
|
* Tighten up types used (i.e., don't use int for everything).Miles Bader1995-04-075-19/+20
|
* (parse_enum): Renamed from enum_name.Miles Bader1995-04-071-83/+333
| | | | | (main, usage): Add lots of sysvish options, and generalize some existing ones to deal with sysvish usage. Make -t & -o work.
* (ps_tty_short_name): New function; functionality used to be in spec.c.Miles Bader1995-04-071-1/+70
| | | | | (ps_tty_create, ps_tty_free): Add short_name fields. Tighten up types used (i.e., don't use int for everything).
* Add decls for proc_stat_list_add_pgrp & ps_tty_short_name.Miles Bader1995-04-071-43/+59
| | | | Tighten up types used (i.e., don't use int for everything).
* (ps_emit_state): If a process is marked as stopped, then don't mentionMiles Bader1995-04-071-46/+17
| | | | | | sleeping or idle threads' status (as that's presumably the signal thread). (ps_emit_tty_name): Move guts into into ps_tty_short_name. Tighten up types used (i.e., don't use int for everything).
* (proc_stat_list_sort1): Always keep threads after their process when sorting!Miles Bader1995-04-071-54/+70
| | | | | | | Factor out most of proc_stat_list_add_all, proc_stat_list_add_login_coll, and proc_stat_list_add_session into proc_stat_list_add_[id_]fn_pids. (proc_stat_list_add_pgrp): New function, adds pids for a pgrp. Tighten up types used (i.e., don't use int for everything).
* (S_proc_getprocinfo): New var `tp'. Bother to setMichael I. Bushnell1995-04-061-1/+5
| | | | PI->logincollection.
* Add the `jobc' (-j) output format from netbsd.Miles Bader1995-04-061-9/+20
|
* Minor change in spec names.Miles Bader1995-04-061-1/+1
|
* Add the `Arg0' spec, which is the same as `Args', but only prints the firstMiles Bader1995-04-061-2/+3
| | | | one. Change MsgsIn and MsgsOut to MsgIn and MsgOut.
* When processes are specified on the command line by PID, turn off allMiles Bader1995-04-061-5/+7
| | | | filtering so that they don't disappear later.
* (waiter_cares, waiting_parent_cares): New functions.Roland McGrath1995-04-061-28/+37
| | | | (alert_parent, reparent_zombies, S_proc_wait, S_proc_mark_stop): Use them.
* Don't include <errno.h>. Define `errno' variable.Roland McGrath1995-04-051-2/+4
|
* (SRCS): Add syscall.S.Roland McGrath1995-04-051-3/+3
| | | | (OBJS): Add syscall.o.
* Check for errors.Roland McGrath1995-04-051-6/+8
|
* (clean): Only clean in working-prog-subdirs.Michael I. Bushnell1995-04-051-2/+2
|
* (crossdir, startup, libc, crossheaders): New vars.Michael I. Bushnell1995-04-051-1/+6
| | | | (MIGCOM): Use $(crossdir) instead of literal string.
* (hurdinst, hurdroot): Deleted vars. Replaced usages with $(prefix)Michael I. Bushnell1995-04-051-59/+35
| | | | | | | | | | | | and derivatives. (hurdroot-douglas.gnu.ai.mit.edu, hurdroot-ernst.gnu.ai.mit.edu, hostname, hurdrootdev): Deleted vars. (hurdsource): Replaced with `srcdir'. (startup, libc): Deleted vars; now in Maketools. (prefix, exec_prefix): New vars. (hurddir, bindir, libdir, infodir, includedir): New vars. ($(hurdroot), $(hurdroot)/mounted): Deleted rules. (vpath %.defs): Look in $(crossheaders), not installation dir.
* Use the hashing routines from ../lib/ihash.c.Miles Bader1995-04-051-1/+4
|
* Initial revisionMiles Bader1995-04-051-0/+35
|
* Initial revisionMiles Bader1995-04-0515-0/+2707
|
* (diskfs_S_dir_rmdir): Do fsys_goaway for translated nodes beingMichael I. Bushnell1995-04-051-0/+38
| | | | unlinked.
* Fix nets.Michael I. Bushnell1995-04-051-0/+3
|
* (apply_auth): Use msg_add_auth & msg_del_auth instead of add_auth & del_auth.Miles Bader1995-04-051-10/+9
| | | | | | (apply_auth_to_pids, apply_auth_to_loginid, apply_auth_to_pgrp): Don't use the IDS variable, it's no longer around; I think AUTH is the right thing to replace it with.
* Add showtrans & mount, and uncomment-out su.Miles Bader1995-04-051-2/+3
|
* (diskfs_S_dir_unlink): Do fsys_goaway for translated nodes beingMichael I. Bushnell1995-04-051-0/+35
| | | | unlinked.
* Get rid of the `show passive translator' functionality, as this is now doneMiles Bader1995-04-051-45/+26
| | | | by showtrans.
* (proc_stat_set_flags): If PSTAT_NO_MSGPORT is set, don't use the msg port.Miles Bader1995-04-051-3/+10
|
* Add the PSTAT_NO_MSGPORT flag, which when set disables any use of theMiles Bader1995-04-051-3/+5
| | | | process's message port.
* Make -a imply -g as well, to be compatible with bsd.Miles Bader1995-04-051-7/+14
| | | | | Add the -M (--no-msg-port) switch, which disables all fields that would use any process's message port.