diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:54:44 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:54:44 -0400 |
| commit | a9157ce950dfe2fc30795d43b9d79b9d1bffc48b (patch) | |
| tree | 9df484304b560466d145e662c1c254ff0e9ae0ba /static/openbsd/man3/fuse_daemonize.3 | |
| parent | 160aa82b2d39c46ad33723d7d909cb4972efbb03 (diff) | |
docs: Added All OpenBSD Manuals
Diffstat (limited to 'static/openbsd/man3/fuse_daemonize.3')
| -rw-r--r-- | static/openbsd/man3/fuse_daemonize.3 | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/static/openbsd/man3/fuse_daemonize.3 b/static/openbsd/man3/fuse_daemonize.3 new file mode 100644 index 00000000..c223d29b --- /dev/null +++ b/static/openbsd/man3/fuse_daemonize.3 @@ -0,0 +1,62 @@ +.\" $OpenBSD: fuse_daemonize.3,v 1.6 2025/09/23 09:28:28 schwarze Exp $ +.\" +.\" Copyright (c) 2018 Helg Bredow <helg@openbsd.org> +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd $Mdocdate: September 23 2025 $ +.Dt FUSE_DAEMONIZE 3 +.Os +.Sh NAME +.Nm fuse_daemonize +.Nd run in the background +.Sh SYNOPSIS +.Lb libfuse +.In fuse.h +.Ft int +.Fn fuse_daemonize "int foreground" +.Sh DESCRIPTION +If +.Fa foreground +is 0, +.Fn fuse_daemonize +detaches from the controlling terminal and runs in the background as a +system daemon. +Otherwise, the process continues to run in the foreground. +.Pp +The current working directory is changed to the root directory +.Pq Pa / . +Standard input, standard output, and standard error are redirected to +.Pa /dev/null . +.Sh RETURN VALUES +Upon success, +.Fn fuse_daemonize +returns 0; otherwise -1 is returned. +.Sh ERRORS +.Fn fuse_daemonize +can fail for the same reasons as +.Xr daemon 3 . +.Sh SEE ALSO +.Xr daemon 3 , +.Xr fuse_parse_cmdline 3 +.Sh STANDARDS +The +.Fn fuse_daemonize +function conforms to FUSE 2.6. +.Sh HISTORY +The +.Fn fuse_daemonize +function first appeared in +.Ox 5.4 . +.Sh AUTHORS +.An Sylvestre Gallon Aq Mt ccna.syl@gmail.com |
