package
0.0.0-20241102221056-eb2fa4d51d96
Repository: https://github.com/g0rbe/gmod.git
Documentation: pkg.go.dev
# Functions
ErrnoFromSyscallErrno converts a syscall.Errno to *Errno.
FcntlCheckfl returns whether the flag is set for fd.
FcntlGetfl returns the file access mode and the file status flags.
No description provided by the author
No description provided by the author
FileContains reports whether substr is in path file.
FileContainsLine reports whether line is in path file.
FileCountLines returns the number lines in file.
FileModeClear clears m bit in mode.
FileModeGetPath returns the mode of the file in path.
FileModeIsBlk returns whether the file is a block special file (a device like a disk).
FileModeIsChr returns whether the file is a character special file (a device like a terminal).
FileModeIsFifo returns whether the file is a FIFO special file, or a pipe.
FileModeIsLnk returns whether the file is a symbolic link.
FileModeIsReg returns whether the file is a regular file.
FileModeIsSet check whether m bit is set in mode.
FileModeIsSetPath returns whether mode m of file is set in path.
FileModeIsSock returns whether the file is a socket.
FileModeSet sets m bit in mode.
FileModeSetPath sets the mode bit m for file in path.
FileModeClear clears m bit in mode.
FileModeUnsetPath unsets the mode bit m for file in path.
FlockGetRead returns whether read lock (F_RDLCK) could be placed on fd.
FlockGetRead returns whether write lock (F_WRLCK) could be placed on fd.
FlockSetRead acquire the advisory record lock for read on fd.
FlockSetReadWait acquire the advisory record lock for read on fd.
FlockSetWrite acquire the advisory record lock for write on fd.
FlockSetWriteWait acquire the advisory record lock for write on fd.
FlockUnlock release the advisory record lock on fd.
FlockUnlockWait release the advisory record lock on fd.
Fstat returns information about a file specified by file.
GetFileGroup returns the user.Group struct of file.
GetFileOwner returns the owner user.User struct of file.
IsBlkPath returns whether the file in path is a block special file (a device like a disk).
IsChrPath returns whether the file in path is a character special file (a device like a terminal).
FileModeIsDir returns whether the file is a directory.
IsDirPath returns whether the file in path is a directory.
IsFifoPath returns whether the file in path is a FIFO special file, or a pipe.
IsLnkPath returns whether the file in path is a symbolic link.
IsPathExists returns whether path is exists.
IsRegPath returns whether the file in path is a regular file.
IsSockPath returns whether the file in path is a socket.
No description provided by the author
No description provided by the author
LookupUser search for user with username username.
LookupUserID search for user with ID uid.
Lstat returns information about a file specified by path.
NewErrno returns a new *Errno from code n.
No description provided by the author
CheckPath returns true if the stored PID in path is running.
PIDCreate creates the pid file in path with mode perm (before umask).
PIDRead returns the stored pid in path.
PIDRemove deletes the pid file in path.
No description provided by the author
Shred overwrites file in path for n times.
ShredLock apply a nonblocking write lock with FlockWrite and overwrites file in path for n times.
ShredLock apply a blocking write lock with FlockWriteWait and overwrites file in path for n times.
Stat returns information about a file specified by path.
Truncate overwrites the file with shred for ShredIterations times and truncates to 0.
TruncatePath overwrites the file at path with shred for ShredIterations times and truncates to 0.
Write writes data to the file in path.
WriteSync writes and syncronise data to the file in path.
# Constants
append data to the file when writing.
create a new file if none exists.
used with O_CREATE, file must not exist.
open the file read-only.
open the file read-write.
open for synchronous I/O.
truncate regular writable file when opened.
open the file write-only.
No description provided by the author
This is the file type constant of a block-oriented device file.
This is the file type constant of a character-oriented device file.
This is the file type constant of a directory file.
This is the file type constant of a FIFO or pipe.
This is the file type constant of a symbolic link.
This is a bit mask used to extract the file type code from a mode value.
This is the file type constant of a regular file.
This is the file type constant of a socket.
Read permission bit for the group owner of the file.
Read permission bit for other users.
Read permission bit for the owner of the file.
This is equivalent to (S_IRGRP | S_IWGRP | S_IXGRP).
This is equivalent to (S_IROTH | S_IWOTH | S_IXOTH).
This is equivalent to (S_IRUSR | S_IWUSR | S_IXUSR).
This is the set-group-ID on execute bit.
This is the set-user-ID on execute bit.
This is the sticky bit.
Write permission bit for the group owner of the file.
Write permission bit for other users.
Write permission bit for the owner of the file.
Execute or search permission bit for the group owner of the file.
Execute or search permission bit for other users.
Execute (for ordinary files) or search (for directories) permission bit for the owner of the file.
seek relative to the current offset.
seek relative to the end.
seek relative to the origin of the file.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EDEADLK.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Errno table.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EAGAIN.
No description provided by the author
No description provided by the author
Return details about the current lock.
Place a read lock on a file with FcntlFlock.
Acquire or release a lock.
As for F_SETLK, but if a conflicting lock is held on the file, then wait for that lock to be released.
Release the lock on a file with FcntlFlock.
Place a write lock on a file with FcntlFlock.
Default iteration number for Shred().