jcs's openbsd hax
openbsd
at jcs 59 lines 1.9 kB view raw
1.\" $OpenBSD: fuse_get_context.3,v 1.3 2025/06/10 12:55:33 schwarze Exp $ 2.\" 3.\" Copyright (c) 2018 Helg Bredow <helg@openbsd.org> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: June 10 2025 $ 18.Dt FUSE_GET_CONTEXT 3 19.Os 20.Sh NAME 21.Nm fuse_get_context 22.Nd FUSE utility routine 23.Sh SYNOPSIS 24.Lb libfuse 25.In fuse.h 26.Ft struct fuse_context * 27.Fn fuse_get_context "void" 28.Sh DESCRIPTION 29.Fn fuse_get_context 30returns a pointer to the structure 31.Fa fuse_context . 32This can be used by file systems to obtain information about the 33thread that is accessing the file system. 34The returned fuse_context is only valid during the lifetime of a FUSE 35operation. 36.Bd -literal 37struct fuse_context { 38 struct fuse * fuse; 39 uid_t uid; /* effective user id */ 40 gid_t gid; /* effective group id */ 41 pid_t pid; /* thread id */ 42 void *private_data; /* set by file system on mount */ 43 mode_t umask; /* umask of the thread */ 44}; 45.Ed 46.Sh SEE ALSO 47.Xr fuse_new 3 48.Sh STANDARDS 49The 50.Fn fuse_get_context 51function conforms to FUSE 2.6. 52.Sh HISTORY 53The 54.Fn fuse_get_context 55function 56first appeared in 57.Ox 5.4 . 58.Sh AUTHORS 59.An Sylvestre Gallon Aq Mt ccna.syl@gmail.com