aboutsummaryrefslogtreecommitdiff
path: root/pflocal/io.c
Commit message (Collapse)AuthorAgeFilesLines
* 2007-11-13 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2007-11-131-6/+8
| | | | * io.c (S_io_stat): Adapt to ``struct stat'' changes.
* Revery previous change. Was intended for ams-branch, not HEAD.Neal H. Walfield2005-08-291-5/+5
|
* pflocal/Neal H. Walfield2005-08-291-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-17 Neal H. Walfield <neal@gnu.org> * connq.h (struct connq_request): Remove forward. (connq_listen): Wait for a request to be queued not until there is a connection attempt. Remove REQ parameter. Update callers. (connq_request_complete): Remove declaration. (connq_connect): Wait for a slot to queue a request not until there is an acceptor. Remove SOCK parameter. Update callers. (connq_connect_complete): New declaration. (connq_connect_cancel): New declaration. * connq.c (struct connq): Remove fields noqueue, queue, length, head and tail. Add fields head, tail, count, max, connectors and num_connectors. That is, replace the circular buffer with a singly linked list. (qnext): Remove function. (struct connq_request): Remove field signal, lock, completed and err. Add field next. (connq_request_init): Rewrite according to new semantics. (connq_request_enqueue): New function. (connq_request_dequeue): New function. (connq_create): Update according to new semantics. (connq_destroy): Likewise. (connq_listen): Rewrite to not block until there is a connector but until there is a request in the queue. (connq_request_complete): Remove function. (connq_connect): Rewrite to not block until there is an acceptor but until there is space for a request. (connq_connect_complete): New function. (connq_connect_cancel): New function. (connq_compress): Remove dead code. (connq_set_length): Rewrite. * socket.c (S_socket_connect): Create the server socket here... (S_socket_accept): ... not here.
* 2002-06-08 Roland McGrath <roland@frob.com>Roland McGrath2002-06-111-1/+1
| | | | * io.c (S_io_identity): Use ino_t for FILENO.
* 2002-05-08 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-7/+6
| | | | | * io.c (S_io_reauthenticate): unsigned -> size_t (S_io_restrict_auth): Likewise.
* Add `magic' protocols to specify the file type of a sockets. ThisMark Kettenis2000-08-021-2/+2
| | | | | | | | | | | | | allows implementation of POSIX pipes by using a S_IFSOCK protocol. * sock.h: Include <sys/types.h>. (struct sock): Add new member `mode'. (sock_create): Add new parameter `mode'. * sock.c (sock_create): Initialize `mode' member of struct sock, with new parameter. * pf.c (S_socket_create): Pass file type/mode to sock_create based on PROTOCOL. * io.c (S_io_stat): Use new member of `struct sock' to set ST->st_mode.
* Reverted changes related to io_map_segment.Roland McGrath1999-09-131-8/+0
|
* 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-081-0/+8
| | | | * io.c (S_io_map_segment): New function.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-0/+1
| | | | * io.c: Add #include <sys/mman.h> for munmap decl.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-1/+1
| | | | * io.c (TRASH_IDS): Use munmap instead of vm_deallocate.
* Tue Feb 16 05:52:35 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-02-161-1/+8
| | | | | * io.c (S_io_revoke): New function. Don't attempt to implement. (Other systems don't even permit non-file revokes.)
* Add braces to silence gcc warnings.Roland McGrath1998-10-201-17/+19
|
* (S_io_reauthenticate): Repeat sock_create_port andMichael I. Bushnell1996-07-141-8/+16
| | | | auth_server_authenticate for as long as we get EINTR.
* (S_io_reauthenticate): Don't use unsafe MOVE_SEND in call toMichael I. Bushnell1996-07-081-1/+2
| | | | auth_server_authenticate.
* (S_io_identity): New function.Miles Bader1996-05-141-0/+47
|
* (S_io_reauthenticate): Use new auth_server_authenticate protocol.Michael I. Bushnell1996-05-101-2/+1
|
* (S_io_select): Remove TAG arg.Miles Bader1996-05-091-5/+3
|
* (S_io_select):Miles Bader1996-01-151-20/+39
| | | | | Add reply port parameter, and request notification if it dies. Don't block if we can return EOF/EPIPE immediately.
* (S_io_set_all_openmodes, S_io_set_some_openmodes, S_io_clear_some_openmodes):Miles Bader1995-09-191-10/+11
| | | | | The user specifies O_NONBLOCK, not SOCK_NONBLOCK. (S_io_get_openmodes): Always return O_APPEND.
* (S_io_pathconf): New function.Miles Bader1995-09-191-1/+20
|
* (S_interrupt_operation): Function deleted.Miles Bader1995-09-061-13/+0
|
* (S_io_read, S_io_readable): Don't return EPIPE on EOF.Miles Bader1995-09-061-6/+8
|
* (S_io_stat): Only attempt to use the read pipe if it exists.Miles Bader1995-09-051-7/+8
|
* (S_io_select): Change the way selects are done, now that writes can block.Miles Bader1995-08-311-34/+30
| | | | (S_io_write): Pass in the new NOBLOCK parameter to pipe_write.
* (S_io_select): Use pipe_select instead of pipe_wait.Miles Bader1995-08-291-1/+1
|
* (S_interrupt_operation): Use ports_interrupt_rpc to interrupt waiting threads.Miles Bader1995-08-291-27/+1
|
* (S_io_select): Fix typo in masking off SELECT_URG.Roland McGrath1995-08-291-33/+22
| | | | Don't check open modes and return EBADF.
* (S_io_read, S_interrupt_operation, S_io_readable, S_io_select):Miles Bader1995-08-161-26/+26
| | | | | | Use pipe_release_reader instead of pipe_release. (S_io_write): Use pipe_release_writer instead of pipe_release. (S_io_readable, S_io_read): Reflect EPIPE as EOF.
* (S_interrupt_operation): Allow sockets trying to connect, and waiting forMiles Bader1995-07-301-7/+17
| | | | | connections to be interrupted. Change references to the CONNQ field in struct sock to LISTEN_QUEUE.
* entered into RCSMiles Bader1995-07-261-9/+5
|
* Formerly io.c.~12~Miles Bader1995-07-251-6/+23
|
* Formerly io.c.~11~Miles Bader1995-07-221-2/+21
|
* Formerly io.c.~10~Miles Bader1995-07-221-1/+39
|
* Formerly io.c.~9~Miles Bader1995-07-181-3/+63
|
* Formerly io.c.~8~Miles Bader1995-07-171-0/+1
|
* Formerly io.c.~7~Miles Bader1995-07-161-31/+35
|
* Formerly io.c.~6~Miles Bader1995-07-141-4/+5
|
* Formerly io.c.~5~Miles Bader1995-07-051-1/+3
|
* Formerly io.c.~4~Miles Bader1995-07-031-14/+8
|
* Formerly io.c.~3~Miles Bader1995-07-021-128/+252
|
* Formerly io.c.~2~Miles Bader1995-07-011-102/+71
|
* Initial revisionMiles Bader1995-07-011-0/+336