diff options
author | Moritz Schulte <moritz@duesseldorf.ccc.de> | 2002-04-15 23:11:59 +0000 |
---|---|---|
committer | Moritz Schulte <moritz@duesseldorf.ccc.de> | 2002-04-15 23:11:59 +0000 |
commit | 6fa433dc3d76ce6cd0a90fa744bce4f89132d830 (patch) | |
tree | 8b0d76eb82eea350078098aa9e4c79efac87d679 /lib.h |
Initial import, second try.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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); |