id.h revision 51525
1145132Sanholt/*- 2145132Sanholt * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org> 3145132Sanholt * All rights reserved. 4145132Sanholt * 5145132Sanholt * Redistribution and use in source and binary forms, with or without 6145132Sanholt * modification, are permitted provided that the following conditions 7145132Sanholt * are met: 8145132Sanholt * 1. Redistributions of source code must retain the above copyright 9145132Sanholt * notice, this list of conditions and the following disclaimer. 10145132Sanholt * 2. Redistributions in binary form must reproduce the above copyright 11145132Sanholt * notice, this list of conditions and the following disclaimer in the 12145132Sanholt * documentation and/or other materials provided with the distribution. 13145132Sanholt * 14145132Sanholt * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15145132Sanholt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16145132Sanholt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17145132Sanholt * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18145132Sanholt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19145132Sanholt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20145132Sanholt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21145132Sanholt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22145132Sanholt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23145132Sanholt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24145132Sanholt * SUCH DAMAGE. 25145132Sanholt * 26145132Sanholt * $FreeBSD: head/usr.sbin/ppp/id.h 51525 1999-09-22 00:40:47Z brian $ 27145132Sanholt */ 28145132Sanholt 29145132Sanholtstruct utmp; 30145132Sanholtstruct sockaddr_un; 31152909Sanholt 32152909Sanholtextern void ID0init(void); 33152909Sanholtextern uid_t ID0realuid(void); 34182080Srnolandextern int ID0ioctl(int, unsigned long, void *); 35182080Srnolandextern int ID0unlink(const char *); 36182080Srnolandextern int ID0socket(int, int, int); 37182080Srnolandextern FILE *ID0fopen(const char *, const char *); 38152909Sanholtextern int ID0open(const char *, int, ...); 39152909Sanholtextern int ID0write(int, const void *, size_t); 40145132Sanholtextern int ID0uu_lock(const char *); 41145132Sanholtextern int ID0uu_lock_txfr(const char *, pid_t); 42152909Sanholtextern int ID0uu_unlock(const char *); 43152909Sanholtextern void ID0login(struct utmp *); 44152909Sanholtextern void ID0logout(const char *); 45152909Sanholtextern int ID0bind_un(int, const struct sockaddr_un *); 46182080Srnolandextern int ID0connect_un(int, const struct sockaddr_un *); 47145132Sanholtextern int ID0kill(pid_t, int); 48152909Sanholt#ifdef KLDSYM_LOOKUP 49152909Sanholtextern int ID0kldload(const char *); 50152909Sanholt#endif 51152909Sanholt