-/* $OpenBSD: devname.c,v 1.13 2016/07/06 04:35:12 guenther Exp $ */
+/* $OpenBSD: devname.c,v 1.14 2024/01/22 17:22:58 deraadt Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
char *name = NULL;
if (!db && !failure) {
- if (!(db = dbopen(_PATH_DEVDB, O_RDONLY, 0, DB_HASH, NULL)))
+ if (!(db = __hash_open(_PATH_DEVDB, O_RDONLY, 0, NULL, 0)))
failure = true;
}
if (!failure) {
-/* $OpenBSD: getcap.c,v 1.36 2022/05/14 05:06:32 guenther Exp $ */
+/* $OpenBSD: getcap.c,v 1.37 2024/01/22 17:22:58 deraadt Exp $ */
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
clen = snprintf(pbuf, sizeof(pbuf), "%s.db", *db_p);
if (clen >= 0 && clen < sizeof(pbuf) && usedb &&
- (capdbp = dbopen(pbuf, O_RDONLY, 0, DB_HASH, 0))) {
+ (capdbp = __hash_open(pbuf, O_RDONLY, 0, NULL, 0))) {
opened++;
retval = cdbget(capdbp, &dbrecord, name);
if (retval < 0) {
-/* $OpenBSD: ttyname.c,v 1.20 2017/04/14 15:02:51 deraadt Exp $ */
+/* $OpenBSD: ttyname.c,v 1.21 2024/01/22 17:22:58 deraadt Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
memcpy(buf, _PATH_DEV, sizeof(_PATH_DEV));
- if ((db = dbopen(_PATH_DEVDB, O_RDONLY, 0, DB_HASH, NULL))) {
+ if ((db = __hash_open(_PATH_DEVDB, O_RDONLY, 0, NULL, 0))) {
memset(&bkey, 0, sizeof(bkey));
bkey.type = S_IFCHR;
bkey.dev = sb.st_rdev;