GRAYBYTE WORDPRESS FILE MANAGER3932

Server IP : 198.54.121.189 / Your IP : 216.73.216.34
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/include/sys/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/include/sys//psx_syscall.h
/*
 * Copyright (c) 2019 Andrew G. Morgan <morgan@kernel.org>
 *
 * This header, and the -lpsx library, provide a number of things to
 * support POSIX semantics for syscalls associated with the pthread
 * library. Linking this code is tricky and is done as follows:
 *
 *     ld ... -lpsx -lpthread --wrap=pthread_create
 * or, gcc ... -lpsx -lpthread -Wl,-wrap,pthread_create
 *
 * glibc provides a subset of this functionality natively through the
 * nptl:setxid mechanism and could implement psx_syscall() directly
 * using that style of functionality but, as of 2019-11-30, the setxid
 * mechanism is limited to 9 specific set*() syscalls that do not
 * support the syscall6 API (needed for prctl functions and the ambient
 * capabilities set for example).
 */

#ifndef _SYS_PSX_SYSCALL_H
#define _SYS_PSX_SYSCALL_H

#ifdef __cplusplus
extern "C" {
#endif

#include <pthread.h>

/*
 * psx_syscall performs the specified syscall on all psx registered
 * threads. The mechanism by which this occurs is much less efficient
 * than a standard system call on Linux, so it should only be used
 * when POSIX semantics are required to change process relevant
 * security state.
 *
 * Glibc has native support for POSIX semantics on setgroups() and the
 * 8 set*[gu]id() functions. So, there is no need to use psx_syscall()
 * for these calls. This call exists for all the other system calls
 * that need to maintain parity on all pthreads of a program.
 *
 * Some macrology is used to allow the caller to provide only as many
 * arguments as needed, thus psx_syscall() cannot be used as a
 * function pointer. For those situations, we define psx_syscall3()
 * and psx_syscall6().
 */
#define psx_syscall(syscall_nr, ...) \
    __psx_syscall(syscall_nr, __VA_ARGS__, (long int) 6, (long int) 5, \
		  (long int) 4, (long int) 3, (long int) 2, \
		  (long int) 1, (long int) 0)
long int __psx_syscall(long int syscall_nr, ...);
long int psx_syscall3(long int syscall_nr,
		      long int arg1, long int arg2, long int arg3);
long int psx_syscall6(long int syscall_nr,
		      long int arg1, long int arg2, long int arg3,
		      long int arg4, long int arg5, long int arg6);

/*
 * This function should be used by systems to obtain pointers to the
 * two syscall functions provided by the PSX library. A linkage trick
 * is to define this function as weak in a library that can optionally
 * use libpsx and then, should the caller link -lpsx, that library can
 * implicitly use these POSIX semantics syscalls. See libcap for an
 * example of this useage.
 */
void psx_load_syscalls(long int (**syscall_fn)(long int,
					       long int, long int, long int),
		       long int (**syscall6_fn)(long int,
						long int, long int, long int,
						long int, long int, long int));

#ifdef __cplusplus
}
#endif

