5 * Revision 1.5 1995/05/01 16:27:29 adam
6 * Various improvements. Close-on-exec and close on failure on either
9 * Revision 1.4 1995/04/21 16:38:08 adam
10 * Added more debugging logs.
12 * Revision 1.3 1995/04/20 15:12:46 adam
15 * Revision 1.2 1995/04/19 16:02:06 adam
16 * Some hacks to get the FIFO communication work!! Isn't reliable.
18 * Revision 1.1 1995/03/27 08:25:00 adam
19 * New module gip: Gateway IPc module.
20 * New module gw-db: Gateway hash-db module (user information table).
34 GIP gips_initialize (const char *name)
36 return gip_initialize (name);
39 int gips_destroy (GIP gip)
41 return gip_destroy (gip);
44 int gips_open (GIP gip, const char *client)
46 gw_log (GW_LOG_DEBUG, "gips", "open readonly of %s", gip->name);
47 gip->rfd = open (gip->name, O_RDONLY);
48 gw_log (GW_LOG_DEBUG, "gips", "got rfd %d", gip->rfd);
49 gw_log (GW_LOG_DEBUG, "gips", "open writeonly of %s", client);
50 gip->wfd = open (client, O_WRONLY);
51 gw_log (GW_LOG_DEBUG, "gips", "got wfd %d", gip->wfd);
67 fcntl (gip->wfd, F_SETFD, FD_CLOEXEC);
68 fcntl (gip->rfd, F_SETFD, FD_CLOEXEC);
72 int gips_close (GIP gip)