5 * Revision 1.2 1995/03/27 12:52:18 adam
6 * A little more verbose in marc dump.
8 * Revision 1.1 1995/03/27 08:24:58 adam
9 * New module gip: Gateway IPc module.
10 * New module gw-db: Gateway hash-db module (user information table).
26 GIP gip_initialize (const char *name)
28 GIP gip = malloc (sizeof(*gip));
32 if (!(gip->name = malloc (strlen(name)+1)))
37 strcpy (gip->name, name);
38 gip->ret = mknod (gip->name, S_IFIFO|0666, 0);
43 int gip_destroy (GIP gip)
52 int gip_infileno (GIP gip)
57 int gip_errno (GIP gip)
62 int gip_read (GIP gip, char *buf, size_t count)
67 r = read (gip->rfd, buf+no, count-no);
78 int gip_write (GIP gip, const char *buf, size_t count)
83 r = write (gip->wfd, buf+no, count-no);
94 int gip_wline (GIP gip, const char *buf)
96 return gip_write (gip, buf, strlen(buf));