2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1993, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * The contents database file interface. 2N/A/* Some commands modify the internal database: add them here */ 2N/A NEVER,
/* Don't start, does check if it is running. */ 2N/A * Virtual File Protocol definitions 2N/A * flags associated with virtual file protocol operations; note that these flags 2N/A * may only occupy the low order 16 bits of the 32-bit unsigned flag. 2N/A#
define VFP_NOMMAP 0x00000008 /* do not use mmap to access file */ 2N/A/* virtual file protocol object */ 2N/A/* structure behind the virtual file protocol object */ 2N/A * get highest modified byte (length) contained in vfp 2N/A * determine number of bytes to write - it will be the highest of: 2N/A * -- the current pointer into the file - this is updated whenever 2N/A * the location of the file is changed by a single byte 2N/A * -- the last "high water mark" - the last known location that 2N/A * was written to the file - updated only when the location 2N/A * of the file is directly changed - e.g. vfpSetCurrCharPtr, 2N/A * vfpTruncate, vfpRewind. 2N/A * this reduces the "bookkeeping" that needs to be done to know 2N/A * how many bytes to write out to the file - typically a file is 2N/A * written sequentially so the current file pointer is sufficient 2N/A * to determine how many bytes to write out. 2N/A * increment current pointer by specified delta 2N/A * if the delta exceeds the buffer size, set pointer to buffer end 2N/A/* get the path associated with the vfp */ 2N/A/* get a string from the vfp into a fixed size buffer */ 2N/A/* get number of bytes remaining to read */ 2N/A/* get number of bytes remaining to write */ 2N/A/* put current character and increment to next */ 2N/A/* put integer to current character and increment */ 2N/A/* put long to current character and increment */ 2N/A/* get current character and increment to next */ 2N/A/* get current character - do not increment */ 2N/A/* get pointer to current character */ 2N/A/* increment current character pointer */ 2N/A/* decrement current character pointer */ 2N/A/* get pointer to first data byte in buffer */ 2N/A/* get pointer to last data byte in buffer */ 2N/A/* set pointer to current character */ 2N/A/* set pointer to last data byte in buffer */ 2N/A/* seek to end of file - one past last data byte in file */ 2N/A/* get number of bytes between current char and specified char */ 2N/A/* put string to current character and increment */ 2N/A/* put fixed number of bytes to current character and increment */ 2N/A/* put format one arg to current character and increment */ 2N/A int offset;
/* number of bytes into the text_buffer */ 2N/A/* This structure is used to hold a dynamically growing string */ 2N/A/* setmapmode() defines */ 2N/A/* max length for printed attributes */ 2N/A * These three defines indicate that the prototype file contains a '?' 2N/A * meaning do not specify this data in the pkgmap entry. 2N/A/* Settings for network admin defaults */ 2N/A/* package header magic tokens */ 2N/A/* name of security files */ 2N/A * The next three mean that no mode, owner or group was specified or that the 2N/A * one specified is invalid for some reason. Sometimes this is an error in 2N/A * which case it is generally converted to CUR* with a warning. Other times 2N/A * it means "look it up" by stating the existing file system object pointred 2N/A * to in the prototype file. 2N/A/* string comparitor abbreviators */ 2N/A#
endif /* _PKGLIB_H */