Print this page
remove support for non-ANSI compilation
@@ -18,10 +18,12 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 1989 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
@@ -37,12 +39,10 @@
*/
#ifndef _NDBM_H
#define _NDBM_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/feature_tests.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
@@ -88,31 +88,19 @@
char *dptr;
long dsize;
} datum;
#endif
-#ifdef __STDC__
DBM *dbm_open(const char *, int, mode_t);
void dbm_close(DBM *);
datum dbm_fetch(DBM *, datum);
datum dbm_firstkey(DBM *);
datum dbm_nextkey(DBM *);
int dbm_delete(DBM *, datum);
int dbm_store(DBM *, datum, datum, int);
int dbm_clearerr(DBM *);
int dbm_error(DBM *);
-#else
-DBM *dbm_open();
-void dbm_close();
-datum dbm_fetch();
-datum dbm_firstkey();
-datum dbm_nextkey();
-int dbm_delete();
-int dbm_store();
-int dbm_clearerr();
-int dbm_error();
-#endif
#define _DBM_RDONLY 0x1 /* data base open read-only */
#define _DBM_IOERR 0x2 /* data base I/O error */
#define dbm_rdonly(__db) ((__db)->dbm_flags & _DBM_RDONLY)