-/* $OpenBSD: bt_close.c,v 1.10 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: bt_close.c,v 1.11 2021/10/24 10:05:22 jsg Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
* RET_SUCCESS, RET_ERROR.
*/
int
-__bt_sync(dbp, flags)
- const DB *dbp;
- u_int flags;
+__bt_sync(const DB *dbp, u_int flags)
{
BTREE *t;
int status;
* RET_ERROR, RET_SUCCESS
*/
static int
-bt_meta(t)
- BTREE *t;
+bt_meta(BTREE *t)
{
BTMETA m;
void *p;
-/* $OpenBSD: bt_utils.c,v 1.11 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: bt_utils.c,v 1.12 2021/10/24 10:05:22 jsg Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
* Number of bytes needed to distinguish b from a.
*/
size_t
-__bt_defpfx(a, b)
- const DBT *a, *b;
+__bt_defpfx(const DBT *a, const DBT *b)
{
u_char *p1, *p2;
size_t cnt, len;
-/* $OpenBSD: ndbm.c,v 1.26 2016/05/07 21:58:06 tedu Exp $ */
+/* $OpenBSD: ndbm.c,v 1.27 2021/10/24 10:05:22 jsg Exp $ */
/*-
* Copyright (c) 1990, 1993
* NULL on failure
*/
static DBM *
-_dbm_open(file, suff, flags, mode)
- const char *file;
- const char *suff;
- int flags;
- mode_t mode;
+_dbm_open(const char *file, const char *suff, int flags, mode_t mode)
{
HASHINFO info;
char path[PATH_MAX];
* NULL on failure
*/
DBM *
-dbm_open(file, flags, mode)
- const char *file;
- int flags;
- mode_t mode;
+dbm_open(const char *file, int flags, mode_t mode)
{
return(_dbm_open(file, DBM_SUFFIX, flags, mode));
* Nothing.
*/
void
-dbm_close(db)
- DBM *db;
+dbm_close(DBM *db)
{
(void)(db->close)(db);
* NULL on failure
*/
datum
-dbm_fetch(db, key)
- DBM *db;
- datum key;
+dbm_fetch(DBM *db, datum key)
{
datum retdata;
int status;
* NULL on failure
*/
datum
-dbm_firstkey(db)
- DBM *db;
+dbm_firstkey(DBM *db)
{
int status;
datum retkey;
* NULL on failure
*/
datum
-dbm_nextkey(db)
- DBM *db;
+dbm_nextkey(DBM *db)
{
int status;
datum retkey;
* <0 on failure
*/
int
-dbm_delete(db, key)
- DBM *db;
- datum key;
+dbm_delete(DBM *db, datum key)
{
int status;
DBT dbtkey;
* 1 if DBM_INSERT and entry exists
*/
int
-dbm_store(db, key, data, flags)
- DBM *db;
- datum key, data;
- int flags;
+dbm_store(DBM *db, datum key, datum data, int flags)
{
DBT dbtkey, dbtdata;
DEF_WEAK(dbm_store);
int
-dbm_error(db)
- DBM *db;
+dbm_error(DBM *db)
{
HTAB *hp;
}
int
-dbm_clearerr(db)
- DBM *db;
+dbm_clearerr(DBM *db)
{
HTAB *hp;
}
int
-dbm_dirfno(db)
- DBM *db;
+dbm_dirfno(DBM *db)
{
return(((HTAB *)db->internal)->fp);
}
int
-dbm_rdonly(dbp)
- DBM *dbp;
+dbm_rdonly(DBM *dbp)
{
HTAB *hashp = (HTAB *)dbp->internal;
-/* $OpenBSD: base64.c,v 1.12 2021/10/22 10:22:15 tb Exp $ */
+/* $OpenBSD: base64.c,v 1.13 2021/10/24 10:05:22 jsg Exp $ */
/*
* Copyright (c) 1996 by Internet Software Consortium.
*/
int
-b64_ntop(src, srclength, target, targsize)
- unsigned char const *src;
- size_t srclength;
- char *target;
- size_t targsize;
+b64_ntop(unsigned char const *src, size_t srclength, char *target,
+ size_t targsize)
{
size_t datalength = 0;
unsigned char input[3];
*/
int
-b64_pton(src, target, targsize)
- char const *src;
- unsigned char *target;
- size_t targsize;
+b64_pton(char const *src, unsigned char *target, size_t targsize)
{
int tarindex, state, ch;
unsigned char nextbyte;
-/* $OpenBSD: fputws.c,v 1.8 2015/08/31 02:53:57 guenther Exp $ */
+/* $OpenBSD: fputws.c,v 1.9 2021/10/24 10:05:23 jsg Exp $ */
/* $NetBSD: fputws.c,v 1.1 2003/03/07 07:11:37 tshiozak Exp $ */
/*-
#include "fvwrite.h"
int
-fputws(ws, fp)
- const wchar_t * __restrict ws;
- FILE * __restrict fp;
+fputws(const wchar_t * __restrict ws, FILE * __restrict fp)
{
FLOCKFILE(fp);
_SET_ORIENTATION(fp, 1);
-/* $OpenBSD: getwchar.c,v 1.2 2015/08/31 02:53:57 guenther Exp $ */
+/* $OpenBSD: getwchar.c,v 1.3 2021/10/24 10:05:23 jsg Exp $ */
/* $NetBSD: getwchar.c,v 1.2 2003/01/18 11:29:55 thorpej Exp $ */
/*-
#undef getwchar
wint_t
-getwchar()
+getwchar(void)
{
return fgetwc(stdin);
-/* $OpenBSD: atoll.c,v 1.3 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: atoll.c,v 1.4 2021/10/24 10:05:23 jsg Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
#include <stdlib.h>
long long
-atoll(str)
- const char *str;
+atoll(const char *str)
{
return(strtoll(str, (char **)NULL, 10));
}