05-22-07 12:26 AM
in the header file
#ifdef LOCK_LOCKF
#ifdef HAVE_SYS_LOCKING_H
#include <sys/lockf.h>
#endif
#ifdef HAVE_SYS_LOCKING_H
#include <sys/file.h>
#endif
#define fseek(file, 0L, 0, lockf(file, 1, 0L)
#define fseek(file, 0L, 0, lockf(file, 0, 0L)
#endif /* LOCK_LOCKF */
#ifdef LOCK_NONE
#define LOCK(file)
#define UNLOCK(file)
#endif /*LOCK_NONE*/
When I grepped both LOCK_LOCKF and LOCK_NONE, these macros only showed
up in config.h.in, configure.in, and the header file in question.
Why would the author go through the effort of defining these macros if
he doesn't use them throughout the rest of the program?
[ Post a follow-up to this message ]
|