Global Information Lookup Global Information

File descriptor information


In Unix and Unix-like computer operating systems, a file descriptor (FD, less frequently fildes) is a process-unique identifier (handle) for a file or other input/output resource, such as a pipe or network socket.

File descriptors typically have non-negative integer values, with negative values being reserved to indicate "no value" or error conditions.

File descriptors are a part of the POSIX API. Each Unix process (except perhaps daemons) should have three standard POSIX file descriptors, corresponding to the three standard streams:

Integer value Name <unistd.h> symbolic constant[1] <stdio.h> file stream[2]
0 Standard input STDIN_FILENO stdin
1 Standard output STDOUT_FILENO stdout
2 Standard error STDERR_FILENO stderr
  1. ^ The Open Group. "The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008, 2016 Edition". Retrieved 2017-09-21.
  2. ^ The Open Group. "The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008, 2016 Edition". <stdio.h>. Retrieved 2017-09-21.

and 16 Related for: File descriptor information

Request time (Page generated in 0.8417 seconds.)

File descriptor

Last Update:

computer operating systems, a file descriptor (FD, less frequently fildes) is a process-unique identifier (handle) for a file or other input/output resource...

Word Count : 1192

Media Descriptor File

Last Update:

Media Descriptor File (MDF) is a proprietary disc image file format developed for Alcohol 120%, an optical disc authoring program. Daemon Tools, CDemu...

Word Count : 275

Binary File Descriptor library

Last Update:

The Binary File Descriptor library (BFD) is the GNU Project's main mechanism for the portable manipulation of object files in a variety of formats. As...

Word Count : 650

Descriptor

Last Update:

File descriptor, an abstract key for accessing a file In chemistry: Molecular descriptor, which helps characterize a chemical compound Descriptor (chemistry)...

Word Count : 179

Everything is a file

Last Update:

number of file types. When a file is opened, a file descriptor is created, using the file path as an addressing system. The file descriptor is then a...

Word Count : 491

ISO 9660

Last Update:

The first 16 sectors of the file system are empty and reserved for other uses. The rest begins with a volume descriptor set (a header block which describes...

Word Count : 5629

Berkeley sockets

Last Update:

communication path. The Berkeley sockets API represents it as a file descriptor (file handle) in the Unix philosophy that provides a common interface...

Word Count : 3512

Device file

Last Update:

the process's standard streams. /dev/fd/n – accesses the process's file descriptor n. Additionally, BSD-specific pseudo-devices with an ioctl interface...

Word Count : 3381

File locking

Last Update:

counter-intuitive. All fcntl locks associated with a file for a given process are removed when any file descriptor for that file is closed by that process, even if a...

Word Count : 3162

Standard streams

Last Update:

The file descriptor for standard output is 1 (one); the POSIX <unistd.h> definition is STDOUT_FILENO; the corresponding C <stdio.h> variable is FILE* stdout;...

Word Count : 2487

Event loop

Last Update:

achieved using file I/O, with the target identified by a file descriptor. The select and poll system calls allow a set of file descriptors to be monitored...

Word Count : 1686

Design of the FAT file system

Last Update:

Versions of DOS before 3.2 totally or partially relied on the media descriptor byte in the BPB or the FAT ID byte in cluster 0 of the first FAT in order...

Word Count : 11972

File system

Last Update:

entries and per-process file descriptors. It provides file access, directory operations, security and protection. The virtual file system, an optional layer...

Word Count : 9808

Epoll

Last Update:

version 2.5.45 of the Linux kernel. Its function is to monitor multiple file descriptors to see whether I/O is possible on any of them. It is meant to replace...

Word Count : 635

Unix domain socket

Last Update:

as file system inodes, so two processes can communicate by opening the same socket. In addition to sending data, processes may send file descriptors across...

Word Count : 414

Thundering herd problem

Last Update:

again. The Linux kernel serializes responses for requests to a single file descriptor, so only one thread or process is woken up. For epoll() in version...

Word Count : 334

PDF Search Engine © AllGlobal.net