Mono Class Library: OverviewMono.Posix.Syscall: Method Members |
The methods of Mono.Posix.Syscall are listed below. For a list of all members, see the Syscall Members list.
See Also: Inherited members from System.Object
staticaccess(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. staticalarm(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. staticchdir(string) : int Changes the current directory to 'path'. staticchmod(string, FileMode) : int Change permissions for a file or folder. staticchown(string, int, int) : int Change owner for a file or folder. staticchroot(string) : int Change root directory staticclose(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. staticclosedir(IntPtr) : int Closes the directory represented by IntPtr. IntPtr is a pointer retrieved by opendir() staticcreat(string, FileMode) : int Creates a file 'pathname' using the given file mode flags. staticdup(int) : int dup duplicates a file descriptor to the lowest unused file descriptor available. staticdup2(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. staticexit(int) : int Terminates the process that calls the function with the status 'status'. staticfork() : int fork() turns a single process into 2 identical processes, known as the parent and the child. staticgetegid() : int Get the effective group ID for the current process. staticgeteuid() : int Get the effective user ID for the current process. staticgetgid() : int Get the group ID for the current process. staticgetgroupname(int) : string Retrieve the groupname for the given GID. staticgethostname() : string Retrieves the hostname. staticGetHostName() : string Retrieves the hostname. staticgetpgrp() : int Get the process group. staticgetpid() : int Returns the unique identifier for the current process. staticgetppid() : int Returns the unique identifier for the parent process. staticgetuid() : int Get the user ID for the current process. staticgetusername(int) : string Retrieves the username for the UID in question. staticisatty(int) : bool Boolean value indicating if the file at fileDescriptor is a tty. statickill(int, int) Kill the process 'pid' with the given signal. staticlchown(string, int, int) : int Change the ownership for 'path' staticlink(string, string) : int Create a hard link from oldPath to newPath. staticlseek(int, int, int) : int Changes the read/write file offset of a file descriptor. staticlstat(string, out Stat) : int Retrieves via output paramter the file status struct for a file. staticmkdir(string, FileMode) : int Create a directory at 'path' with the given FileMode. staticnice(int) : int Change the priority of the current process by given increment. staticopen(string, OpenFlags) : int Creates/opens a file 'pathname' using the given file open flags. staticopen(string, OpenFlags, FileMode) : int Creates/opens a file 'pathname' using the given open and file mode flags. staticopendir(string) : IntPtr Opens a directory at 'path'. staticpause() : int Pause the current process. The task sleeps until a signal is received. staticread(int, void*, IntPtr) : IntPtr Reads up to count bytes into buf from fileDescriptor. staticreaddir(IntPtr) : string Read entry from a directory IntPtr as string. staticreadlink(string) : string Gets the destination of a symlink as a string. See also read() staticrename(string, string) : int Rename oldPath to newPath. staticrmdir(string) : int Removes the directory at 'path'. staticsetgid(int) : int Sets the group ID for the current process to 'gid'. staticsetpgid(int, int) : int Sets the process group ID for the current process to 'pgid'. staticsetregid(int, int) : int Sets the real and effective group ID for the current process to 'rgid' and 'egid' respectively. staticsetreuid(int, int) : int Sets the real and effective user ID for the current process to 'ruid' and 'euid' respectively. staticsetsid() : int Creates a session and sets the process group ID. staticsetuid(int) : int Sets the user ID for the current process to 'uid'. staticsignal(int, Syscall.sighandler_t) : int Register a handler for a given posix signal. staticstat(string, out Stat) : int Retrieves via output paramter the file status struct for a file. staticstrerror(int) : string Get error message string for 'errnum'. staticsymlink(string, string) : int Create a soft link from oldPath to newPath. staticsync() sync forces "dirty" (modified) filesystem buffers to be written to disk. staticumask(int) : int Sets new umask. staticunlink(string) : int Deletes a link to a file. staticwaitpid(int, WaitOptions) : int waitpid() will force a parent process to wait for a child process to stop or terminate. staticwaitpid(int, out int, WaitOptions) : int waitpid() will force a parent process to wait for a child process to stop or terminate. staticWEXITSTATUS(int) : int WIFEXITSTATUS is a method that take an argument status, of type int, as returned by waitpid(). staticWIFEXITED(int) : int WIFEXITED is a method that take an argument status, of type int, as returned by waitpid(). staticWIFSIGNALED(int) : int WIFSIGNALED is a method that take an argument status, of type int, as returned by waitpid(). staticWIFSTOPPED(int) : int WIFSTOPPED is a method that take an argument status, of type int, as returned by waitpid(). staticwrite(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'. staticWSTOPSIG(int) : int WSTOPSIG is a method that take an argument status, of type int, as returned by waitpid(). staticWTERMSIG(int) : int WTERMSIG is a method that take an argument status, of type int, as returned by waitpid().