1200185Sed/*- 2200185Sed * Copyright (c) 2009 Ed Schouten <ed@FreeBSD.org> 3200185Sed * All rights reserved. 4200185Sed * 5200185Sed * Redistribution and use in source and binary forms, with or without 6200185Sed * modification, are permitted provided that the following conditions 7200185Sed * are met: 8200185Sed * 1. Redistributions of source code must retain the above copyright 9200185Sed * notice, this list of conditions and the following disclaimer. 10200185Sed * 2. Redistributions in binary form must reproduce the above copyright 11200185Sed * notice, this list of conditions and the following disclaimer in the 12200185Sed * documentation and/or other materials provided with the distribution. 13200185Sed * 14200185Sed * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15200185Sed * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16200185Sed * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17200185Sed * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18200185Sed * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19200185Sed * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20200185Sed * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21200185Sed * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22200185Sed * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23200185Sed * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24200185Sed * SUCH DAMAGE. 25200185Sed * 26200185Sed * $FreeBSD$ 27200185Sed */ 28200185Sed 29200185Sed#ifndef _UTEMPTER_H_ 30200185Sed#define _UTEMPTER_H_ 31200185Sed 32200185Sed#include <sys/cdefs.h> 33200185Sed 34200185Sed__BEGIN_DECLS 35200185Sedint utempter_add_record(int, const char *); 36200185Sedint utempter_remove_added_record(void); 37200185Sedint utempter_remove_record(int); 38200185Sed 39200185Sedvoid addToUtmp(const char *, const char *, int); 40200185Sedvoid removeFromUtmp(void); 41200185Sedvoid removeLineFromUtmp(const char *, int); 42200185Sed__END_DECLS 43200185Sed 44200185Sed#endif /* !_UTEMPTER_H_ */ 45