]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC discussed with: jilles, -developers
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 11 Jan 2015 19:15:28 +0000 (19:15 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 11 Jan 2015 19:15:28 +0000 (19:15 +0000)
commit49b0485fe99ca13c254793499a377ad3b833ee13
treea6ea4260d0fa3a951d8063b29c894d9134fb675b
parentf4d9cd9465cf3074c43ee4e293e4edb8317905ed
MFC discussed with: jilles, -developers

MFC r266971:

  - Return NULL and set errno to EINVAL if size is 0 (as required by POSIX).
  Update the manpage to reflect this change.
  - Always set the current position to the first null-byte when opening in append
  mode. This makes the implementation compatible with glibc's. Update the test
  suite.

  Reported by: pho
  Approved by: cognet

git-svn-id: svn://svn.freebsd.org/base/stable/10@277016 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/stdio/fmemopen.c
lib/libc/stdio/fopen.3
tools/regression/lib/libc/stdio/test-fmemopen.c