Class LinuxUtils.NativeMethods
Contains native methods.
public static class LinuxUtils.NativeMethods
- Inheritance
-
LinuxUtils.NativeMethods
Fields
- RTLD_GLOBAL
Flag "RTLD_GLOBAL" used in dlopen.
- RTLD_LAZY
Flag "RTLD_LAZY" used in dlopen.
- RTLD_LOCAL
Flag "RTLD_LOCAL" used in dlopen.
- RTLD_NOW
Flag "RTLD_NOW" used in dlopen.
Methods
- GetLastError()
Returns last error description.
- close(int)
Closes the file descriptor, releasing the associated system resources.
- dlclose(nint)
Native method "dlclose", similar to win-api "FreeLibrary".
- dlerror()
Native method "dlerror". Returns last error.
- dlopen(string, int)
Native method "dlopen", similar to win-api "LoadLibrary".
- dlsym(nint, string)
Native method "dlsym", similar to win-api "GetProcAddress".
- dup2(int, int)
Duplicates a file descriptor, replacing the target file descriptor if it is already open.
- execve(string, string[], string[])
Executes a specified program, replacing the current process with the new program.
- fork()
Creates a new process by duplicating the calling process.
- getpgid(int)
Retrieves the process group ID of the specified process.
- getpgrp()
Gets process Group ID
- kill(int, int)
Sends a signal to a process or a group of processes.
- pipe(int[])
Creates a unidirectional data channel for inter-process communication.
- setpgid(int, int)
Sets process group id. Returns 0 on success.
- setsid()
Makes the process a session leader and starts a new process group.
- strerror(int)
Retrieves a pointer to the textual representation of the specified error number.