lx_types.h revision 9acbbeaf2a1ffe5c14b244867d427714fab43c5c
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_LX_TYPES_H
#define _SYS_LX_TYPES_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* min value of a "long int" */
#define LX_SYS_UTS_LN 65
struct lx_utsname {
char sysname[LX_SYS_UTS_LN];
char nodename[LX_SYS_UTS_LN];
char release[LX_SYS_UTS_LN];
char version[LX_SYS_UTS_LN];
char machine[LX_SYS_UTS_LN];
char domainname[LX_SYS_UTS_LN];
};
typedef uint16_t lx_dev16_t;
typedef uint64_t lx_ino64_t;
typedef uint16_t lx_uid16_t;
typedef uint16_t lx_gid16_t;
typedef uint64_t lx_off64_t;
typedef uint32_t lx_blksize_t;
typedef uint32_t lx_blkcnt_t;
typedef uint64_t lx_blkcnt64_t;
typedef uint16_t lx_mode16_t;
#define LX_UID16_TO_UID32(uid16) \
#define LX_GID16_TO_GID32(gid16) \
/* Overflow values default to NFS nobody. */
/*
* All IDs with high word non-zero are converted to default overflow values to
* avoid inadvertent truncation to zero (root) (!).
*/
#define LX_UID32_TO_UID16(uid32) \
#define LX_GID32_TO_GID16(gid32) \
struct lx_timespec {
long ts_nsec;
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_LX_TYPES_H */