summaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib.h b/lib.h
index b5744cb59..b8e44d124 100644
--- a/lib.h
+++ b/lib.h
@@ -1,5 +1,6 @@
/* netio - creates socket ports via the filesystem
- Copyright (C) 2001, 02 Moritz Schulte <moritz@duesseldorf.ccc.de>
+ Copyright (C) 2001, 02 Free Software Foundation, Inc.
+ Written by Moritz Schulte.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -20,7 +21,10 @@
#include <stdint.h>
#include <hurd/socket.h>
-#define STRING_EQUAL(s1, s2) (! strcmp (s1, s2))
-
+/* Try to alloc SIZE bytes into *MEM. Return ENOMEM if malloc()
+ failed. */
error_t my_malloc (size_t size, void **mem);
+
+/* Open a port to the socket server for the protocol family number NO
+ and store it in *SOCK. Return 0 on success or an error code. */
error_t open_socket_server (int no, pf_t *sock);