Bug 781 - prealloc() is an HP-UX system library call
prealloc() is an HP-UX system library call
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
1.5.9
Other other
: P5 normal
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-14 12:28 CEST by Richard Lloyd
Modified: 2016-06-14 12:32 CEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Lloyd 2016-06-14 12:28:05 CEST
util/alloc.c defines and calls its own prealloc() function, but unfortunately, this function is in the HP-UX 11.31 C library and has a man page:

#include <unistd.h>
int prealloc(int fildes, off_t size);

prealloc() is used to preallocate space on a disk for faster storage
operations.

I would therefore suggest renaming unbound's prealloc() function to something else.
Comment 1 Wouter Wijngaards 2016-06-14 12:32:14 CEST
Hi Richard,

Fixed in code repository.  Thanks for the porting effort to HPUX :-)

Best regards, Wouter