Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Always create a new database with zdbc
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9d15f48aabb45bd46357ee79f98bb9fa5c5face5
User & Date: brandon 2016-05-26 20:12:00
Context
2016-05-26
20:12
Always create a new database with zdbc * zdb.c (zdb_open): Always create a new database check-in: f717a40f6d user: brandon tags: trunk
20:12
Always create a new database with zdbc check-in: 9d15f48aab user: brandon tags: trunk
14:23
Summary: Add flymake support to Makefile.am for real check-in: ff0d6cd657 user: brandon tags: trunk
Changes

Changes to src/zdb.c.

1
2
3
4
5
6
7
8
9
10
..
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* zdb.c

   Copyright © 2013 Brandon Invergo <brandon@invergo.net>

   This file is part of zeptodb

   zeptodb is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
................................................................................
                 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, NULL);
      break;
    case ZDB_WRITER:
      database = gdbm_open (dbfile, 512, GDBM_WRITER,
                 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, NULL);
      break;
    case ZDB_CREATOR:
      database = gdbm_open (dbfile, 512, GDBM_WRCREAT,
                 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, NULL);
      break;
    }
  if (!database)
    error (EXIT_FAILURE, errno,
           "Failed to open database %s", dbfile);
  db = (void *)database;


|







 







|







1
2
3
4
5
6
7
8
9
10
..
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* zdb.c

   Copyright © 2013, 2016 Brandon Invergo <brandon@invergo.net>

   This file is part of zeptodb

   zeptodb is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
................................................................................
                 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, NULL);
      break;
    case ZDB_WRITER:
      database = gdbm_open (dbfile, 512, GDBM_WRITER,
                 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, NULL);
      break;
    case ZDB_CREATOR:
      database = gdbm_open (dbfile, 512, GDBM_NEWDB,
                 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, NULL);
      break;
    }
  if (!database)
    error (EXIT_FAILURE, errno,
           "Failed to open database %s", dbfile);
  db = (void *)database;