1156701Smux/*- 2156701Smux * Copyright (c) 2006, Maxime Henrion <mux@FreeBSD.org> 3156701Smux * All rights reserved. 4156701Smux * 5156701Smux * Redistribution and use in source and binary forms, with or without 6156701Smux * modification, are permitted provided that the following conditions 7156701Smux * are met: 8156701Smux * 1. Redistributions of source code must retain the above copyright 9156701Smux * notice, this list of conditions and the following disclaimer. 10156701Smux * 2. Redistributions in binary form must reproduce the above copyright 11156701Smux * notice, this list of conditions and the following disclaimer in the 12156701Smux * documentation and/or other materials provided with the distribution. 13156701Smux * 14156701Smux * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15156701Smux * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16156701Smux * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17156701Smux * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18156701Smux * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19156701Smux * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20156701Smux * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21156701Smux * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22156701Smux * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23156701Smux * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24156701Smux * SUCH DAMAGE. 25156701Smux * 26156701Smux * $FreeBSD$ 27156701Smux */ 28156701Smux#ifndef _IDCACHE_H_ 29156701Smux#define _IDCACHE_H_ 30156701Smux 31156701Smux#include <sys/types.h> 32156701Smux 33156701Smuxvoid idcache_init(void); 34156701Smuxvoid idcache_fini(void); 35156701Smux 36156701Smuxchar *getuserbyid(uid_t); 37156701Smuxchar *getgroupbyid(gid_t); 38156701Smuxint getuidbyname(const char *, uid_t *); 39156701Smuxint getgidbyname(const char *, gid_t *); 40156701Smux 41156701Smux#endif /* !_IDCACHE_H_ */ 42