aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-04-18 16:37:49 +0000
committerUlrich Drepper <drepper@redhat.com>1999-04-18 16:37:49 +0000
commit3ee12f2b9c556bbbcf5468b8cf0c7613ca3dc68f (patch)
treedba5fef7ae1ddd0b36b459b466d2b82966888919
parentb02f501306799bd579134ffe3d74429cfb4bc7ba (diff)
downloadglibc-3ee12f2b9c556bbbcf5468b8cf0c7613ca3dc68f.zip
glibc-3ee12f2b9c556bbbcf5468b8cf0c7613ca3dc68f.tar.gz
glibc-3ee12f2b9c556bbbcf5468b8cf0c7613ca3dc68f.tar.bz2
Update.
1999-04-18 Ulrich Drepper <drepper@cygnus.com> * socket/sys/socket.h: Define SHUT_RD, SHUT_WR, and SHUT_RDWR. Fixes PR libc/1083.
-rw-r--r--ChangeLog5
-rw-r--r--socket/sys/socket.h18
2 files changed, 20 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2102f54..cb3bf38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-18 Ulrich Drepper <drepper@cygnus.com>
+
+ * socket/sys/socket.h: Define SHUT_RD, SHUT_WR, and SHUT_RDWR.
+ Fixes PR libc/1083.
+
1999-04-18 Thorsten Kukuk <kukuk@suse.de>
* sunrpc/Makefile: Remove special handling of bootparam.x,
diff --git a/socket/sys/socket.h b/socket/sys/socket.h
index 44c568b..7642e75 100644
--- a/socket/sys/socket.h
+++ b/socket/sys/socket.h
@@ -43,6 +43,18 @@ struct osockaddr
};
#endif
+/* The following constants should be used for the second parameter of
+ `shutdown'. */
+enum
+{
+ SHUT_RD = 0, /* No more receptions. */
+#define SHUT_RD SHUT_RD
+ SHUT_WR, /* No more transmissions. */
+#define SHUT_WR SHUT_WR
+ SHUT_RDWR /* No more receptions or transmissions. */
+#define SHUT_RDWR SHUT_RDWR
+};
+
/* This is the type we use for generic socket address arguments.
With GCC 2.7 and later, the funky union causes redeclarations or
@@ -178,9 +190,9 @@ extern int accept __P ((int __fd, __SOCKADDR_ARG __addr,
/* Shut down all or part of the connection open on socket FD.
HOW determines what to shut down:
- 0 = No more receptions;
- 1 = No more transmissions;
- 2 = No more receptions or transmissions.
+ SHUT_RD = No more receptions;
+ SHUT_WR = No more transmissions;
+ SHUT_RDWR = No more receptions or transmissions.
Returns 0 on success, -1 for errors. */
extern int shutdown __P ((int __fd, int __how));