summaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorMoritz Schulte <moritz@duesseldorf.ccc.de>2002-04-15 23:11:59 +0000
committerMoritz Schulte <moritz@duesseldorf.ccc.de>2002-04-15 23:11:59 +0000
commit6fa433dc3d76ce6cd0a90fa744bce4f89132d830 (patch)
tree8b0d76eb82eea350078098aa9e4c79efac87d679 /lib.h
Initial import, second try.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib.h b/lib.h
new file mode 100644
index 000000000..b5744cb59
--- /dev/null
+++ b/lib.h
@@ -0,0 +1,26 @@
+/* netio - creates socket ports via the filesystem
+ Copyright (C) 2001, 02 Moritz Schulte <moritz@duesseldorf.ccc.de>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or * (at your option) any later version.
+
+ This program 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA */
+
+#include <errno.h>
+#include <stdint.h>
+#include <hurd/socket.h>
+
+#define STRING_EQUAL(s1, s2) (! strcmp (s1, s2))
+
+error_t my_malloc (size_t size, void **mem);
+error_t open_socket_server (int no, pf_t *sock);