#endif /* _SYS_PSX_SYSCALL_H */

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 24 2025 08:30:34
root / root
0755
acct.h
3.219 KB
June 09 2025 20:25:26
root / root
0644
auxv.h
1.229 KB
June 09 2025 20:25:26
root / root
0644
bitypes.h
0.084 KB
June 09 2025 20:25:39
root / root
0644
capability.h
7.063 KB
January 10 2024 14:34:46
root / root
0644
cdefs.h
20.197 KB
June 09 2025 20:25:26
root / root
0644
debugreg.h
3.491 KB
June 09 2025 20:25:26
root / root
0644
dir.h
0.899 KB
June 09 2025 20:25:26
root / root
0644
elf.h
0.999 KB
June 09 2025 20:25:26
root / root
0644
epoll.h
4.307 KB
June 09 2025 20:25:26
root / root
0644
errno.h
0.019 KB
June 09 2025 20:25:24
root / root
0644
eventfd.h
1.366 KB
June 09 2025 20:25:26
root / root
0644
fanotify.h
1.261 KB
June 09 2025 20:25:26
root / root
0644
fcntl.h
0.019 KB
June 09 2025 20:25:26
root / root
0644
file.h
1.635 KB
June 09 2025 20:25:26
root / root
0644
fsuid.h
1.159 KB
June 09 2025 20:25:26
root / root
0644
gmon.h
6.084 KB
June 09 2025 20:25:26
root / root
0644
gmon_out.h
2.573 KB
June 09 2025 20:25:26
root / root
0644
inotify.h
3.747 KB
June 09 2025 20:25:26
root / root
0644
io.h
4.966 KB
June 09 2025 20:25:26
root / root
0644
ioctl.h
1.698 KB
June 09 2025 20:25:26
root / root
0644
ipc.h
1.427 KB
June 09 2025 20:25:26
root / root
0644
kd.h
1.085 KB
June 09 2025 20:25:26
root / root
0644
klog.h
1.175 KB
June 09 2025 20:25:26
root / root
0644
mman.h
5.421 KB
June 09 2025 20:25:26
root / root
0644
mount.h
5.479 KB
June 09 2025 20:25:26
root / root
0644
msg.h
2.31 KB
June 09 2025 20:25:26
root / root
0644
mtio.h
10.9 KB
June 09 2025 20:25:26
root / root
0644
param.h
3.074 KB
June 09 2025 20:25:26
root / root
0644
pci.h
0.9 KB
June 09 2025 20:25:26
root / root
0644
perm.h
1.1 KB
June 09 2025 20:25:26
root / root
0644
personality.h
2.658 KB
June 09 2025 20:25:26
root / root
0644
poll.h
2.489 KB
June 09 2025 20:25:26
root / root
0644
prctl.h
1.033 KB
June 09 2025 20:25:26
root / root
0644
procfs.h
4.868 KB
June 09 2025 20:25:38
root / root
0644
profil.h
1.912 KB
June 09 2025 20:25:26
root / root
0644
psx_syscall.h
2.767 KB
January 10 2024 14:34:46
root / root
0644
ptrace.h
5.848 KB
June 09 2025 20:25:26
root / root
0644
queue.h
19.081 KB
June 09 2025 20:25:26
root / root
0644
quota.h
5.051 KB
June 09 2025 20:25:26
root / root
0644
random.h
1.409 KB
June 09 2025 20:25:24
root / root
0644
raw.h
1.153 KB
June 09 2025 20:25:26
root / root
0644
reboot.h
1.594 KB
June 09 2025 20:25:26
root / root
0644
reg.h
1.783 KB
June 09 2025 20:25:26
root / root
0644
resource.h
3.56 KB
June 09 2025 20:25:26
root / root
0644
sdt-config.h
0.27 KB
October 14 2023 13:06:47
root / root
0644
sdt.h
21.638 KB
October 14 2023 13:06:47
root / root
0644
select.h
4.043 KB
June 09 2025 20:25:26
root / root
0644
sem.h
1.988 KB
June 09 2025 20:25:26
root / root
0644
sendfile.h
1.763 KB
June 09 2025 20:25:26
root / root
0644
shm.h
1.829 KB
June 09 2025 20:25:26
root / root
0644
signal.h
0.02 KB
June 09 2025 20:25:24
root / root
0644
signalfd.h
1.562 KB
June 09 2025 20:25:26
root / root
0644
socket.h
9.964 KB
June 09 2025 20:25:26
root / root
0644
socketvar.h
0.138 KB
June 09 2025 20:25:26
root / root
0644
soundcard.h
0.028 KB
June 09 2025 20:25:26
root / root
0644
stat.h
15.855 KB
June 09 2025 20:25:26
root / root
0644
statfs.h
2.044 KB
June 09 2025 20:25:26
root / root
0644
statvfs.h
2.753 KB
June 09 2025 20:25:26
root / root
0644
swap.h
1.555 KB
June 09 2025 20:25:26
root / root
0644
syscall.h
1.304 KB
June 09 2025 20:25:26
root / root
0644
sysctl.h
1.957 KB
June 09 2025 20:25:26
root / root
0644
sysinfo.h
1.481 KB
June 09 2025 20:25:26
root / root
0644
syslog.h
7.521 KB
June 09 2025 20:25:26
root / root
0644
sysmacros.h
2.053 KB
June 09 2025 20:25:26
root / root
0644
termios.h
0.072 KB
June 09 2025 20:25:26
root / root
0644
time.h
6.5 KB
June 09 2025 20:25:25
root / root
0644
timeb.h
1.344 KB
June 09 2025 20:25:25
root / root
0644
timerfd.h
1.829 KB
June 09 2025 20:25:26
root / root
0644
times.h
1.559 KB
June 09 2025 20:25:25
root / root
0644
timex.h
2.153 KB
June 09 2025 20:25:25
root / root
0644
ttychars.h
2.44 KB
June 09 2025 20:25:26
root / root
0644
ttydefaults.h
3.484 KB
June 09 2025 20:25:26
root / root
0644
types.h
5.578 KB
June 09 2025 20:25:25
root / root
0644
ucontext.h
5.704 KB
June 09 2025 20:25:24
root / root
0644
uio.h
6.132 KB
June 09 2025 20:25:26
root / root
0644
un.h
1.418 KB
June 09 2025 20:25:26
root / root
0644
unistd.h
0.02 KB
June 09 2025 20:25:25
root / root
0644
user.h
5.085 KB
June 09 2025 20:25:26
root / root
0644
utsname.h
2.422 KB
June 09 2025 20:25:25
root / root
0644
vfs.h
0.157 KB
June 09 2025 20:25:26
root / root
0644
vlimit.h
1.835 KB
June 09 2025 20:25:26
root / root
0644
vm86.h
1.17 KB
June 09 2025 20:25:26
root / root
0644
vt.h
0.021 KB
June 09 2025 20:25:26
root / root
0644
vtimes.h
2.404 KB
June 09 2025 20:25:26
root / root
0644
wait.h
5.473 KB
June 09 2025 20:25:25
root / root
0644
xattr.h
4.174 KB
June 09 2025 20:25:26
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF