Mono Class Library: Overview

Mono.Posix.Syscall: Members

The members of Mono.Posix.Syscall are listed below.

See Also: Inherited members from System.Object

Public Constructors

No need to call directly. Class only contains static functions.

Public Methods

static
access(string, AccessMode) : int
Checks whether the calling task has the necessary access rights to perform operations specified by mode on the file pathname. AccessMode is a mask consisting of one or more of the values R_OK, W_OK, X_OK and F_OK which respectively test if the taks can read, write, execute or test if the file exists.
static
alarm(uint) : uint
If the call completes successfully, the taks will receive a SIGALARM signal after a delay of seconds seconds. A delay of zero seconds simply cancel the alarm. If an previous alarm was activated when the call is made then the previous alarm is cancelled.
static
chdir(string) : int
Changes the current directory to 'path'.
static
chmod(string, FileMode) : int
Change permissions for a file or folder.
static
chown(string, int, int) : int
Change owner for a file or folder.
static
chroot(string) : int
Change root directory
static
close(int) : int
Closes the file descriptor fileDescriptor. If fileDescriptor is the last file descriptor refering to a file, then the ressources associated with that file are deallocated. The lock held on the file by the current task are released.
static
closedir(IntPtr) : int
Closes the directory represented by IntPtr. IntPtr is a pointer retrieved by opendir()
static
creat(string, FileMode) : int
Creates a file 'pathname' using the given file mode flags.
static
dup(int) : int
dup duplicates a file descriptor to the lowest unused file descriptor available.
static
dup2(int, int) : int
dup2 duplicates a file descriptor to another specified file descriptor. If the destination file descriptor is already used, it is closed. The two descriptors share all (ie. file locks, position, etc.) but the close-on-exec flag.
static
exit(int) : int
Terminates the process that calls the function with the status 'status'.
static
fork() : int
fork() turns a single process into 2 identical processes, known as the parent and the child.
static
getegid() : int
Get the effective group ID for the current process.
static
geteuid() : int
Get the effective user ID for the current process.
static
getgid() : int
Get the group ID for the current process.
static
getgroupname(int) : string
Retrieve the groupname for the given GID.
static
gethostname() : string
Retrieves the hostname.
static
GetHostName() : string
Retrieves the hostname.
static
getpgrp() : int
Get the process group.
static
getpid() : int
Returns the unique identifier for the current process.
static
getppid() : int
Returns the unique identifier for the parent process.
static
getuid() : int
Get the user ID for the current process.
static
getusername(int) : string
Retrieves the username for the UID in question.
static
isatty(int) : bool
Boolean value indicating if the file at fileDescriptor is a tty.
static
kill(int, int)
Kill the process 'pid' with the given signal.
static
lchown(string, int, int) : int
Change the ownership for 'path'
static
link(string, string) : int
Create a hard link from oldPath to newPath.
static
lseek(int, int, int) : int
Changes the read/write file offset of a file descriptor.
static
lstat(string, out Stat) : int
Retrieves via output paramter the file status struct for a file.
static
mkdir(string, FileMode) : int
Create a directory at 'path' with the given FileMode.
static
nice(int) : int
Change the priority of the current process by given increment.
static
open(string, OpenFlags) : int
Creates/opens a file 'pathname' using the given file open flags.
static
open(string, OpenFlags, FileMode) : int
Creates/opens a file 'pathname' using the given open and file mode flags.
static
opendir(string) : IntPtr
Opens a directory at 'path'.
static
pause() : int
Pause the current process. The task sleeps until a signal is received.
static
read(int, void*, IntPtr) : IntPtr
Reads up to count bytes into buf from fileDescriptor.
static
readdir(IntPtr) : string
Read entry from a directory IntPtr as string.
static
readlink(string) : string
Gets the destination of a symlink as a string. See also read()
static
rename(string, string) : int
Rename oldPath to newPath.
static
rmdir(string) : int
Removes the directory at 'path'.
static
setgid(int) : int
Sets the group ID for the current process to 'gid'.
static
setpgid(int, int) : int
Sets the process group ID for the current process to 'pgid'.
static
setregid(int, int) : int
Sets the real and effective group ID for the current process to 'rgid' and 'egid' respectively.
static
setreuid(int, int) : int
Sets the real and effective user ID for the current process to 'ruid' and 'euid' respectively.
static
setsid() : int
Creates a session and sets the process group ID.
static
setuid(int) : int
Sets the user ID for the current process to 'uid'.
static
signal(int, Syscall.sighandler_t) : int
Register a handler for a given posix signal.
static
stat(string, out Stat) : int
Retrieves via output paramter the file status struct for a file.
static
strerror(int) : string
Get error message string for 'errnum'.
static
symlink(string, string) : int
Create a soft link from oldPath to newPath.
static
sync()
sync forces "dirty" (modified) filesystem buffers to be written to disk.
static
umask(int) : int
Sets new umask.
static
unlink(string) : int
Deletes a link to a file.
static
waitpid(int, WaitOptions) : int
waitpid() will force a parent process to wait for a child process to stop or terminate.
static
waitpid(int, out int, WaitOptions) : int
waitpid() will force a parent process to wait for a child process to stop or terminate.
static
WEXITSTATUS(int) : int
WIFEXITSTATUS is a method that take an argument status, of type int, as returned by waitpid().
static
WIFEXITED(int) : int
WIFEXITED is a method that take an argument status, of type int, as returned by waitpid().
static
WIFSIGNALED(int) : int
WIFSIGNALED is a method that take an argument status, of type int, as returned by waitpid().
static
WIFSTOPPED(int) : int
WIFSTOPPED is a method that take an argument status, of type int, as returned by waitpid().
static
write(int, void*, IntPtr) : IntPtr
write writes up to 'count' bytes to the file referenced by the file descriptor 'fileDescriptor' from the buffer starting at 'buf'.
static
WSTOPSIG(int) : int
WSTOPSIG is a method that take an argument status, of type int, as returned by waitpid().
static
WTERMSIG(int) : int
WTERMSIG is a method that take an argument status, of type int, as returned by waitpid().