sys: Rename sys/miscfd.h -> sys/memfd.h.

Let's not create new dumping grounds for miscellaneous stuff; one
header file for one purpose.
This commit is contained in:
riastradh 2023-07-29 08:46:47 +00:00
parent 1a841079ee
commit ff3504bd37
3 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_memfd.c,v 1.3 2023/07/29 08:46:27 riastradh Exp $ */
/* $NetBSD: sys_memfd.c,v 1.4 2023/07/29 08:46:47 riastradh Exp $ */
/*-
* Copyright (c) 2023 The NetBSD Foundation, Inc.
@ -30,15 +30,16 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sys_memfd.c,v 1.3 2023/07/29 08:46:27 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: sys_memfd.c,v 1.4 2023/07/29 08:46:47 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/memfd.h>
#include <sys/mman.h>
#include <sys/miscfd.h>
#include <sys/syscallargs.h>
#include <uvm/uvm_extern.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: miscfd.h,v 1.1 2023/07/10 15:49:19 christos Exp $ */
/* $NetBSD: memfd.h,v 1.1 2023/07/29 08:46:47 riastradh Exp $ */
/*-
* Copyright (c) 2023 The NetBSD Foundation, Inc.

View File

@ -1,4 +1,4 @@
/* $NetBSD: misc.c,v 1.26 2023/07/10 15:49:19 christos Exp $ */
/* $NetBSD: misc.c,v 1.27 2023/07/29 08:46:47 riastradh Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: misc.c,v 1.26 2023/07/10 15:49:19 christos Exp $");
__RCSID("$NetBSD: misc.c,v 1.27 2023/07/29 08:46:47 riastradh Exp $");
#include <stdbool.h>
#include <sys/param.h>
@ -56,7 +56,7 @@ __RCSID("$NetBSD: misc.c,v 1.26 2023/07/10 15:49:19 christos Exp $");
#undef _KERNEL
#include <sys/cprng.h>
#include <sys/vnode.h>
#include <sys/miscfd.h>
#include <sys/memfd.h>
#include <sys/mount.h>
#include <net/bpfdesc.h>