-/* $OpenBSD: kvm_file2.c,v 1.53 2018/01/02 06:38:45 guenther Exp $ */
+/* $OpenBSD: kvm_file2.c,v 1.54 2018/09/07 07:24:05 yasuoka Exp $ */
/*
* Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com>
int nfiles;
nl[0].n_name = "_filehead";
- nl[1].n_name = "_nfiles";
+ nl[1].n_name = "_numfiles";
nl[2].n_name = 0;
if (kvm_nlist(kd, nl) != 0) {
int i, nfiles;
nl[0].n_name = "_filehead";
- nl[1].n_name = "_nfiles";
+ nl[1].n_name = "_numfiles";
nl[2].n_name = "_allprocess";
nl[3].n_name = 0;
-/* $OpenBSD: pstat.c,v 1.118 2018/08/03 14:39:55 deraadt Exp $ */
+/* $OpenBSD: pstat.c,v 1.119 2018/09/07 07:24:05 yasuoka Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
struct nlist vnodenl[] = {
#define FNL_NFILE 0 /* sysctl */
- {"_nfiles"},
+ {"_numfiles"},
#define FNL_MAXFILE 1 /* sysctl */
{"_maxfiles"},
#define TTY_NTTY 2 /* sysctl */
ttymodeprep();
}
- if (unveil(_PATH_DEVDB, "r") == -1)
- err(1, "unveil");
+// if (unveil(_PATH_DEVDB, "r") == -1)
+// err(1, "unveil");
if (pledge("stdio rpath vminfo", NULL) == -1)
err(1, "pledge");