]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Add Posix_Free and try harder to avoid clearing errno
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:27 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:27 +0000 (11:23 -0700)
commita77e97df5b8145f29cb097bced90f7d91e2ff548
treeb4346fdf050300ab659462f3927dfb743d5df2c6
parent4ce5f44e0bd0789f65fe4710df5293e71eb6d1c0
Add Posix_Free and try harder to avoid clearing errno

free() can clear errno.  Apparently POSIX will prohibit that
in a future version of the standard; in the meantime, add a
Posix_Free function that guarantees errno preservation and
start using it.

Similarly, make Util_ZeroFree, Util_FreeList, etc. also
preserve errno.
open-vm-tools/lib/include/posix.h
open-vm-tools/lib/include/util.h
open-vm-tools/lib/misc/posixDlopen.c
open-vm-tools/lib/misc/posixInt.h
open-vm-tools/lib/misc/posixPosix.c
open-vm-tools/lib/misc/posixPwd.c