1#ifndef __VSF_LINUX_SYS_FILE_H__
2#define __VSF_LINUX_SYS_FILE_H__
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
7# include "../sys/types.h"
16#if VSF_LINUX_CFG_WRAPPER == ENABLED
17#define flock VSF_LINUX_WRAPPER(flock)
20#define LOCK_SH (1 << 0)
21#define LOCK_EX (1 << 1)
22#define LOCK_UN (1 << 2)
24#if VSF_LINUX_APPLET_USE_SYS_FILE == ENABLED
30# ifndef __VSF_APPLET__
35#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_SYS_FILE_LIB__))\
36 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_SYS_FILE == ENABLED
38#ifndef VSF_LINUX_APPLET_SYS_FILE_VPLT
39# if VSF_LINUX_USE_APPLET == ENABLED
40# define VSF_LINUX_APPLET_SYS_FILE_VPLT \
41 ((vsf_linux_sys_file_vplt_t *)(VSF_LINUX_APPLET_VPLT->sys_file_vplt))
43# define VSF_LINUX_APPLET_SYS_FILE_VPLT \
44 ((vsf_linux_sys_file_vplt_t *)vsf_vplt((void *)0))
48#define VSF_LINUX_APPLET_SYS_FILE_ENTRY(__NAME) \
49 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_SYS_FILE_VPLT, __NAME)
50#define VSF_LINUX_APPLET_SYS_FILE_IMP(...) \
51 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_SYS_FILE_VPLT, __VA_ARGS__)
53VSF_LINUX_APPLET_SYS_FILE_IMP(
flock,
int,
int fd,
int operation) {
55 return VSF_LINUX_APPLET_SYS_FILE_ENTRY(
flock)(fd, operation);
60int flock(
int fd,
int operation);
#define flock
Definition file.h:17
__VSF_VPLT_DECORATOR__ vsf_linux_sys_file_vplt_t vsf_linux_sys_file_vplt
Definition vsf_linux_fs.c:3701
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(flock)
vsf_vplt_info_t info
Definition file.h:26
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165