aboutsummaryrefslogtreecommitdiff
path: root/trans/ifsock.c
Commit message (Collapse)AuthorAgeFilesLines
* Unify and document the way fsids are handled in trivfs translatorsJustus Winter2016-04-281-1/+1
| | | | | | | | * doc/hurd.texi: Clarify what happens if 'trivfs_fsid' is zero. * login/utmp.c: Leave 'trivfs_fsid' at zero. * pfinet/main.c: Likewise. * trans/ifsock.c: Likewise. * trans/proxy-defpager.c: Likewise.
* trans/ifsock: convert to trivfs dynamic classes and bucketsJustus Winter2015-09-271-7/+0
| | | | | | | | | | | | | | | | | libtrivfs contains two ways of managing more than one port class and bucket. There is the old way of using a statically allocated array with explicit length, and the new way with dynamically allocated vectors. Converting all users to the new way of handling multiple classes and/or buckets, we can simplify the code in libtrivfs. In many cases, the code will be simpler and more expressive for the user. This also fixes a mild bug. The classes and buckets given to `trivfs_startup' end up in the dynamic vectors too, making the object lookup code use the more complicated code path. * trans/ifsock.c: Convert to dynamic classes and buckets.
* Fix ifsock permission checkSamuel Thibault2014-08-261-1/+1
| | | | | | | | POSIX requires write access to the socket, not read access, to be able to connect to it. * trans/ifsock.c (S_ifsock_getsockaddr): Test for O_WRITE instead of O_READ.
* trans/ifsock: fix receiver lookupJustus Winter2014-03-011-5/+4
| | | | | * trans/Makefile: Add ifsock-MIGSFLAGS. * trans/ifsock.c (S_ifsock_getsockaddr): Fix receiver lookup.
* 2006-03-25 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2006-03-251-2/+20
| | | | | | | | | [bug #15808] * ifsock.c: Include <argp.h>, <sys/cdefs.h> and <version.h>. (__XSTRING): New macro. (argp_program_version, doc, argp): New variables. (main): Call argp_parse(). Based on a patch by Ben Asselstine <benasselstine@gmail.com>.
* 2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>Neal H. Walfield2002-03-261-3/+3
| | | | | | | | | * ifsock.c (main): Use ERR, not errno. * symlink.c: Include <error.h> and <errno.h>. (main): Use err, not fprintf and exit. Use error, not perror and exit. Use err, not error. Check for MACH_PORT_NULL explicitly. Check for proper usage of symlink before checking if symlink is started as a translator.
* 2001-02-25 Roland McGrath <roland@frob.com>Roland McGrath2001-02-261-6/+7
| | | | | | | | | | | * symlink.c: Include <string.h> for decls of built-ins. * firmlink.c: Include <stdlib.h> for exit decl. * ifsock.c: Likewise. * null.c: Likewise. * magic.c: Likewise. * fifo.c: Likewise. * hello.c: Likewise. * hello-mt.c: Likewise.
* 1999-08-31 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>Roland McGrath1999-09-011-0/+1
| | | | | | | | | | * bogus-fifo.c (main): Deallocate bootstrap port after using it. * fifo.c (main): Likewise. * firmlink.c (main): Likewise. * ifsock.c (main): Likewise. * magic.c (main): Likewise. * null.c (main): Likewise. * symlink.c (main): Likewise.
* (main): Add flags argument to trivfs_startup call.Miles Bader1995-11-061-1/+1
|
* (trivfs_goaway, trivfs_modify_stat): Update arguments.Miles Bader1995-08-241-3/+2
|
* (PT_CTL, PT_NODE): Deleted macros.Michael I. Bushnell1995-06-281-43/+29
| | | | | | | | | | | | | | | | | | | (ports_cleanroutines): Deleted var. (ports_notice_idle, ports_no_live_ports, ports_no_hard_ports): Deleted functions. (control_class, node_class, port_bucket): New vars. (trivfs_protid_porttypes, trivfs_cntl_porttypes, trivfs_protid_nporttypes, trivfs_cntl_nporttypes): Deleted vars. (trivfs_protid_portclasses, trivfs_cntl_portclasses, trivfs_protid_nportclasses, trivfs_cntl_nportclasses): New vars. (main): Initialize control_class, node_class, port_bucket, trivfs-protid_portclasses, and trivfs_cntl_portclasses. (main): Use new trivfs interface. (trivfs_goaway): Likewise. (main): Use new ports interface. (S_ifsock_getsockaddr): Likewise. (demuxer): Renamed from ports_demuxer. (demuxer): Declare ifsock_server.
* Use trivfs_startup() instead of doing things manually.Miles Bader1995-04-091-22/+7
| | | | | Get rid of _libports_initialize() [it gets called automatically]. Use error() to print error messages.
* entered into RCSMichael I. Bushnell1994-08-301-1/+1
|
* Formerly ifsock.c.~2~Michael I. Bushnell1994-08-161-11/+53
|
* Initial revisionMichael I. Bushnell1994-07-191-0/+121