aboutsummaryrefslogtreecommitdiff
path: root/devio
Commit message (Collapse)AuthorAgeFilesLines
* (trivfs_goaway, trivfs_modify_stat): Update arguments.Miles Bader1995-08-241-7/+4
| | | | (trivfs_modify_stat): Get the device from CRED now that we have it.
* (devio): Put all dependencies here.Miles Bader1995-08-241-10/+4
| | | | | | | | (HURDLIBS): Removed. (OBJS): Get rid of error.o. Get rid of rules dealing with error.o. ($(prefix)/dev/MAKEDEV): Use $(INSTALL_PROGRAM) instead of $(INSTALL_DATA) + `chmod +x'.
* ([hrs]d*): Fixed partition parsing: use glob pattern, not regexp.Roland McGrath1995-08-151-2/+2
|
* (trivfs_peropen_create_hook): This now returns an error_t.Miles Bader1995-08-131-3/+5
| | | | (open_hook): And thus this does as well.
* (dev_get_memory_object): A new pager now comes with 1 ref, so we allocate aMiles Bader1995-07-221-0/+4
| | | | | ref ourselves when we're using an old one, and once we've created the send right, remove a reference.
* (trivfs_S_io_seek): Call open_seek instead of doing it ourselves.Miles Bader1995-07-221-26/+2
|
* Add declaration for open_seek.Miles Bader1995-07-221-0/+6
|
* (open_read, open_write): Clean up STATE before returning with an error.Miles Bader1995-07-221-9/+53
| | | | | (open_seek): New function. (raw_read, raw_write): Return EINVAL if *OFFS isn't a block boundary.
* (console): Give /hurd/term a ttyname argument.Miles Bader1995-07-081-2/+2
| | | | (fd): Put the fd server on `fd', not `stdin'.
* (HURDLIBS): Add libihash.Miles Bader1995-07-081-8/+1
| | | | Remove include dependencies.
* (dev_get_memory_object): Moved function to devpager.c.Miles Bader1995-07-081-29/+0
|
* (trivfs_goaway): Make trivfs_goaway do the right thing.Miles Bader1995-07-081-102/+72
| | | | | | | | | | | | | | | (clean_exit, close_device): Deleted functions. (thread_cancel): New function. (fsys_port_class, root_port_class, port_bucket): New vars. (trivfs_protid_portclasses, trivfs_cntl_portclasses, trivfs_protid_nportclasses, trivfs_cntl_nportclasses): New vars. (main): Initialize *portclasses vars, and convert to new trivfs lib. (trivfs_protid_porttypes, trivfs_cntl_porttypes, trivfs_protid_nporttypes, trivfs_cntl_nporttypes): Deleted vars. (trivfs_goaway): Convert args for new trivfs lib. (ports_cleanroutines): Delete var. (ports_demuxer, ports_notice_idle, ports_no_live_ports, ports_no_hard_ports): Delete functions.
* (struct dev): Add the pager_port_bucket field.Miles Bader1995-07-081-0/+7
| | | | Declare dev_stop_paging ().
* (dev_stop_paging): New function.Miles Bader1995-07-081-5/+127
| | | | | | | | | | (pager_dropweak): New function. (pager_port_type): Deleted var. (pager_port_bucket, pager_port_class): New vars. (dev_get_memory_object): Moved here from dev.c. Also, call init_dev_pager if necessary. (service_paging_requests): New function. (init_dev_pager): New function.
* (io_state_sync): Remember that we've synced the buffer.Miles Bader1995-07-081-0/+3
|
* Repair mangled include-file dependencies.Michael I. Bushnell1995-06-281-4/+6
|
* Split out `std' into individual device-makers it calls.Roland McGrath1995-04-211-17/+27
| | | | | Rewrote /dev/fd stuff (still commented out). Use case built-in instead of expr program.
* (DIST_FILES): New var, for MAKEDEV.Michael I. Bushnell1995-04-111-0/+7
| | | | | (install): Depend on $(prefix)/dev/MAKEDEV. ($(prefix)/dev/MAKEDEV): New target.
* Initial revisionMichael I. Bushnell1995-04-111-0/+41
|
* Add some dependencies on include files.Miles Bader1995-04-101-0/+5
|
* (trivfs_S_file_truncate): Always return 0, so O_TRUNC works.Miles Bader1995-04-101-3/+1
|
* (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
|
* 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
|
* Initial revisionMiles Bader1995-04-051-0/+35
|
* Initial revisionMiles Bader1995-04-0515-0/+2707