use puffs_daemon() instead of daemon()
This commit is contained in:
parent
43d2148e33
commit
4462e9454f
|
@ -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.
|
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -255,8 +255,8 @@ main(int argc, char *argv[])
|
||||||
puffs_setmaxreqlen(pu, maxreqsize);
|
puffs_setmaxreqlen(pu, maxreqsize);
|
||||||
|
|
||||||
if (detach)
|
if (detach)
|
||||||
if (daemon(1, 1) == -1)
|
if (puffs_daemon(pu, 1, 1) == -1)
|
||||||
err(1, "daemon");
|
err(1, "puffs_daemon");
|
||||||
|
|
||||||
if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1)
|
if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1)
|
||||||
err(1, "mount");
|
err(1, "mount");
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -213,8 +213,8 @@ main(int argc, char *argv[])
|
||||||
puffs_set_pathtransform(pu, icpathxform);
|
puffs_set_pathtransform(pu, icpathxform);
|
||||||
|
|
||||||
if (detach)
|
if (detach)
|
||||||
if (daemon(1, 1) == -1)
|
if (puffs_daemon(pu, 1, 1) == -1)
|
||||||
err(1, "daemon");
|
err(1, "puffs_daemon");
|
||||||
|
|
||||||
if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1)
|
if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1)
|
||||||
err(1, "puffs_mount");
|
err(1, "puffs_mount");
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -112,8 +112,8 @@ main(int argc, char *argv[])
|
||||||
puffs_stat2vattr(&pn_root->pn_va, &sb);
|
puffs_stat2vattr(&pn_root->pn_va, &sb);
|
||||||
|
|
||||||
if (detach)
|
if (detach)
|
||||||
if (daemon(1, 1) == -1)
|
if (puffs_daemon(pu, 1, 1) == -1)
|
||||||
err(1, "daemon");
|
err(1, "puffs_daemon");
|
||||||
|
|
||||||
if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1)
|
if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1)
|
||||||
err(1, "puffs_mount");
|
err(1, "puffs_mount");
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -177,8 +177,8 @@ main(int argc, char *argv[])
|
||||||
tbl[i + 'A'] = 'A' + ((i + 13) % 26);
|
tbl[i + 'A'] = 'A' + ((i + 13) % 26);
|
||||||
|
|
||||||
if (detach)
|
if (detach)
|
||||||
if (daemon(1, 1) == -1)
|
if (puffs_daemon(pu, 1, 1) == -1)
|
||||||
err(1, "daemon");
|
err(1, "puffs_daemon");
|
||||||
|
|
||||||
if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1)
|
if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1)
|
||||||
err(1, "puffs_mount");
|
err(1, "puffs_mount");
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#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 */
|
#endif /* !lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -216,8 +216,8 @@ main(int argc, char *argv[])
|
||||||
err(1, "puffs_framebuf_addfd");
|
err(1, "puffs_framebuf_addfd");
|
||||||
|
|
||||||
if (detach)
|
if (detach)
|
||||||
if (daemon(1, 1) == -1)
|
if (puffs_daemon(pu, 1, 1) == -1)
|
||||||
err(1, "daemon");
|
err(1, "puffs_daemon");
|
||||||
|
|
||||||
if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1)
|
if (puffs_mount(pu, argv[1], mntflags, pn_root) == -1)
|
||||||
err(1, "puffs_mount");
|
err(1, "puffs_mount");
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#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 */
|
#endif /* !lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -448,8 +448,8 @@ main(int argc, char *argv[])
|
||||||
puffs_framev_init(pu, portal_frame_rf, portal_frame_wf, NULL,NULL,NULL);
|
puffs_framev_init(pu, portal_frame_rf, portal_frame_wf, NULL,NULL,NULL);
|
||||||
|
|
||||||
if (detach)
|
if (detach)
|
||||||
if (daemon(1, 1) == -1)
|
if (puffs_daemon(pu, 1, 1) == -1)
|
||||||
err(1, "daemon");
|
err(1, "puffs_daemon");
|
||||||
|
|
||||||
if (puffs_mount(pu, argv[1], mntflags, PORTAL_ROOT) == -1)
|
if (puffs_mount(pu, argv[1], mntflags, PORTAL_ROOT) == -1)
|
||||||
err(1, "mount");
|
err(1, "mount");
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#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 */
|
#endif /* !lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -236,8 +236,8 @@ main(int argc, char *argv[])
|
||||||
err(1, "framebuf addfd");
|
err(1, "framebuf addfd");
|
||||||
|
|
||||||
if (detach)
|
if (detach)
|
||||||
if (daemon(1, 1) == -1)
|
if (puffs_daemon(pu, 1, 1) == -1)
|
||||||
err(1, "daemon");
|
err(1, "puffs_daemon");
|
||||||
|
|
||||||
if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1)
|
if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1)
|
||||||
err(1, "puffs_mount");
|
err(1, "puffs_mount");
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#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 */
|
#endif /* !lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -285,8 +285,8 @@ main(int argc, char *argv[])
|
||||||
errx(1, "domount");
|
errx(1, "domount");
|
||||||
|
|
||||||
if (detach)
|
if (detach)
|
||||||
if (daemon(1, 1) == -1)
|
if (puffs_daemon(pu, 1, 1) == -1)
|
||||||
err(1, "daemon");
|
err(1, "puffs_daemon");
|
||||||
|
|
||||||
if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1)
|
if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1)
|
||||||
err(1, "puffs_mount");
|
err(1, "puffs_mount");
|
||||||
|
|
Loading…
Reference in New Issue