]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 282417:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 2 Jun 2015 15:12:33 +0000 (15:12 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 2 Jun 2015 15:12:33 +0000 (15:12 +0000)
commit25c4a6cb454e1540cf487c67f3c729ed0367734b
tree69c4c168a9a586d988e6a1ff7fbf6053ef109b24
parentcbf61bf2b3076aa87d16125ceee6d8a6b2534888
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

git-svn-id: svn://svn.freebsd.org/base/stable/9@283916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/truncate.2