/[base]
ViewVC logotype

Revision 283916


Jump to revision: Previous Next
Author: jhb
Date: Tue Jun 2 15:12:33 2015 UTC (9 years, 1 month ago)
Changed paths: 8
Log Message:
MFC 282417:
Various updates to the ftruncate(2) documentation:
- Note that ftruncate(2) can operate on shared memory objects and cross
  reference shm_open(2).
- Note that ftruncate(2) does not change the file position pointer (aka
  seek pointer) of the file descriptor.
- ftruncate(2) will fail with EINVAL for all sorts of other fd types than
  just sockets, so instead note that it fails for all but regular files and
  shared memory objects.
- Note that ftruncate(2) also appeared in 4.2BSD along with truncate(2).
  (Or at least the manpage for both appeared in 4.2, I did not check the
  kernel code itself to see if either predated 4.2.)

PR:		199472


Changed paths

Path Details
Directorystable/10/ modified , props changed
Directorystable/10/lib/libc/sys/truncate.2 modified , text changed
Directorystable/8/lib/libc/ modified , props changed
Directorystable/8/lib/libc/sys/ modified , props changed
Directorystable/8/lib/libc/sys/truncate.2 modified , text changed
Directorystable/9/lib/libc/ modified , props changed
Directorystable/9/lib/libc/sys/ modified , props changed
Directorystable/9/lib/libc/sys/truncate.2 modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27