Add mkdev.h rename _SOL_SYS to _LIBSPL_SYS

This commit is contained in:
Brian Behlendorf 2008-12-17 10:04:04 -08:00
parent 5945ae3161
commit 07394c4b64
20 changed files with 70 additions and 40 deletions

View File

@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_BITMAP_H
#define _SOL_SYS_BITMAP_H
#ifndef _LIBSPL_SYS_BITMAP_H
#define _LIBSPL_SYS_BITMAP_H
#endif

View File

@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_CMN_ERR_H
#define _SOL_SYS_CMN_ERR_H
#ifndef _LIBSPL_SYS_CMN_ERR_H
#define _LIBSPL_SYS_CMN_ERR_H
#endif

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_CRED_H
#define _SOL_SYS_CRED_H
#ifndef _LIBSPL_SYS_CRED_H
#define _LIBSPL_SYS_CRED_H
typedef struct cred cred_t;

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_DEBUG_H
#define _SOL_SYS_DEBUG_H
#ifndef _LIBSPL_SYS_DEBUG_H
#define _LIBSPL_SYS_DEBUG_H
#include <assert.h>

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_FILE_H
#define _SOL_SYS_FILE_H
#ifndef _LIBSPL_SYS_FILE_H
#define _LIBSPL_SYS_FILE_H
#include_next <sys/file.h>

View File

@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_INT_LIMITS_H
#define _SOL_SYS_INT_LIMITS_H
#ifndef _LIBSPL_SYS_INT_LIMITS_H
#define _LIBSPL_SYS_INT_LIMITS_H
#endif

View File

@ -0,0 +1,30 @@
/*
* 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
* or http://www.opensolaris.org/os/licensing.
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LIBSPL_SYS_MKDEV_H
#define _LIBSPL_SYS_MKDEV_H
#endif

View File

@ -26,8 +26,8 @@
#include_next <sys/mount.h>
#ifndef _SOL_SYS_MOUNT_H
#define _SOL_SYS_MOUNT_H
#ifndef _LIBSPL_SYS_MOUNT_H
#define _LIBSPL_SYS_MOUNT_H
#include <sys/mntent.h>
#include <assert.h>
@ -47,4 +47,4 @@
#define MS_NOMNTTAB 0 /* Not supported in Linux */
#define MS_OPTIONSTR 0 /* Not necessary in Linux */
#endif /* _SOL_SYS_MOUNT_H */
#endif /* _LIBSPL_SYS_MOUNT_H */

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_PARAM_H
#define _SOL_SYS_PARAM_H
#ifndef _LIBSPL_SYS_PARAM_H
#define _LIBSPL_SYS_PARAM_H
#include_next <sys/param.h>
#include <unistd.h>

View File

@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_PRIV_H
#define _SOL_SYS_PRIV_H
#ifndef _LIBSPL_SYS_PRIV_H
#define _LIBSPL_SYS_PRIV_H
#endif

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_PROCESSOR_H
#define _SOL_SYS_PROCESSOR_H
#ifndef _LIBSPL_SYS_PROCESSOR_H
#define _LIBSPL_SYS_PROCESSOR_H
#define getcpuid() (-1)

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_SDT_H
#define _SOL_SYS_SDT_H
#ifndef _LIBSPL_SYS_SDT_H
#define _LIBSPL_SYS_SDT_H
#define DTRACE_PROBE1(a,b,c) ((void) 0)
#define DTRACE_PROBE2(a,b,c,d,e) ((void) 0)

View File

@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_SYSEVENT_H
#define _SOL_SYS_SYSEVENT_H
#ifndef _LIBSPL_SYS_SYSEVENT_H
#define _LIBSPL_SYS_SYSEVENT_H
#endif

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_SYSMACROS_H
#define _SOL_SYS_SYSMACROS_H
#ifndef _LIBSPL_SYS_SYSMACROS_H
#define _LIBSPL_SYS_SYSMACROS_H
#include_next <sys/sysmacros.h>
@ -93,4 +93,4 @@
#define offsetof(s, m) ((size_t)(&(((s *)0)->m)))
#endif
#endif /* _SOL_SYS_SYSMACROS_H */
#endif /* _LIBSPL_SYS_SYSMACROS_H */

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_SYSTEMINFO_H
#define _SOL_SYS_SYSTEMINFO_H
#ifndef _LIBSPL_SYS_SYSTEMINFO_H
#define _LIBSPL_SYS_SYSTEMINFO_H
#define sysinfo(cmd,buf,cnt) (-1)

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_TIME_H
#define _SOL_SYS_TIME_H
#ifndef _LIBSPL_SYS_TIME_H
#define _LIBSPL_SYS_TIME_H
#include_next <sys/time.h>
#include <sys/types.h>

View File

@ -24,8 +24,8 @@
* Use is subject to license terms.
*/
#ifndef _PORT_SYS_TYPES_H
#define _PORT_SYS_TYPES_H
#ifndef _LIBSPL_SYS_TYPES_H
#define _LIBSPL_SYS_TYPES_H
#include <sys/isa_defs.h>
#include <sys/feature_tests.h>

View File

@ -37,8 +37,8 @@
* contributors.
*/
#ifndef _SOL_SYS_UIO_H
#define _SOL_SYS_UIO_H
#ifndef _LIBSPL_SYS_UIO_H
#define _LIBSPL_SYS_UIO_H
/* struct iovec is defined in glibc's sys/uio.h */
#include_next <sys/uio.h>

View File

@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_VARARGS_H
#define _SOL_SYS_VARARGS_H
#ifndef _LIBSPL_SYS_VARARGS_H
#define _LIBSPL_SYS_VARARGS_H
#endif

View File

@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
#ifndef _SOL_SYS_ZONE_H
#define _SOL_SYS_ZONE_H
#ifndef _LIBSPL_SYS_ZONE_H
#define _LIBSPL_SYS_ZONE_H
#endif