xref: /illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/fake_fio.h (revision 7655c6d53c36750b508636f48c73a2de57754e5a)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright 2024 RackTop Systems, Inc.
14  */
15 
16 #ifndef _FAKE_FS_H
17 #define	_FAKE_FS_H
18 
19 /*
20  * Fake file system layer for user-level.
21  */
22 
23 #include <sys/isa_defs.h>
24 #include <sys/file.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /*
31  * These are private to this library, used by the "ktli" shim.
32  * See fake_fio.c
33  */
34 extern file_t *file_getf(int);
35 extern void file_releasef(int);
36 int file_getfd(struct file *fp);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif /* _FAKE_FS_H */
43