-/* $OpenBSD: conf.c,v 1.91 2022/09/02 20:06:55 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.92 2022/10/15 10:12:12 jsg Exp $ */
/* $NetBSD: conf.c,v 1.16 1996/10/18 21:26:57 cgd Exp $ */
/*-
* Returns true if dev is /dev/mem or /dev/kmem.
*/
int
-iskmemdev(dev)
- dev_t dev;
+iskmemdev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) < 2);
* Returns true if dev is /dev/zero.
*/
int
-iszerodev(dev)
- dev_t dev;
+iszerodev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) == 12);
}
dev_t
-getnulldev()
+getnulldev(void)
{
return makedev(mem_no, 2);
}
-/* $OpenBSD: conf.c,v 1.74 2022/09/02 20:06:55 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.75 2022/10/15 10:12:13 jsg Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
* Returns true if dev is /dev/zero.
*/
int
-iszerodev(dev)
- dev_t dev;
+iszerodev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) == 12);
}
dev_t
-getnulldev()
+getnulldev(void)
{
return makedev(mem_no, 2);
}
* Returns true if dev is /dev/mem or /dev/kmem.
*/
int
-iskmemdev(dev)
- dev_t dev;
+iskmemdev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) < 2);
}
-/* $OpenBSD: conf.c,v 1.45 2022/09/02 20:06:56 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.46 2022/10/15 10:12:13 jsg Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
* Returns true if dev is /dev/mem or /dev/kmem.
*/
int
-iskmemdev(dev)
- dev_t dev;
+iskmemdev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) < 2);
}
* Returns true if dev is /dev/zero.
*/
int
-iszerodev(dev)
- dev_t dev;
+iszerodev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) == 3);
}
-/* $OpenBSD: conf.c,v 1.32 2022/09/02 20:06:56 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.33 2022/10/15 10:12:13 jsg Exp $ */
/*
* Copyright (c) 1992, 1993
* A minimal stub routine can always return 0.
*/
int
-iskmemdev(dev)
- dev_t dev;
+iskmemdev(dev_t dev)
{
if (major(dev) == 3 && (minor(dev) == 0 || minor(dev) == 1))
* Returns true if def is /dev/zero
*/
int
-iszerodev(dev)
- dev_t dev;
+iszerodev(dev_t dev)
{
return (major(dev) == 3 && minor(dev) == 12);
}
dev_t
-getnulldev()
+getnulldev(void)
{
return(makedev(3, 2));
}
-/* $OpenBSD: conf.c,v 1.36 2022/09/02 20:06:56 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.37 2022/10/15 10:12:13 jsg Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
* Returns true if dev is /dev/mem or /dev/kmem.
*/
int
-iskmemdev(dev)
- dev_t dev;
+iskmemdev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) < 2);
* Returns true if dev is /dev/zero.
*/
int
-iszerodev(dev)
- dev_t dev;
+iszerodev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) == 12);
}
dev_t
-getnulldev()
+getnulldev(void)
{
return makedev(mem_no, 2);
}
-/* $OpenBSD: conf.c,v 1.28 2022/09/02 20:06:56 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.29 2022/10/15 10:12:13 jsg Exp $ */
/*
* Copyright (c) 1992, 1993
* A minimal stub routine can always return 0.
*/
int
-iskmemdev(dev)
- dev_t dev;
+iskmemdev(dev_t dev)
{
if (major(dev) == 3 && (minor(dev) == 0 || minor(dev) == 1))
* Returns true if def is /dev/zero
*/
int
-iszerodev(dev)
- dev_t dev;
+iszerodev(dev_t dev)
{
return (major(dev) == 3 && minor(dev) == 12);
}
dev_t
-getnulldev()
+getnulldev(void)
{
return(makedev(3, 2));
}
-/* $OpenBSD: conf.c,v 1.87 2022/09/02 20:06:56 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.88 2022/10/15 10:12:13 jsg Exp $ */
/* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
/*
* A minimal stub routine can always return 0.
*/
int
-iskmemdev(dev)
- dev_t dev;
+iskmemdev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) < 2);
}
int
-iszerodev(dev)
- dev_t dev;
+iszerodev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) == 12);
}