summaryrefslogtreecommitdiff
path: root/pflocal
AgeCommit message (Collapse)Author
2010-09-19Fix port transmission over pflocalManuel Menal
* pflocal/socket.c (S_socket_recv): Return transmitted port to caller thanks to MACH_MSG_TYPE_COPY_SEND instead of MACH_MSG_TYPE_MAKE_SEND (since this is a send right here).
2010-07-17Implement getsockopt (fd, SOL_SOCKET, SO_TYPE)Emilio Pozuelo Monfort
* pflocal/socket.c (S_socket_getopt): Add SO_TYPE support. (S_socket_setopt): Fix return value.
2009-07-11Switch to the new ChangeLog style.Thomas Schwinge
* ChangeLog: Wipe out content, and add instructions about how to get it back. * auth/ChangeLog: Remove file. * benchmarks/ChangeLog: Likewise. * boot/ChangeLog: Likewise. * bsdfsck/ChangeLog: Likewise. * config/ChangeLog: Likewise. * console-client/ChangeLog: Likewise. * console/ChangeLog: Likewise. * daemons/ChangeLog: Likewise. * defpager/ChangeLog: Likewise. * doc/ChangeLog: Likewise. * exec/ChangeLog: Likewise. * ext2fs/ChangeLog: Likewise. * fatfs/ChangeLog: Likewise. * fstests/ChangeLog: Likewise. * ftpfs/ChangeLog: Likewise. * hostmux/ChangeLog: Likewise. * hurd/ChangeLog: Likewise. * include/ChangeLog: Likewise. * init/ChangeLog: Likewise. * isofs/ChangeLog: Likewise. * libcons/ChangeLog: Likewise. * libdirmgt/ChangeLog: Likewise. * libdiskfs/ChangeLog: Likewise. * libfshelp/ChangeLog: Likewise. * libftpconn/ChangeLog: Likewise. * libhurdbugaddr/ChangeLog: Likewise. * libihash/ChangeLog: Likewise. * libiohelp/ChangeLog: Likewise. * libnetfs/ChangeLog: Likewise. * libpager/ChangeLog: Likewise. * libpipe/ChangeLog: Likewise. * libports/ChangeLog: Likewise. * libps/ChangeLog: Likewise. * libshouldbeinlibc/ChangeLog: Likewise. * libstore/ChangeLog: Likewise. * libthreads/ChangeLog: Likewise. * libtrivfs/ChangeLog: Likewise. * login/ChangeLog: Likewise. * mach-defpager/ChangeLog: Likewise. * nfs/ChangeLog: Likewise. * nfsd/ChangeLog: Likewise. * pfinet/ChangeLog: Likewise. * pflocal/ChangeLog: Likewise. * proc/ChangeLog: Likewise. * release/ChangeLog: Likewise. * serverboot/ChangeLog: Likewise. * storeio/ChangeLog: Likewise. * sutils/ChangeLog: Likewise. * term/ChangeLog: Likewise. * tmpfs/ChangeLog: Likewise. * trans/ChangeLog: Likewise. * ufs-fsck/ChangeLog: Likewise. * ufs-utils/ChangeLog: Likewise. * ufs/ChangeLog: Likewise. * usermux/ChangeLog: Likewise. * utils/ChangeLog: Likewise.
2008-07-222008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* socket.c (S_socket_send): Release a reader reference instead of a writer reference when the destination is given.
2008-07-22fix copyright yearsSamuel Thibault
2008-07-222008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault
* pf.c (S_socket_fabricate_address): Drop one reference from addr since we only take the send right. * socket.c (S_socket_name): Likewise.
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.
2005-05-18pflocal/Neal H. Walfield
2005-05-17 Neal H. Walfield <neal@gnu.org> * sock.c (sock_free): Don't destroy SOCK->CONNECT_QUEUE.
2002-06-11.Roland McGrath
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* io.c (S_io_identity): Use ino_t for FILENO.
2002-05-08.Roland McGrath
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.
2002-04-24Beautify last change.Marcus Brinkmann
2002-04-242002-04-24 Ognyan Kulev <ogi@fmi.uni-sofia.bg>Marcus Brinkmann
* sock.c (sock_shutdown): When both SHUTDOWN_READ and SHUTDOWN_WRITE are set in FLAGS unlock sock->lock after all processing of `sock' is finished. (sock_create): Replace bzero with memset.
2001-12-22.Roland McGrath
2001-12-222001-12-22 Roland McGrath <roland@frob.com>Roland McGrath
* connq.c (connq_compress): #if 0 out unused function.
2001-12-222001-12-22 Roland McGrath <roland@frob.com>Roland McGrath
* sock.h (sock_deref): Don't define this extern inline. Instead, use static inline and __attribute__ ((unused)). * mig-decls.h (begin_using_sock_user_port): Likewise. (end_using_sock_user_port): Likewise. (begin_using_addr_port): Likewise. (end_using_addr_port): Likewise.
2001-04-01.Roland McGrath
2001-04-012001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* sock.c: Include "connq.h" for connq_destroy decl.
2001-02-202001-02-20 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* connq.c: Include <assert.h>. Reported by Arkadi E. Shishlov <arkadi@it.lv>.
2001-02-122001-02-11 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* connq.c (connq_destroy): New function. * connq.h: Prototype connq_destroy. * sock.c (sock_free): Call connq_destroy when listen or connect queue exist.
2000-08-09* pf.c (S_socket_create): Only accept S_IFCHR, S_IFSOCK andMark Kettenis
S_IFIFO as `magic' protocols.
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.
2000-07-26* Makefile (HURDLIBS): Reorder libs such that the threads libMark Kettenis
comes before the ports lib. This makes sure the functions in libthreads properly override the stubs in libports with the new dynamic linker semantics in glibc 2.2.
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-11.Roland McGrath
1999-07-111999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* sock.h: Add #include <sys/mman.h>.
1999-07-111999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* pf.c (S_socket_whatis_address): Use mmap instead of vm_allocate.
1999-07-11.Roland McGrath
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-03-02.Roland McGrath
1999-03-021999-03-01 Mark Kettenis <kettenis@gnu.org>Roland McGrath
* pf.c (S_socket_whatis_address): Implement. Since we cannot tell what our adress is, return an empty string as the file name.
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
1998-07-20.Roland McGrath
1998-07-201998-07-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* pflocal.c (main): Fix return type to int, and use return.
1997-08-20Wed Aug 20 14:06:11 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* pflocal.c (main): New args for ports_manage_port_operations_multithread. * sserver.c (handle_sock_requests): Likewise.
1996-10-07.Miles Bader
1996-10-07(connq_listen):Miles Bader
Unlock CQ->lock when returning EWOULDBLOCK.
1996-09-17*** empty log message ***Thomas Bushnell
1996-07-23(sock_create): Remove NEXT_SOCK_ID.Miles Bader
1996-07-23.Miles Bader
1996-07-17Initial revisionRoland 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-07-01(sock_create): Initialize ID field to MACH_PORT_NULL.Miles Bader