diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2007-10-10 16:59:15 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2007-10-10 16:59:15 +0000 |
| commit | d617d42018994cc58fc6289f978ea2390cac9dcd (patch) | |
| tree | 5a0de7aea46575bd5fc596f9088d4af22f9287dc /cddl/compat/opensolaris/include | |
| parent | a928dfb7b421ea99b7ed9a340a3e91f8dad16d24 (diff) | |
Notes
Diffstat (limited to 'cddl/compat/opensolaris/include')
| -rw-r--r-- | cddl/compat/opensolaris/include/devid.h | 54 | ||||
| -rw-r--r-- | cddl/compat/opensolaris/include/fsshare.h | 35 | ||||
| -rw-r--r-- | cddl/compat/opensolaris/include/libintl.h | 11 | ||||
| -rw-r--r-- | cddl/compat/opensolaris/include/mnttab.h | 19 | ||||
| -rw-r--r-- | cddl/compat/opensolaris/include/priv.h | 18 | ||||
| -rw-r--r-- | cddl/compat/opensolaris/include/solaris.h | 8 | ||||
| -rw-r--r-- | cddl/compat/opensolaris/include/zone.h | 6 |
7 files changed, 0 insertions, 151 deletions
diff --git a/cddl/compat/opensolaris/include/devid.h b/cddl/compat/opensolaris/include/devid.h deleted file mode 100644 index 6718ce2b9fbc..000000000000 --- a/cddl/compat/opensolaris/include/devid.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 2006 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -#ifndef _OPENSOLARIS_DEVID_H_ -#define _OPENSOLARIS_DEVID_H_ - -#include <sys/param.h> -#include <sys/disk.h> -#include <stdlib.h> - -typedef struct ddi_devid { - char devid[DISK_IDENT_SIZE]; -} ddi_devid_t; - -typedef struct devid_nmlist { - char devname[MAXPATHLEN]; - dev_t dev; -} devid_nmlist_t; - -int devid_str_decode(char *devidstr, ddi_devid_t *retdevid, - char **retminor_name); -int devid_deviceid_to_nmlist(char *search_path, ddi_devid_t devid, - char *minor_name, devid_nmlist_t **retlist); -void devid_str_free(char *str); -void devid_free(ddi_devid_t devid); -void devid_free_nmlist(devid_nmlist_t *list); -int devid_get(int fd, ddi_devid_t *retdevid); -int devid_get_minor_name(int fd, char **retminor_name); -char *devid_str_encode(ddi_devid_t devid, char *minor_name); - -#endif /* !_OPENSOLARIS_DEVID_H_ */ diff --git a/cddl/compat/opensolaris/include/fsshare.h b/cddl/compat/opensolaris/include/fsshare.h deleted file mode 100644 index 11a8dbf0b04d..000000000000 --- a/cddl/compat/opensolaris/include/fsshare.h +++ /dev/null @@ -1,35 +0,0 @@ -/*- - * Copyright (c) 2007 Pawel Jakub Dawidek <pjd@FreeBSD.org> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _OPENSOLARIS_FSSHARE_H_ -#define _OPENSOLARIS_FSSHARE_H_ - -int fsshare(const char *, const char *, const char *); -int fsunshare(const char *, const char *); - -#endif /* !_OPENSOLARIS_FSSHARE_H_ */ diff --git a/cddl/compat/opensolaris/include/libintl.h b/cddl/compat/opensolaris/include/libintl.h deleted file mode 100644 index 595434493e74..000000000000 --- a/cddl/compat/opensolaris/include/libintl.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef _LIBINTL_H_ -#define _LIBINTL_H_ - -#include <sys/cdefs.h> -#include <stdio.h> - -#define textdomain(domain) 0 -#define gettext(...) (__VA_ARGS__) -#define dgettext(domain, ...) (__VA_ARGS__) - -#endif /* !_SOLARIS_H_ */ diff --git a/cddl/compat/opensolaris/include/mnttab.h b/cddl/compat/opensolaris/include/mnttab.h deleted file mode 100644 index 6e7d28c1ee01..000000000000 --- a/cddl/compat/opensolaris/include/mnttab.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef _OPENSOLARIS_MNTTAB_H_ -#define _OPENSOLARIS_MNTTAB_H_ - -#include <stdio.h> -#include <paths.h> - -#define MNTTAB _PATH_DEVNULL -#define MNT_LINE_MAX 1024 - -struct mnttab { - char *mnt_special; - char *mnt_mountp; - char *mnt_fstype; - char *mnt_mntopts; -}; - -int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp); - -#endif /* !_OPENSOLARIS_MNTTAB_H_ */ diff --git a/cddl/compat/opensolaris/include/priv.h b/cddl/compat/opensolaris/include/priv.h deleted file mode 100644 index 78eae1a3cda2..000000000000 --- a/cddl/compat/opensolaris/include/priv.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef _OPENSOLARIS_PRIV_H_ -#define _OPENSOLARIS_PRIV_H_ - -#include <sys/types.h> -#include <unistd.h> -#include <assert.h> - -#define PRIV_SYS_CONFIG 0 - -static __inline int -priv_ineffect(priv) -{ - - assert(priv == PRIV_SYS_CONFIG); - return (geteuid() == 0); -} - -#endif /* !_OPENSOLARIS_PRIV_H_ */ diff --git a/cddl/compat/opensolaris/include/solaris.h b/cddl/compat/opensolaris/include/solaris.h deleted file mode 100644 index fbdd8c680352..000000000000 --- a/cddl/compat/opensolaris/include/solaris.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef _SOLARIS_H_ -#define _SOLARIS_H_ - -#include <sys/ccompile.h> - -#define dirent64 dirent - -#endif /* !_SOLARIS_H_ */ diff --git a/cddl/compat/opensolaris/include/zone.h b/cddl/compat/opensolaris/include/zone.h deleted file mode 100644 index 487f02f6db49..000000000000 --- a/cddl/compat/opensolaris/include/zone.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef _ZONE_H_ -#define _ZONE_H_ - -#include <sys/zone.h> - -#endif /* !_ZONE_H_ */ |
