summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/sys/socket.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* network: Move header filesSebastian Huber2017-06-071-689/+0
| | | | | | Prevent accidental use of legacy network header files. Update #2833.
* libnetworking: Import current <sys/socket.h>Christian Mauderer2016-06-281-73/+373
| | | | | Import the <sys/socket.h> from current FreeBSD. This allows to build some current software (e.g. libressl).
* libnetworking: Move RTEMS-specific socket wake-upSebastian Huber2016-06-281-15/+0
| | | | Close #2748.
* libnetworking: Hide SO_PRIVSTATEChristian Mauderer2016-06-281-1/+0
|
* sys/socket.h: Include <sys/types.h> for ssize_tJoel Sherrill2015-02-121-1/+1
| | | | closes 2245
* sys/socket.h: Add include of <sys/_types.h> for ssize_tJoel Sherrill2015-01-231-0/+1
| | | | | | | | | This was needed to make it possible to only include <sys/socket.h> for the methods in this file in compliance with the POSIX specification. This was identified by the Open Group FACE Conformance Test Suite. Close 2245.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-3/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h).Ralf Corsepius2011-03-241-1/+1
|
* 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-05-271-2/+2
| | | | | * libnetworking/sys/socket.h (struct sockwakeup): Use void* instead of caddr_t.
* Include <rtems/bsd/sys/cdefs.h> instead of <sys/cdefs.h>.Ralf Corsepius2007-05-101-1/+1
|
* Remove __P().Ralf Corsepius2007-03-181-1/+1
|
* 2006-04-13 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-04-131-1/+1
| | | | | | | | PR 949/networking * libnetworking/sys/socket.h: GNU/Linux is wrong in making MSG_DONTWAIT public. It is strictly BSD and not SUSV. See http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html for clarification.
* 2006-04-12 Lars Munch <lars@segv.dk>Joel Sherrill2006-04-121-1/+1
| | | | | PR 949/networking * libnetworking/sys/socket.h: Make MSG_DONTWAIT public as in GNU/Linux.
* Abandon AF_NS, PF_NS.Ralf Corsepius2005-05-111-2/+2
|
* Partial update from FreeBSD.Ralf Corsepius2005-05-091-3/+3
|
* Include <sys/types.h>.Ralf Corsepius2005-05-081-8/+12
| | | | Remove in_port_t. Misc. updates from FreeBSD
* Partial update from FreeBSD.Ralf Corsepius2005-05-081-4/+13
|
* Cosmetics from FreeBSD.Ralf Corsepius2005-05-081-2/+13
|
* Cosmetical update from FreeBSD.Ralf Corsepius2005-04-171-5/+5
|
* 2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-221-6/+7
| | | | | * libnetworking/sys/socket.h: Further update from FreeBSD (Add sa_family_t).
* Fix typos.Ralf Corsepius2004-04-221-2/+2
|
* 2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-221-31/+42
| | | | | | * libnetworking/sys/protosw.h: Partial update from FreeBSD. * libnetworking/sys/socket.h: Partial update from FreeBSD. * libnetworking/rtems/rtems_syscall.c: Reflect changes to socket.h.
* Use -D_KERNEL instead of -DKERNEL for greater FreeBSD compliance.Ralf Corsepius2004-04-201-3/+3
|
* Patch from Ian Lance Taylor <ian@airs.com>:Joel Sherrill1999-06-111-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The select function is not particularly efficient when dealing with a large number of sockets. The application has to build a big set of bits and pass it in. RTEMS has to look through all those bits and see what is ready. Then the application has to look through all the bits again. On the other hand, when using RTEMS, the select function is needed exactly when you have a large number of sockets, because that is when it becomes prohibitive to use a separate thread for each socket. I think it would make more sense for RTEMS to support callback functions which could be invoked when there is data available to read from a socket, or when there is space available to write to a socket. Accordingly, I implemented them. This patch adds two new SOL_SOCKET options to setsockopt and getsockopt: SO_SNDWAKEUP and SO_RCVWAKEUP. They take arguments of type struct sockwakeup: struct sockwakeup { void (*sw_pfn) __P((struct socket *, caddr_t)); caddr_t sw_arg; }; They are used to add or remove a function which will be called when something happens for the socket. Getting a callback doesn't imply that a read or write will succeed, but it does imply that it is worth trying. This adds functionality to RTEMS which is somewhat like interrupt driven socket I/O on Unix. After the patch to RTEMS, I have appended a patch to netdemos-19990407/select/test.c to test the new functionality and demonstrate one way it might be used. To run the new test instead of the select test, change doSocket to call echoServer2 instead of echoServer.
* Base filesJoel Sherrill1998-08-191-0/+356