aboutsummaryrefslogtreecommitdiff
path: root/pflocal
Commit message (Collapse)AuthorAgeFilesLines
* Fix error values on socket creationPino Toscano2011-12-061-1/+1
| | | | | | | | | On socket creation, return the correct errno values, EPROTOTYPE and EPROTONOSUPPORT, for invalid socket types and protocols. * pfinet/socket-ops.c (S_socket_create): Correctly return EPROTOTYPE and EPROTONOSUPPORT. * pflocal/pf.c (S_socket_create): Correctly return EPROTOTYPE.
* Fix two-way transmission for socketpair(SOCK_DGRAM)Samuel Thibault2011-11-271-0/+2
| | | | | * pflocal/socket.c (S_socket_connect2): For connection-less sockets, also connect `user2' to `user1'.
* Fix source address reference accountingSamuel Thibault2011-11-271-1/+1
| | | | | | * libpipe/pipe.c (pipe_recv): If `source' is NULL but packet source exists, dereference it. * pflocal/io.c (S_io_write): Only dereference the source on errors.
* Fix pflocal.static linkSamuel Thibault2011-11-271-1/+1
| | | | * pflocal/Makefile (HURDLIBS): Add iohelp
* fix common misspellingsJonathan Neuschäfer2011-08-202-2/+2
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* Fix port transmission over pflocalManuel Menal2010-09-191-1/+1
| | | | | | * 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).
* Implement getsockopt (fd, SOL_SOCKET, SO_TYPE)Emilio Pozuelo Monfort2010-07-171-5/+44
| | | | | * pflocal/socket.c (S_socket_getopt): Add SO_TYPE support. (S_socket_setopt): Fix return value.
* Switch to the new ChangeLog style.Thomas Schwinge2009-07-111-390/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-22 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault2008-07-222-1/+6
| | | | | * socket.c (S_socket_send): Release a reader reference instead of a writer reference when the destination is given.
* fix copyright yearsSamuel Thibault2008-07-222-2/+2
|
* 2008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault2008-07-223-0/+8
| | | | | | * 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-13 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2007-11-132-6/+12
| | | | * io.c (S_io_stat): Adapt to ``struct stat'' changes.
* Revery previous change. Was intended for ams-branch, not HEAD.Neal H. Walfield2005-08-295-287/+221
|
* pflocal/Neal H. Walfield2005-08-295-221/+287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* pflocal/Neal H. Walfield2005-05-182-3/+5
| | | | | | 2005-05-17 Neal H. Walfield <neal@gnu.org> * sock.c (sock_free): Don't destroy SOCK->CONNECT_QUEUE.
* .Roland McGrath2002-06-111-0/+4
|
* 2002-06-08 Roland McGrath <roland@frob.com>Roland McGrath2002-06-111-1/+1
| | | | * io.c (S_io_identity): Use ino_t for FILENO.
* .Roland McGrath2002-05-081-0/+5
|
* 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.
* Beautify last change.Marcus Brinkmann2002-04-241-2/+2
|
* 2002-04-24 Ognyan Kulev <ogi@fmi.uni-sofia.bg>Marcus Brinkmann2002-04-242-26/+24
| | | | | | | * 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.
* .Roland McGrath2001-12-221-0/+11
|
* 2001-12-22 Roland McGrath <roland@frob.com>Roland McGrath2001-12-221-7/+9
| | | | * connq.c (connq_compress): #if 0 out unused function.
* 2001-12-22 Roland McGrath <roland@frob.com>Roland McGrath2001-12-222-11/+11
| | | | | | | | | * 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.
* .Roland McGrath2001-04-011-0/+4
|
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-04-011-3/+3
| | | | * sock.c: Include "connq.h" for connq_destroy decl.
* 2001-02-20 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-02-202-0/+6
| | | | | * connq.c: Include <assert.h>. Reported by Arkadi E. Shishlov <arkadi@it.lv>.
* 2001-02-11 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-02-124-0/+28
| | | | | | | * connq.c (connq_destroy): New function. * connq.h: Prototype connq_destroy. * sock.c (sock_free): Call connq_destroy when listen or connect queue exist.
* * pf.c (S_socket_create): Only accept S_IFCHR, S_IFSOCK andMark Kettenis2000-08-092-6/+18
| | | | S_IFIFO as `magic' protocols.
* Add `magic' protocols to specify the file type of a sockets. ThisMark Kettenis2000-08-025-11/+41
| | | | | | | | | | | | | 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.
* * Makefile (HURDLIBS): Reorder libs such that the threads libMark Kettenis2000-07-262-2/+9
| | | | | | 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.
* Reverted changes related to io_map_segment.Roland McGrath1999-09-132-8/+4
|
* 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-082-0/+12
| | | | * io.c (S_io_map_segment): New function.
* .Roland McGrath1999-07-111-0/+4
|
* 1999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-2/+3
| | | | * sock.h: Add #include <sys/mman.h>.
* 1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-112-1/+5
| | | | * pf.c (S_socket_whatis_address): Use mmap instead of vm_allocate.
* .Roland McGrath1999-07-111-0/+4
|
* 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-032-1/+5
| | | | * io.c (TRASH_IDS): Use munmap instead of vm_deallocate.
* .Roland McGrath1999-03-021-0/+5
|
* 1999-03-01 Mark Kettenis <kettenis@gnu.org>Roland McGrath1999-03-021-3/+21
| | | | | * pf.c (S_socket_whatis_address): Implement. Since we cannot tell what our adress is, return an empty string as the file name.
* Tue Feb 16 05:52:35 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-02-162-1/+13
| | | | | * 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-202-17/+23
|
* .Roland McGrath1998-07-201-7/+11
|
* 1998-07-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-07-201-4/+6
| | | | * pflocal.c (main): Fix return type to int, and use return.
* Wed Aug 20 14:06:11 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-08-203-5/+10
| | | | | | * pflocal.c (main): New args for ports_manage_port_operations_multithread. * sserver.c (handle_sock_requests): Likewise.
* .Miles Bader1996-10-071-0/+4
|
* (connq_listen):Miles Bader1996-10-071-2/+5
| | | | Unlock CQ->lock when returning EWOULDBLOCK.
* *** empty log message ***Thomas Bushnell1996-09-172-2/+6
|
* (sock_create): Remove NEXT_SOCK_ID.Miles Bader1996-07-231-1/+0
|