consts

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	O_RDONLY       = 0x00000
	O_WRONLY       = 0x00001
	O_RDWR         = 0x00002
	O_CREAT        = 0x00040
	O_EXCL         = 0x00080
	O_NOCTTY       = 0x00100
	O_TRUNC        = 0x00200
	O_NONBLOCK     = 0x00800
	O_APPEND       = 0x00400
	O_SYNC         = 0x01000
	O_ASYNC        = 0x02000
	O_DIRECTORY    = 0x04000
	O_CLOEXEC      = 0x80000
	O_NOFOLLOW_ANY = 0x200000000
	O_OPEN_REPARSE = 0x400000000
	O_WRITE_ATTRS  = 0x800000000

	FILE_ATTRIBUTE_ARCHIVE       = 0x20   // 32
	FILE_ATTRIBUTE_ENCRYPTED     = 0x4000 // 16384
	FILE_ATTRIBUTE_HIDDEN        = 0x2    // 2
	FILE_ATTRIBUTE_NORMAL        = 0x80   // 128
	FILE_ATTRIBUTE_OFFLINE       = 0x1000 // 4096
	FILE_ATTRIBUTE_READONLY      = 0x1    // 1
	FILE_ATTRIBUTE_SYSTEM        = 0x4    // 4
	FILE_ATTRIBUTE_TEMPORARY     = 0x100  // 256
	FILE_FLAG_BACKUP_SEMANTICS   = 0x02000000
	FILE_FLAG_DELETE_ON_CLOSE    = 0x04000000
	FILE_FLAG_NO_BUFFERING       = 0x20000000
	FILE_FLAG_OPEN_NO_RECALL     = 0x00100000
	FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000
	FILE_FLAG_OVERLAPPED         = 0x40000000
	FILE_FLAG_POSIX_SEMANTICS    = 0x01000000
	FILE_FLAG_RANDOM_ACCESS      = 0x10000000
	FILE_FLAG_SESSION_AWARE      = 0x00800000
	FILE_FLAG_SEQUENTIAL_SCAN    = 0x08000000
	FILE_FLAG_WRITE_THROUGH      = 0x80000000

	// Redefining here to avoid a circular dependency.
	// O_FILE_FLAG_DELETE_ON_CLOSE deletes the file when closed.
	O_FILE_FLAG_DELETE_ON_CLOSE = 0x04000000
	// O_FILE_FLAG_NO_RO_ATTR skips setting a file's read-only attribute on Windows.
	O_FILE_FLAG_NO_RO_ATTR = 0x00010000
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL