]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Disable some explicit sbrk() usage
authorBenjamin Kaduk <kaduk@mit.edu>
Fri, 10 Jan 2014 04:34:30 +0000 (23:34 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 12 Feb 2014 15:41:48 +0000 (07:41 -0800)
commit23709f03a38eca661529b745b185393a0a239835
treee03856fc939d5267368ef1282eb29acb664070de
parent473322a453bbc409d54ab21e1d9637eaf15f085a
Disable some explicit sbrk() usage

Mac OS X 10.9 now considers this function deprecated and warns on
its use, causing the buildslave configuration to error out.

On master, we added a library routine to get a process's size to opr;
opr is not present on the 1.6 branch so another route is needed here.

Since use of the OS X malloc implementation appears to have no
effect on the result of sbrk(0), there is no loss of functionality
by replacing the function call with a (different) constant value.

There may still be some value in sbrk(0) on other systems, so
only disable sbrk() for OS X, on the stable branch.

This change is specific to the 1.6 branch.

Change-Id: Ie5f96e923b78be22a9ce83d0a35a7675d517b073
Reviewed-on: http://gerrit.openafs.org/10746
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: D Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/viced/afsfileprocs.c
src/viced/viced.c