11ae349f5Scvs2svn /*- 21ae349f5Scvs2svn * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org> 31ae349f5Scvs2svn * All rights reserved. 41ae349f5Scvs2svn * 51ae349f5Scvs2svn * Redistribution and use in source and binary forms, with or without 61ae349f5Scvs2svn * modification, are permitted provided that the following conditions 71ae349f5Scvs2svn * are met: 81ae349f5Scvs2svn * 1. Redistributions of source code must retain the above copyright 91ae349f5Scvs2svn * notice, this list of conditions and the following disclaimer. 101ae349f5Scvs2svn * 2. Redistributions in binary form must reproduce the above copyright 111ae349f5Scvs2svn * notice, this list of conditions and the following disclaimer in the 121ae349f5Scvs2svn * documentation and/or other materials provided with the distribution. 131ae349f5Scvs2svn * 141ae349f5Scvs2svn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 151ae349f5Scvs2svn * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 161ae349f5Scvs2svn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 171ae349f5Scvs2svn * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 181ae349f5Scvs2svn * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 191ae349f5Scvs2svn * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 201ae349f5Scvs2svn * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 211ae349f5Scvs2svn * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 221ae349f5Scvs2svn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 231ae349f5Scvs2svn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 241ae349f5Scvs2svn * SUCH DAMAGE. 251ae349f5Scvs2svn * 263edeb0c6SBrian Somers * $Id: id.h,v 1.3.4.1 1998/02/19 02:08:47 brian Exp $ 271ae349f5Scvs2svn */ 281ae349f5Scvs2svn 29f1316a86SBrian Somers struct utmp; 30f1316a86SBrian Somers 311ae349f5Scvs2svn extern void ID0init(void); 321ae349f5Scvs2svn extern uid_t ID0realuid(void); 331ae349f5Scvs2svn extern int ID0ioctl(int, unsigned long, void *); 341ae349f5Scvs2svn extern int ID0unlink(const char *); 351ae349f5Scvs2svn extern int ID0socket(int, int, int); 361ae349f5Scvs2svn extern FILE *ID0fopen(const char *, const char *); 373edeb0c6SBrian Somers extern int ID0open(const char *, int, ...); 381ae349f5Scvs2svn extern int ID0write(int, const void *, size_t); 391ae349f5Scvs2svn extern int ID0uu_lock(const char *); 401ae349f5Scvs2svn extern int ID0uu_unlock(const char *); 41f1316a86SBrian Somers extern void ID0login(struct utmp *); 42f1316a86SBrian Somers extern void ID0logout(const char *); 43