From 4462e9454fe2f82dd794590cb5d17ed070e96d5c Mon Sep 17 00:00:00 2001 From: pooka Date: Fri, 16 Nov 2007 18:39:01 +0000 Subject: [PATCH] use puffs_daemon() instead of daemon() --- share/examples/puffs/dtfs/dtfs.c | 6 +++--- share/examples/puffs/icfs/icfs.c | 6 +++--- share/examples/puffs/pnullfs/pnullfs.c | 6 +++--- share/examples/puffs/rot13fs/rot13fs.c | 6 +++--- usr.sbin/puffs/mount_9p/ninepuffs.c | 8 ++++---- usr.sbin/puffs/mount_portal/puffs_portal.c | 8 ++++---- usr.sbin/puffs/mount_psshfs/psshfs.c | 8 ++++---- usr.sbin/puffs/mount_sysctlfs/sysctlfs.c | 8 ++++---- 8 files changed, 28 insertions(+), 28 deletions(-) diff --git a/share/examples/puffs/dtfs/dtfs.c b/share/examples/puffs/dtfs/dtfs.c index a9f48709086b..8c0e312b219f 100644 --- a/share/examples/puffs/dtfs/dtfs.c +++ b/share/examples/puffs/dtfs/dtfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: dtfs.c,v 1.37 2007/11/05 17:54:31 pooka Exp $ */ +/* $NetBSD: dtfs.c,v 1.38 2007/11/16 18:39:01 pooka Exp $ */ /* * Copyright (c) 2006 Antti Kantee. All Rights Reserved. @@ -255,8 +255,8 @@ main(int argc, char *argv[]) puffs_setmaxreqlen(pu, maxreqsize); if (detach) - if (daemon(1, 1) == -1) - err(1, "daemon"); + if (puffs_daemon(pu, 1, 1) == -1) + err(1, "puffs_daemon"); if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1) err(1, "mount"); diff --git a/share/examples/puffs/icfs/icfs.c b/share/examples/puffs/icfs/icfs.c index 0014480db6b3..17d5a1377659 100644 --- a/share/examples/puffs/icfs/icfs.c +++ b/share/examples/puffs/icfs/icfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: icfs.c,v 1.7 2007/11/05 17:54:31 pooka Exp $ */ +/* $NetBSD: icfs.c,v 1.8 2007/11/16 18:39:01 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -213,8 +213,8 @@ main(int argc, char *argv[]) puffs_set_pathtransform(pu, icpathxform); if (detach) - if (daemon(1, 1) == -1) - err(1, "daemon"); + if (puffs_daemon(pu, 1, 1) == -1) + err(1, "puffs_daemon"); if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1) err(1, "puffs_mount"); diff --git a/share/examples/puffs/pnullfs/pnullfs.c b/share/examples/puffs/pnullfs/pnullfs.c index 5525b629e00f..cea2c19f3cba 100644 --- a/share/examples/puffs/pnullfs/pnullfs.c +++ b/share/examples/puffs/pnullfs/pnullfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: pnullfs.c,v 1.15 2007/11/05 17:54:31 pooka Exp $ */ +/* $NetBSD: pnullfs.c,v 1.16 2007/11/16 18:39:02 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -112,8 +112,8 @@ main(int argc, char *argv[]) puffs_stat2vattr(&pn_root->pn_va, &sb); if (detach) - if (daemon(1, 1) == -1) - err(1, "daemon"); + if (puffs_daemon(pu, 1, 1) == -1) + err(1, "puffs_daemon"); if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1) err(1, "puffs_mount"); diff --git a/share/examples/puffs/rot13fs/rot13fs.c b/share/examples/puffs/rot13fs/rot13fs.c index 8fac6a8778c8..9d2507768c67 100644 --- a/share/examples/puffs/rot13fs/rot13fs.c +++ b/share/examples/puffs/rot13fs/rot13fs.c @@ -1,4 +1,4 @@ -/* $NetBSD: rot13fs.c,v 1.14 2007/11/05 17:54:31 pooka Exp $ */ +/* $NetBSD: rot13fs.c,v 1.15 2007/11/16 18:39:02 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -177,8 +177,8 @@ main(int argc, char *argv[]) tbl[i + 'A'] = 'A' + ((i + 13) % 26); if (detach) - if (daemon(1, 1) == -1) - err(1, "daemon"); + if (puffs_daemon(pu, 1, 1) == -1) + err(1, "puffs_daemon"); if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1) err(1, "puffs_mount"); diff --git a/usr.sbin/puffs/mount_9p/ninepuffs.c b/usr.sbin/puffs/mount_9p/ninepuffs.c index 0331d68dda20..7a131a87af70 100644 --- a/usr.sbin/puffs/mount_9p/ninepuffs.c +++ b/usr.sbin/puffs/mount_9p/ninepuffs.c @@ -1,4 +1,4 @@ -/* $NetBSD: ninepuffs.c,v 1.21 2007/11/06 15:09:08 pooka Exp $ */ +/* $NetBSD: ninepuffs.c,v 1.22 2007/11/16 18:39:01 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -31,7 +31,7 @@ #include #ifndef lint -__RCSID("$NetBSD: ninepuffs.c,v 1.21 2007/11/06 15:09:08 pooka Exp $"); +__RCSID("$NetBSD: ninepuffs.c,v 1.22 2007/11/16 18:39:01 pooka Exp $"); #endif /* !lint */ #include @@ -216,8 +216,8 @@ main(int argc, char *argv[]) err(1, "puffs_framebuf_addfd"); if (detach) - if (daemon(1, 1) == -1) - err(1, "daemon"); + if (puffs_daemon(pu, 1, 1) == -1) + err(1, "puffs_daemon"); if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1) err(1, "puffs_mount"); diff --git a/usr.sbin/puffs/mount_portal/puffs_portal.c b/usr.sbin/puffs/mount_portal/puffs_portal.c index b24982ea056f..bed9656441c6 100644 --- a/usr.sbin/puffs/mount_portal/puffs_portal.c +++ b/usr.sbin/puffs/mount_portal/puffs_portal.c @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_portal.c,v 1.13 2007/11/05 17:54:32 pooka Exp $ */ +/* $NetBSD: puffs_portal.c,v 1.14 2007/11/16 18:39:01 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ #include #ifndef lint -__RCSID("$NetBSD: puffs_portal.c,v 1.13 2007/11/05 17:54:32 pooka Exp $"); +__RCSID("$NetBSD: puffs_portal.c,v 1.14 2007/11/16 18:39:01 pooka Exp $"); #endif /* !lint */ #include @@ -448,8 +448,8 @@ main(int argc, char *argv[]) puffs_framev_init(pu, portal_frame_rf, portal_frame_wf, NULL,NULL,NULL); if (detach) - if (daemon(1, 1) == -1) - err(1, "daemon"); + if (puffs_daemon(pu, 1, 1) == -1) + err(1, "puffs_daemon"); if (puffs_mount(pu, argv[1], mntflags, PORTAL_ROOT) == -1) err(1, "mount"); diff --git a/usr.sbin/puffs/mount_psshfs/psshfs.c b/usr.sbin/puffs/mount_psshfs/psshfs.c index 2d9df8d37e86..a80795ac4a46 100644 --- a/usr.sbin/puffs/mount_psshfs/psshfs.c +++ b/usr.sbin/puffs/mount_psshfs/psshfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: psshfs.c,v 1.43 2007/11/11 18:06:35 pooka Exp $ */ +/* $NetBSD: psshfs.c,v 1.44 2007/11/16 18:39:01 pooka Exp $ */ /* * Copyright (c) 2006 Antti Kantee. All Rights Reserved. @@ -41,7 +41,7 @@ #include #ifndef lint -__RCSID("$NetBSD: psshfs.c,v 1.43 2007/11/11 18:06:35 pooka Exp $"); +__RCSID("$NetBSD: psshfs.c,v 1.44 2007/11/16 18:39:01 pooka Exp $"); #endif /* !lint */ #include @@ -236,8 +236,8 @@ main(int argc, char *argv[]) err(1, "framebuf addfd"); if (detach) - if (daemon(1, 1) == -1) - err(1, "daemon"); + if (puffs_daemon(pu, 1, 1) == -1) + err(1, "puffs_daemon"); if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1) err(1, "puffs_mount"); diff --git a/usr.sbin/puffs/mount_sysctlfs/sysctlfs.c b/usr.sbin/puffs/mount_sysctlfs/sysctlfs.c index 7e7ba566d3ff..224ac51fecae 100644 --- a/usr.sbin/puffs/mount_sysctlfs/sysctlfs.c +++ b/usr.sbin/puffs/mount_sysctlfs/sysctlfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysctlfs.c,v 1.5 2007/11/05 17:54:32 pooka Exp $ */ +/* $NetBSD: sysctlfs.c,v 1.6 2007/11/16 18:39:01 pooka Exp $ */ /* * Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved. @@ -33,7 +33,7 @@ #include #ifndef lint -__RCSID("$NetBSD: sysctlfs.c,v 1.5 2007/11/05 17:54:32 pooka Exp $"); +__RCSID("$NetBSD: sysctlfs.c,v 1.6 2007/11/16 18:39:01 pooka Exp $"); #endif /* !lint */ #include @@ -285,8 +285,8 @@ main(int argc, char *argv[]) errx(1, "domount"); if (detach) - if (daemon(1, 1) == -1) - err(1, "daemon"); + if (puffs_daemon(pu, 1, 1) == -1) + err(1, "puffs_daemon"); if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1) err(1, "puffs_mount");