GO-V.ORG
As seen in

Read (system call)

In modern POSIX compliant operating systems, a program that needs to access data from a file stored in a file system uses the read system call.[src] The file is identified by a file descriptor that is normally obtained from a previous call to open.[src] This system call reads in data in bytes, the number of which is specified by the caller, from the file and stores then into a buffer supplied by the calling process.[src] The read system call takes three arguments: # The file descriptor of the file.[src] # The buffer where the read data is to be stored.[src] # The number of bytes to be read from the file.[src]

In modern POSIX compliant operating systems, a program that needs to access data from a file stored in a file system uses the read system call.[src] The file is identified by a file descriptor that is normally obtained from a previous call to open.[src] This system call reads in data in bytes, the number of which is specified by the caller, from the file and stores then into a buffer supplied by the calling process.[src] The read system call takes three arguments: The file descriptor of the file.[src] The buffer where the read data is to be stored.[src] The number of bytes to be read from the file.[src] ==POSIX usage== The read system call interface is standardized by the POSIX specification.[src] Data from a file is read by calling the read function: ssize_t read(int fd, void* buf, size_t count); The value returned is the number of bytes read (zero indicates end of file) and the file position is advanced by this number.[src] It is not an error if this number is smaller than the number of bytes requested; this may happen for example because fewer bytes are actually available right now (maybe because we were close to end-of-file, or because we are reading from a pipe, or from a terminal), or because the system call was interrupted by a signal.[src] Alternatively, -1 is returned when an error occurs, in such a case errno is set appropriately and further it is left unspecified whether the file position (if any) changes.[src] ==References== POSIX read ==External links==[src]

17 sentences · 17 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Read (system call)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/read-system-call. Accessed 03 December 2026.

Chicago

"Read (system call)." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/read-system-call.

APA

encyclopegia.org. (2025). Read (system call). Retrieved December 3, 2026, from https://encyclopegia.org/wiki/read-system-call

Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Applicant Tracking System

article · references available

Solar System

stub · references available

binary numeral system

stub · references available

calendar system

stub · references available

centimeter–gram–second system of units

stub · references available

judicial system of Ukraine

stub · references available

Mac operating system

stub · references available

Public distribution system

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1324091913 · 0.5 · snapshot enwiki-001324091913

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.