Commit Graph

19 Commits

Author SHA1 Message Date
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
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.
2012-05-11 08:44:13 -05:00
Ralf Corsepius
ee613aa252 Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h). 2011-03-24 09:36:14 +00:00
Ralf Corsepius
e7583f67c6 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/socket.h (struct sockwakeup):
	Use void* instead of caddr_t.
2010-05-27 04:11:07 +00:00
Ralf Corsepius
cd9564e1cd Include <rtems/bsd/sys/cdefs.h> instead of <sys/cdefs.h>. 2007-05-10 07:29:14 +00:00
Ralf Corsepius
51cda9a4cd Remove __P(). 2007-03-18 13:31:48 +00:00
Joel Sherrill
f18ebd2ee6 2006-04-13 Joel Sherrill <joel@OARcorp.com>
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-13 13:03:29 +00:00
Joel Sherrill
0637bb3b01 2006-04-12 Lars Munch <lars@segv.dk>
PR 949/networking
	* libnetworking/sys/socket.h: Make MSG_DONTWAIT public as in GNU/Linux.
2006-04-12 20:59:21 +00:00
Ralf Corsepius
8e040322e3 Abandon AF_NS, PF_NS. 2005-05-11 03:37:48 +00:00
Ralf Corsepius
9e7678d2af Partial update from FreeBSD. 2005-05-09 13:12:45 +00:00
Ralf Corsepius
ec3e093566 Include <sys/types.h>.
Remove in_port_t. Misc. updates from FreeBSD
2005-05-08 09:18:24 +00:00
Ralf Corsepius
45717e8ed8 Partial update from FreeBSD. 2005-05-08 07:30:21 +00:00
Ralf Corsepius
cf29bcb979 Cosmetics from FreeBSD. 2005-05-08 06:40:09 +00:00
Ralf Corsepius
ef4a8d38d9 Cosmetical update from FreeBSD. 2005-04-17 07:30:47 +00:00
Ralf Corsepius
105dcfcd3b 2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/sys/socket.h: Further update from FreeBSD
	(Add sa_family_t).
2004-04-22 04:31:34 +00:00
Ralf Corsepius
8bbe9ea012 Fix typos. 2004-04-22 04:22:30 +00:00
Ralf Corsepius
caeacbccc5 2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* 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.
2004-04-22 04:04:21 +00:00
Ralf Corsepius
dc28f16d8e Use -D_KERNEL instead of -DKERNEL for greater FreeBSD compliance. 2004-04-20 12:28:19 +00:00
Joel Sherrill
a6f3cff703 Patch from Ian Lance Taylor <ian@airs.com>:
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.
1999-06-11 14:11:44 +00:00
Joel Sherrill
39e6e65a2c Base files 1998-08-19 21:32:28 +00:00