Remove leading underscores for the functions (weak symbols here) that
POSIX defines.
This commit is contained in:
parent
ef2879f73e
commit
7e3d598851
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user