Age | Commit message (Collapse) | Author |
|
* 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).
|
|
* pflocal/socket.c (S_socket_getopt): Add SO_TYPE support.
(S_socket_setopt): Fix return value.
|
|
* 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.
|
|
* socket.c (S_socket_send): Release a reader reference instead of a
writer reference when the destination is given.
|
|
|
|
* pf.c (S_socket_fabricate_address): Drop one reference from addr since
we only take the send right.
* socket.c (S_socket_name): Likewise.
|
|
* io.c (S_io_stat): Adapt to ``struct stat'' changes.
|
|
|
|
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-17 Neal H. Walfield <neal@gnu.org>
* sock.c (sock_free): Don't destroy SOCK->CONNECT_QUEUE.
|
|
|
|
* io.c (S_io_identity): Use ino_t for FILENO.
|
|
|
|
* io.c (S_io_reauthenticate): unsigned -> size_t
(S_io_restrict_auth): Likewise.
|
|
|
|
* 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.
|
|
|
|
* connq.c (connq_compress): #if 0 out unused function.
|
|
* 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.
|
|
|
|
* sock.c: Include "connq.h" for connq_destroy decl.
|
|
* connq.c: Include <assert.h>. Reported by Arkadi E. Shishlov
<arkadi@it.lv>.
|
|
* connq.c (connq_destroy): New function.
* connq.h: Prototype connq_destroy.
* sock.c (sock_free): Call connq_destroy when listen or connect
queue exist.
|
|
S_IFIFO as `magic' protocols.
|
|
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.
|
|
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.
|
|
|
|
* io.c (S_io_map_segment): New function.
|
|
|
|
* sock.h: Add #include <sys/mman.h>.
|
|
* pf.c (S_socket_whatis_address): Use mmap instead of vm_allocate.
|
|
|
|
* io.c: Add #include <sys/mman.h> for munmap decl.
|
|
* io.c (TRASH_IDS): Use munmap instead of vm_deallocate.
|
|
|
|
* pf.c (S_socket_whatis_address): Implement. Since we cannot tell
what our adress is, return an empty string as the file name.
|
|
* io.c (S_io_revoke): New function. Don't attempt to implement.
(Other systems don't even permit non-file revokes.)
|
|
|
|
|
|
* pflocal.c (main): Fix return type to int, and use return.
|
|
* pflocal.c (main): New args for
ports_manage_port_operations_multithread.
* sserver.c (handle_sock_requests): Likewise.
|
|
|
|
Unlock CQ->lock when returning EWOULDBLOCK.
|
|
|
|
|
|
|
|
|
|
auth_server_authenticate for as long as we get EINTR.
|
|
auth_server_authenticate.
|
|
|