Remove leading underscores from the FILE lock functions that POSIX

specifies.
This commit is contained in:
John Birrell 1998-05-05 22:02:29 +00:00
parent 351c800a5e
commit e095485cdb
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id$ * $Id: libc_private.h,v 1.1 1998/04/11 06:57:33 jb Exp $
* *
* Private definitions for libc, libc_r and libpthread. * Private definitions for libc, libc_r and libpthread.
* *
@ -53,7 +53,7 @@ extern int __isthreaded;
#ifdef _FLOCK_DEBUG #ifdef _FLOCK_DEBUG
#define _FLOCKFILE(x) _flockfile_debug(x, __FILE__, __LINE__) #define _FLOCKFILE(x) _flockfile_debug(x, __FILE__, __LINE__)
#else #else
#define _FLOCKFILE(x) _flockfile(x) #define _FLOCKFILE(x) flockfile(x)
#endif #endif
/* /*
@ -61,6 +61,6 @@ extern int __isthreaded;
* process is threaded to avoid locking when not required. * process is threaded to avoid locking when not required.
*/ */
#define FLOCKFILE(fp) if (__isthreaded) _FLOCKFILE(fp) #define FLOCKFILE(fp) if (__isthreaded) _FLOCKFILE(fp)
#define FUNLOCKFILE(fp) if (__isthreaded) _funlockfile(fp) #define FUNLOCKFILE(fp) if (__isthreaded) funlockfile(fp)
#endif /* _LIBC_PRIVATE_H_ */ #endif /* _LIBC_PRIVATE_H_ */