ndbm.h (1540) | ndbm.h (14352) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Margo Seltzer. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 35 unchanged lines hidden (view full) --- 44/* Map dbm interface onto db(3). */ 45#define DBM_RDONLY O_RDONLY 46 47/* Flags to dbm_store(). */ 48#define DBM_INSERT 0 49#define DBM_REPLACE 1 50 51/* | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Margo Seltzer. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 35 unchanged lines hidden (view full) --- 44/* Map dbm interface onto db(3). */ 45#define DBM_RDONLY O_RDONLY 46 47/* Flags to dbm_store(). */ 48#define DBM_INSERT 0 49#define DBM_REPLACE 1 50 51/* |
52 * The db(3) support for ndbm(3) always appends this suffix to the | 52 * The db(3) support for ndbm always appends this suffix to the |
53 * file name to avoid overwriting the user's original database. 54 */ 55#define DBM_SUFFIX ".db" 56 57typedef struct { 58 char *dptr; 59 int dsize; 60} datum; --- 17 unchanged lines hidden --- | 53 * file name to avoid overwriting the user's original database. 54 */ 55#define DBM_SUFFIX ".db" 56 57typedef struct { 58 char *dptr; 59 int dsize; 60} datum; --- 17 unchanged lines hidden --- |