libutil.h (202216) | libutil.h (207736) |
---|---|
1/* 2 * Copyright (c) 1996 Peter Wemm <peter@FreeBSD.org>. 3 * All rights reserved. 4 * Copyright (c) 2002 Networks Associates Technology, Inc. 5 * All rights reserved. 6 * 7 * Portions of this software were developed for the FreeBSD Project by 8 * ThinkSec AS and NAI Labs, the Security Research Division of Network --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * | 1/* 2 * Copyright (c) 1996 Peter Wemm <peter@FreeBSD.org>. 3 * All rights reserved. 4 * Copyright (c) 2002 Networks Associates Technology, Inc. 5 * All rights reserved. 6 * 7 * Portions of this software were developed for the FreeBSD Project by 8 * ThinkSec AS and NAI Labs, the Security Research Division of Network --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * |
36 * $FreeBSD: head/lib/libutil/libutil.h 202216 2010-01-13 18:59:51Z ed $ | 36 * $FreeBSD: head/lib/libutil/libutil.h 207736 2010-05-07 00:41:12Z mckusick $ |
37 */ 38 39#ifndef _LIBUTIL_H_ 40#define _LIBUTIL_H_ 41 42#include <sys/cdefs.h> 43#include <sys/_types.h> 44 --- 114 unchanged lines hidden (view full) --- 159 160#ifdef _SYS_PARAM_H_ 161struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr); 162int pidfile_write(struct pidfh *pfh); 163int pidfile_close(struct pidfh *pfh); 164int pidfile_remove(struct pidfh *pfh); 165#endif 166 | 37 */ 38 39#ifndef _LIBUTIL_H_ 40#define _LIBUTIL_H_ 41 42#include <sys/cdefs.h> 43#include <sys/_types.h> 44 --- 114 unchanged lines hidden (view full) --- 159 160#ifdef _SYS_PARAM_H_ 161struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr); 162int pidfile_write(struct pidfh *pfh); 163int pidfile_close(struct pidfh *pfh); 164int pidfile_remove(struct pidfh *pfh); 165#endif 166 |
167#ifdef _UFS_UFS_QUOTA_H_ 168struct quotafile; 169struct fstab; 170struct quotafile *quota_open(struct fstab *, int, int); 171void quota_close(struct quotafile *); 172int quota_on(struct quotafile *); 173int quota_off(struct quotafile *); 174const char *quota_fsname(const struct quotafile *); 175const char *quota_qfname(const struct quotafile *); 176int quota_maxid(struct quotafile *); 177int quota_check_path(const struct quotafile *, const char *path); 178int quota_read(struct quotafile *, struct dqblk *, int); 179int quota_write_limits(struct quotafile *, struct dqblk *, int); 180int quota_write_usage(struct quotafile *, struct dqblk *, int); 181int quota_convert(struct quotafile *, int); 182#endif 183 |
|
167__END_DECLS 168 169#define UU_LOCK_INUSE (1) 170#define UU_LOCK_OK (0) 171#define UU_LOCK_OPEN_ERR (-1) 172#define UU_LOCK_READ_ERR (-2) 173#define UU_LOCK_CREAT_ERR (-3) 174#define UU_LOCK_WRITE_ERR (-4) --- 38 unchanged lines hidden --- | 184__END_DECLS 185 186#define UU_LOCK_INUSE (1) 187#define UU_LOCK_OK (0) 188#define UU_LOCK_OPEN_ERR (-1) 189#define UU_LOCK_READ_ERR (-2) 190#define UU_LOCK_CREAT_ERR (-3) 191#define UU_LOCK_WRITE_ERR (-4) --- 38 unchanged lines hidden --- |