New functions: iso2709_a_.. for record manipulation.
[egate.git] / util / gips.c
1 /* Gateway kernel
2  * Europagate, 1995
3  *
4  * $Log: gips.c,v $
5  * Revision 1.1  1995/03/27 08:25:00  adam
6  * New module gip: Gateway IPc module.
7  * New module gw-db: Gateway hash-db module (user information table).
8  *
9  */
10
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <assert.h>
14 #include <string.h>
15 #include <unistd.h>
16 #include <fcntl.h>
17
18 #include <gip.h>
19
20 GIP gips_initialize (const char *name)
21 {
22     return gip_initialize (name);
23 }
24
25 int gips_destroy (GIP gip)
26 {
27     return gip_destroy (gip);
28 }
29
30 int gips_open (GIP gip, const char *client)
31 {
32     gip->wfd = open (client, O_WRONLY);
33     gip->rfd = open (gip->name, O_RDONLY);
34     if (gip->rfd == -1)
35         return -1;
36     if (gip->wfd == -1)
37         return -1;
38     return 0;
39 }
40
41 int gips_close (GIP gip)
42 {
43     close (gip->rfd);
44     close (gip->wfd);
45     return 0;
46 }