summaryrefslogtreecommitdiff
path: root/libguile/socket.c
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2013-01-07 17:23:26 -0500
committerMark H Weaver <mhw@netris.org>2013-01-07 17:23:26 -0500
commite0c211bb2e80605b4ae3fb121c34136f6e266b70 (patch)
tree15d7e55519b83b124c836443d6045df78e3ad2ba /libguile/socket.c
parent110ef00ba1dfae4461afdd189fed4dfec05ee137 (diff)
parent9f17d967c9b108f856776c035462e93017a6e7e2 (diff)
downloadguile-e0c211bb2e80605b4ae3fb121c34136f6e266b70.tar.gz
Merge remote-tracking branch 'origin/stable-2.0'
Conflicts: GUILE-VERSION libguile/posix.c module/ice-9/eval.scm test-suite/tests/cse.test
Diffstat (limited to 'libguile/socket.c')
-rw-r--r--libguile/socket.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libguile/socket.c b/libguile/socket.c
index 149ec005f..232041479 100644
--- a/libguile/socket.c
+++ b/libguile/socket.c
@@ -1,5 +1,5 @@
/* Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005,
- * 2006, 2007, 2009, 2011 Free Software Foundation, Inc.
+ * 2006, 2007, 2009, 2011, 2012 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -26,6 +26,7 @@
#include <errno.h>
#include <gmp.h>
+#include <verify.h>
#include "libguile/_scm.h"
#include "libguile/arrays.h"
@@ -738,6 +739,11 @@ SCM_DEFINE (scm_setsockopt, "setsockopt", 4, 0, 0,
}
#undef FUNC_NAME
+/* Our documentation hard-codes this mapping, so make sure it holds. */
+verify (SHUT_RD == 0);
+verify (SHUT_WR == 1);
+verify (SHUT_RDWR == 2);
+
SCM_DEFINE (scm_shutdown, "shutdown", 2, 0, 0,
(SCM sock, SCM how),
"Sockets can be closed simply by using @code{close-port}. The\n"