/[global]/global/libutil/gpathop.c
ViewVC logotype

Diff of /global/libutil/gpathop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by shigio, Tue May 10 05:17:52 2005 UTC revision 1.23 by h-iwamoto, Sun Jun 26 04:57:30 2005 UTC
# Line 52  static int created; Line 52  static int created;
52   *      i)      mode    0: read only   *      i)      mode    0: read only
53   *                      1: create   *                      1: create
54   *                      2: modify   *                      2: modify
  *      i)      flags   DBOP_POSTGRES  
55   *      r)              0: normal   *      r)              0: normal
56   *                      -1: error   *                      -1: error
57   */   */
58  int  int
59  gpath_open(dbpath, mode, flags)  gpath_open(dbpath, mode)
60          const char *dbpath;          const char *dbpath;
61          int mode;          int mode;
         int flags;  
62  {  {
63          assert(opened == 0);          assert(opened == 0);
64          /*          /*
# Line 69  gpath_open(dbpath, mode, flags) Line 67  gpath_open(dbpath, mode, flags)
67          _mode = mode;          _mode = mode;
68          if (mode == 1 && created)          if (mode == 1 && created)
69                  mode = 0;                  mode = 0;
70          dbop = dbop_open(makepath(dbpath, dbname(GPATH), NULL), mode, 0644, flags);          dbop = dbop_open(makepath(dbpath, dbname(GPATH), NULL), mode, 0644, 0);
71          if (dbop == NULL)          if (dbop == NULL)
72                  return -1;                  return -1;
73          if (mode == 1)          if (mode == 1)

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26