1#ifndef __VSF_LINUX_SYS_RESOURCE_H__
2#define __VSF_LINUX_SYS_RESOURCE_H__
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
26#define RLIMIT_NOFILE 7
27#define RLIMIT_MEMLOCK 8
28#define RLIMIT_LOCKS 10
29#define RLIMIT_SIGPENDING 11
30#define RLIMIT_MSGQUEUE 12
32#define RLIMIT_RTPRIO 14
33#define RLIMIT_RTTIME 15
34#define RLIM_NLIMITS 16
36#define RLIM_INFINITY (~0UL)
48static inline int getrusage(
int who,
struct rusage *usage)
59static inline int getrlimit(
int resource,
struct rlimit *rlptr)
68static inline int setrlimit(
int resource,
struct rlimit *rlptr)
77#if VSF_LINUX_APPLET_USE_SYS_RESOURCE == ENABLED
84# ifndef __VSF_APPLET__
89#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_SYS_RESOURCE_LIB__))\
90 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_SYS_RESOURCE == ENABLED
92#ifndef VSF_LINUX_APPLET_SYS_RESOURCE_VPLT
93# if VSF_LINUX_USE_APPLET == ENABLED
94# define VSF_LINUX_APPLET_SYS_RESOURCE_VPLT \
95 ((vsf_linux_sys_resource_vplt_t *)(VSF_LINUX_APPLET_VPLT->sys_resource_vplt))
97# define VSF_LINUX_APPLET_SYS_RESOURCE_VPLT \
98 ((vsf_linux_sys_resource_vplt_t *)vsf_vplt((void *)0))
102#define VSF_LINUX_APPLET_SYS_RESOURCE_ENTRY(__NAME) \
103 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_SYS_RESOURCE_VPLT, __NAME)
104#define VSF_LINUX_APPLET_SYS_RESOURCE_IMP(...) \
105 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_SYS_RESOURCE_VPLT, __VA_ARGS__)
int id_t
Definition types.h:86
#define NULL
Definition lvgl.h:26
unsigned long rlim_t
Definition resource.h:53
int setpriority(int which, id_t who, int prio)
Definition vsf_linux.c:4685
@ RUSAGE_CHILDREN
Definition resource.h:40
@ RUSAGE_SELF
Definition resource.h:39
@ RUSAGE_THREAD
Definition resource.h:41
__VSF_VPLT_DECORATOR__ vsf_linux_sys_resource_vplt_t vsf_linux_sys_resource_vplt
Definition vsf_linux.c:4843
int getpriority(int which, id_t who)
Definition vsf_linux.c:4680
rlim_t rlim_max
Definition resource.h:56
rlim_t rlim_cur
Definition resource.h:55
struct timeval ru_utime
Definition resource.h:44
struct timeval ru_stime
Definition resource.h:45
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(getpriority)
vsf_vplt_info_t info
Definition resource.h:79
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(setpriority)
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165
which(union { inherit(vsf_msgt_container_t) vsf_tgui_control_t };vsf_tgui_v_container_t) implement_ex(struct
Definition vsf_tgui_control.h:562