_flock_stub.c revision 35129
10Sduke/* 22362Sohair * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>. 30Sduke * All rights reserved. 40Sduke * 50Sduke * Redistribution and use in source and binary forms, with or without 60Sduke * modification, are permitted provided that the following conditions 70Sduke * are met: 80Sduke * 1. Redistributions of source code must retain the above copyright 90Sduke * notice, this list of conditions and the following disclaimer. 100Sduke * 2. Redistributions in binary form must reproduce the above copyright 110Sduke * notice, this list of conditions and the following disclaimer in the 120Sduke * documentation and/or other materials provided with the distribution. 130Sduke * 3. All advertising materials mentioning features or use of this software 140Sduke * must display the following acknowledgement: 150Sduke * This product includes software developed by John Birrell. 160Sduke * 4. Neither the name of the author nor the names of any co-contributors 170Sduke * may be used to endorse or promote products derived from this software 180Sduke * without specific prior written permission. 192362Sohair * 202362Sohair * THIS SOFTWARE IS PROVIDED BY JOHN BIRRELL AND CONTRIBUTORS ``AS IS'' AND 212362Sohair * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 220Sduke * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 230Sduke * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 240Sduke * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 250Sduke * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 260Sduke * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 270Sduke * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 280Sduke * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 290Sduke * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 300Sduke * SUCH DAMAGE. 310Sduke * 320Sduke * $Id$ 330Sduke * 340Sduke */ 350Sduke 360Sduke#include <stdio.h> 370Sduke 380Sduke/* 390Sduke * Declare weak references in case the application is not linked 400Sduke * with libpthread. 410Sduke */ 420Sduke#pragma weak _flockfile=_flockfile_stub 430Sduke#pragma weak _flockfile_debug=_flockfile_debug_stub 440Sduke#pragma weak _ftrylockfile=_ftrylockfile_stub 450Sduke#pragma weak _funlockfile=_funlockfile_stub 460Sduke 470Sduke/* 480Sduke * This function is a stub for the _flockfile function in libpthread. 490Sduke */ 500Sdukevoid 510Sduke_flockfile_stub(FILE *fp) 520Sduke{ 530Sduke} 540Sduke 550Sduke/* 560Sduke * This function is a stub for the _flockfile_debug function in libpthread. 570Sduke */ 580Sdukevoid 590Sduke_flockfile_debug_stub(FILE *fp, char *fname, int lineno) 600Sduke{ 610Sduke} 620Sduke 630Sduke/* 640Sduke * This function is a stub for the _ftrylockfile function in libpthread. 650Sduke */ 660Sdukeint 670Sduke_ftrylockfile_stub(FILE *fp) 680Sduke{ 690Sduke return(0); 700Sduke} 710Sduke 720Sduke/* 730Sduke * This function is a stub for the _funlockfile function in libpthread. 740Sduke */ 75void 76_funlockfile_stub(FILE *fp) 77{ 78} 79