summaryrefslogtreecommitdiff
path: root/sysdeps/generic/socketbits.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-01-25 02:36:37 +0000
committerUlrich Drepper <drepper@redhat.com>1997-01-25 02:36:37 +0000
commit5b82669229ad4e39c6ba1467045a2d81d44b8ccc (patch)
treeae62374b844b2c46f3db610c621aed0312a7039e /sysdeps/generic/socketbits.h
parent9d187dd4ad11f857386881db032d7e71ad26f47c (diff)
update from main archive 970124cvs/libc-970125
Sat Jan 25 02:05:19 1997 Eirik Fuller <eirik@netcom.com> * sysdeps/unix/sysv/linux/alpha/ioperm.c: Rename T2_SPARSE_BASE and T2_DENSE_BASE to T2_SPARSE_MEM and T2_DENSE_MEM resp. Thu Jan 23 11:13:46 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/unix/sysv/linux/usleep.c: Normalize the time specification. Fri Jan 24 14:33:45 1997 Ulrich Drepper <drepper@cygnus.com> * sysdeps/generic/socketbits.h: Also make SOCK_* constants available as macros so that #ifdef works. * sysdeps/unix/sysv/linux/socketbits.h: Likewise. 1997-01-23 Paul Eggert <eggert@twinsun.com> * login/utmp_db.c, manual/time.texi, shlib-versions, sunrpc/rpc/svc.h, sunrpc/rpcsvc/sm_inter.x, sysdeps/generic/abort.c, sysdeps/libm-ieee754/e_sinhl.c, sysdeps/unix/sysv/linux/net/route.h, sysdeps/unix/sysv/linux/sparc/__sigtrampoline.S: Spell fixes.
Diffstat (limited to 'sysdeps/generic/socketbits.h')
-rw-r--r--sysdeps/generic/socketbits.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/sysdeps/generic/socketbits.h b/sysdeps/generic/socketbits.h
index 770f011ffb..db1a0ac7ee 100644
--- a/sysdeps/generic/socketbits.h
+++ b/sysdeps/generic/socketbits.h
@@ -1,21 +1,21 @@
/* System-specific socket constants and types. Generic/4.3 BSD version.
-Copyright (C) 1991, 92, 94, 95, 96 Free Software Foundation, Inc.
-This file is part of the GNU C Library.
+ Copyright (C) 1991, 92, 94, 95, 96, 97 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
-The GNU C Library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public License as
-published by the Free Software Foundation; either version 2 of the
-License, or (at your option) any later version.
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
-The GNU C Library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Library General Public License for more details.
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
-You should have received a copy of the GNU Library General Public
-License along with the GNU C Library; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-Cambridge, MA 02139, USA. */
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
#ifndef _SOCKETBITS_H
@@ -33,12 +33,17 @@ enum __socket_type
{
SOCK_STREAM = 1, /* Sequenced, reliable, connection-based
byte streams. */
+#define SOCK_STREAM SOCK_STREAM
SOCK_DGRAM = 2, /* Connectionless, unreliable datagrams
of fixed maximum length. */
+#define SOCK_DGRAM SOCK_DGRAM
SOCK_RAW = 3, /* Raw protocol interface. */
+#define SOCK_RAW SOCK_RAW
SOCK_RDM = 4, /* Reliably-delivered messages. */
+#define SOCK_RDM SOCK_RDM
SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
datagrams of fixed maximum length. */
+#define SOCK_SEQPACKET SOCK_SEQPACKET
};
/* Protocol families. */