summaryrefslogtreecommitdiff
path: root/pflocal/io.c
AgeCommit message (Collapse)Author
2007-11-132007-11-13 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge
* io.c (S_io_stat): Adapt to ``struct stat'' changes.
2005-08-29Revery previous change. Was intended for ams-branch, not HEAD.Neal H. Walfield
2005-08-29pflocal/Neal H. Walfield
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-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* io.c (S_io_identity): Use ino_t for FILENO.
2002-05-082002-05-08 Roland McGrath <roland@frob.com>Roland McGrath
* io.c (S_io_reauthenticate): unsigned -> size_t (S_io_restrict_auth): Likewise.
2000-08-02Add `magic' protocols to specify the file type of a sockets. ThisMark Kettenis
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.
1999-09-13Reverted changes related to io_map_segment.Roland McGrath
1999-09-081999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* io.c (S_io_map_segment): New function.
1999-07-111999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* io.c: Add #include <sys/mman.h> for munmap decl.
1999-07-031999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* io.c (TRASH_IDS): Use munmap instead of vm_deallocate.
1999-02-16Tue Feb 16 05:52:35 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* io.c (S_io_revoke): New function. Don't attempt to implement. (Other systems don't even permit non-file revokes.)
1998-10-20Add braces to silence gcc warnings.Roland McGrath
1996-07-14(S_io_reauthenticate): Repeat sock_create_port andMichael I. Bushnell
auth_server_authenticate for as long as we get EINTR.
1996-07-08(S_io_reauthenticate): Don't use unsafe MOVE_SEND in call toMichael I. Bushnell
auth_server_authenticate.
1996-05-14(S_io_identity): New function.Miles Bader
1996-05-10(S_io_reauthenticate): Use new auth_server_authenticate protocol.Michael I. Bushnell
1996-05-09(S_io_select): Remove TAG arg.Miles Bader
1996-01-15(S_io_select):Miles Bader
Add reply port parameter, and request notification if it dies. Don't block if we can return EOF/EPIPE immediately.
1995-09-19(S_io_set_all_openmodes, S_io_set_some_openmodes, S_io_clear_some_openmodes):Miles Bader
The user specifies O_NONBLOCK, not SOCK_NONBLOCK. (S_io_get_openmodes): Always return O_APPEND.
1995-09-19(S_io_pathconf): New function.Miles Bader
1995-09-06(S_interrupt_operation): Function deleted.Miles Bader
1995-09-06(S_io_read, S_io_readable): Don't return EPIPE on EOF.Miles Bader
1995-09-05(S_io_stat): Only attempt to use the read pipe if it exists.Miles Bader
1995-08-31(S_io_select): Change the way selects are done, now that writes can block.Miles Bader
(S_io_write): Pass in the new NOBLOCK parameter to pipe_write.
1995-08-29(S_io_select): Use pipe_select instead of pipe_wait.Miles Bader
1995-08-29(S_interrupt_operation): Use ports_interrupt_rpc to interrupt waiting threads.Miles Bader
1995-08-29(S_io_select): Fix typo in masking off SELECT_URG.Roland McGrath
Don't check open modes and return EBADF.
1995-08-16(S_io_read, S_interrupt_operation, S_io_readable, S_io_select):Miles Bader
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.
1995-07-30(S_interrupt_operation): Allow sockets trying to connect, and waiting forMiles Bader
connections to be interrupted. Change references to the CONNQ field in struct sock to LISTEN_QUEUE.
1995-07-26entered into RCSMiles Bader
1995-07-25Formerly io.c.~12~Miles Bader
1995-07-22Formerly io.c.~11~Miles Bader
1995-07-22Formerly io.c.~10~Miles Bader
1995-07-18Formerly io.c.~9~Miles Bader
1995-07-17Formerly io.c.~8~Miles Bader
1995-07-16Formerly io.c.~7~Miles Bader
1995-07-14Formerly io.c.~6~Miles Bader
1995-07-05Formerly io.c.~5~Miles Bader
1995-07-03Formerly io.c.~4~Miles Bader
1995-07-02Formerly io.c.~3~Miles Bader
1995-07-01Formerly io.c.~2~Miles Bader
1995-07-01Initial revisionMiles Bader