Remove leading underscores for the functions (weak symbols here) that

POSIX defines.
This commit is contained in:
John Birrell 1998-05-05 21:56:42 +00:00
parent ffa54cc6bb
commit 4c717fd74d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35757

View File

@ -29,20 +29,22 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: _flock_stub.c,v 1.1 1998/04/11 07:40:41 jb Exp $
*
*/
#include <stdio.h>
/* Don't build this in libc_r, just libc: */
#ifndef _THREAD_SAFE
/*
* Declare weak references in case the application is not linked
* with libpthread.
*/
#pragma weak _flockfile=_flockfile_stub
#pragma weak flockfile=_flockfile_stub
#pragma weak _flockfile_debug=_flockfile_debug_stub
#pragma weak _ftrylockfile=_ftrylockfile_stub
#pragma weak _funlockfile=_funlockfile_stub
#pragma weak ftrylockfile=_ftrylockfile_stub
#pragma weak funlockfile=_funlockfile_stub
/*
* This function is a stub for the _flockfile function in libpthread.
@ -76,3 +78,4 @@ void
_funlockfile_stub(FILE *fp)
{
}
#endif