5 * Revision 1.1 1995/03/27 08:24:58 adam
6 * New module gip: Gateway IPc module.
7 * New module gw-db: Gateway hash-db module (user information table).
22 GIP gip_initialize (const char *name)
24 GIP gip = malloc (sizeof(*gip));
28 if (!(gip->name = malloc (strlen(name)+1)))
33 strcpy (gip->name, name);
34 gip->ret = mknod (gip->name, S_IFIFO|0666, 0);
39 int gip_destroy (GIP gip)
48 int gip_infileno (GIP gip)
53 int gip_errno (GIP gip)
58 int gip_read (GIP gip, char *buf, size_t count)
63 r = read (gip->rfd, buf+no, count-no);
74 int gip_write (GIP gip, const char *buf, size_t count)
79 r = write (gip->wfd, buf+no, count-no);
90 int gip_wline (GIP gip, const char *buf)
92 return gip_write (gip, buf, strlen(buf));