diff options
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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); |