Various updates to the ftruncate(2) documentation:
authorjhb <jhb@FreeBSD.org>
Mon, 4 May 2015 14:47:00 +0000 (14:47 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 4 May 2015 14:47:00 +0000 (14:47 +0000)
commitc8296a2c9540040222df62d9490fdbba987474b2
tree7bab6a39431e32a7188f5978931cfa2fad91e67e
parentf3e222f33fd6bf065011201b7460e2da476f43f7
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 (2)
Submitted by: andrew@ugh.net.au (2)
MFC after: 1 week
lib/libc/sys/truncate.2