subr.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1996-1998, by Sun Microsystems, Inc.
* All Rights Reserved.
*/
#ifndef _SUBR_H
#define _SUBR_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
* subr.h
*
* Function prototypes for subr.c
*/
#include <ftw.h>
/* size to make a buffer for holding a pathname */
#ifdef __cplusplus
extern "C" {
#endif
/* resource file info */
struct cachefs_rinfo {
int r_fsize; /* total file size */
int r_ptroffset; /* offset to pointers area */
int r_ptrsize; /* size of pointers area */
int r_identoffset; /* offset to idents area */
int r_identsize; /* size of idents area */
};
struct cachefs_user_values {
int uv_maxblocks;
int uv_minblocks;
int uv_threshblocks;
int uv_maxfiles;
int uv_minfiles;
int uv_threshfiles;
int uv_maxfilesize;
int uv_hiblocks;
int uv_lowblocks;
int uv_hifiles;
int uv_lowfiles;
};
int cachefs_dir_unlock(int fd);
int cachefs_inuse(const char *cachedirp);
struct cache_label *);
int cachefs_delete_all_cache(char *dirp);
char *cachefs_file_to_dir(const char *);
int cachefs_clean_flag_test(const char *cachedirp);
time32_t get_boottime(void);
#ifdef __cplusplus
}
#endif
#endif /* _SUBR_H */