CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 04:55:17 UTC 2018

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: dtrace.h

Log Message:
Omit conflicting definition that breaks build on aarch64.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 \
src/external/cddl/osnet/dist/uts/common/sys/dtrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/dtrace.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.17 src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.18
--- src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.17	Mon Jun  4 21:36:03 2018
+++ src/external/cddl/osnet/dist/uts/common/sys/dtrace.h	Thu Nov 15 04:55:17 2018
@@ -2483,7 +2483,10 @@ extern void dtrace_helpers_destroy(proc_
 #define	ARG2_MASK	0x1f
 #define	OFFSET_SHIFT	15
 #define	OFFSET_SIZE	7
+#if 0
+/* conflicts with lzjb.c */
 #define	OFFSET_MASK	((1 << OFFSET_SIZE) - 1)
+#endif
 
 #define	DTRACE_INVOP_PUSHM	1
 #define	DTRACE_INVOP_RET	2



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2018-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 23 22:25:21 UTC 2018

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: nvpair.h

Log Message:
prefix all nv* symbols with opensolaris_


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 \
src/external/cddl/osnet/dist/uts/common/sys/nvpair.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/nvpair.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/nvpair.h:1.1.1.3 src/external/cddl/osnet/dist/uts/common/sys/nvpair.h:1.2
--- src/external/cddl/osnet/dist/uts/common/sys/nvpair.h:1.1.1.3	Mon May 28 16:53:03 2018
+++ src/external/cddl/osnet/dist/uts/common/sys/nvpair.h	Tue Oct 23 18:25:21 2018
@@ -30,6 +30,8 @@
 #include 
 #include 
 
+#include 
+
 #if defined(_KERNEL) && !defined(_BOOT)
 #include 
 #endif



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2018-06-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun  4 21:36:03 UTC 2018

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: dtrace.h

Log Message:
add  because the header needs proc_t kthread_t etc.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
src/external/cddl/osnet/dist/uts/common/sys/dtrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/dtrace.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.16 src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.17
--- src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.16	Mon May 28 17:05:07 2018
+++ src/external/cddl/osnet/dist/uts/common/sys/dtrace.h	Mon Jun  4 17:36:03 2018
@@ -59,6 +59,7 @@ extern "C" {
 #include 
 #include 
 #include 
+#include 
 #include 
 typedef int model_t;
 #endif



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 22:00:54 UTC 2016

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: stropts.h

Log Message:
sys/conf.h is a kernel only header


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/cddl/osnet/dist/uts/common/sys/stropts.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/stropts.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/stropts.h:1.1.1.1 src/external/cddl/osnet/dist/uts/common/sys/stropts.h:1.2
--- src/external/cddl/osnet/dist/uts/common/sys/stropts.h:1.1.1.1	Fri Aug  7 14:33:49 2009
+++ src/external/cddl/osnet/dist/uts/common/sys/stropts.h	Sun Jan 24 17:00:53 2016
@@ -37,7 +37,9 @@
 /*
  * For FMNAMESZ define.
  */
+#ifdef _KERNEL
 #include 
+#endif
 
 #ifdef	__cplusplus
 extern "C" {



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2016-01-23 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sat Jan 23 15:45:42 UTC 2016

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: debug.h

Log Message:
Omit spurious include of  in dtrace tools build.

Fixes dtrace tools cross-build from architectures with no dtrace
support:

#   compile  libctf/ctf_create.lo
[...]
/export/anoncvs/src/tools/libctf/../../external/cddl/osnet/sys/sys/isa_defs.h:50:2:
 error: #error "architecture not supported"
 #error "architecture not supported"
  ^


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/dist/uts/common/sys/debug.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/debug.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/debug.h:1.2 src/external/cddl/osnet/dist/uts/common/sys/debug.h:1.3
--- src/external/cddl/osnet/dist/uts/common/sys/debug.h:1.2	Tue Dec 14 14:08:42 2010
+++ src/external/cddl/osnet/dist/uts/common/sys/debug.h	Sat Jan 23 15:45:42 2016
@@ -29,7 +29,6 @@
 #ifndef _SYS_DEBUG_H
 #define	_SYS_DEBUG_H
 
-#include 
 #include 
 #include 
 



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2015-10-02 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Fri Oct  2 22:16:39 UTC 2015

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: dtrace.h

Log Message:
Restore some defines lost in last update, and don't include sys/cpuvar.h

MKDTRACE=yes now builds for arm platforms again.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 \
src/external/cddl/osnet/dist/uts/common/sys/dtrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/dtrace.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.13 src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.14
--- src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.13	Thu Sep 24 19:55:00 2015
+++ src/external/cddl/osnet/dist/uts/common/sys/dtrace.h	Fri Oct  2 22:16:38 2015
@@ -57,7 +57,6 @@ extern "C" {
 #ifdef illumos
 #include 
 #else
-#include 
 #include 
 #include 
 #include 
@@ -2450,6 +2449,18 @@ extern void dtrace_helpers_destroy(proc_
 #define DTRACE_INVOP_POPM	2
 #define DTRACE_INVOP_B		3
 
+#define	DTRACE_INVOP_MOV_IP_SP		1
+#define	DTRACE_INVOP_BX_LR		2
+#define	DTRACE_INVOP_MOV_PC_LR		3
+#define	DTRACE_INVOP_LDM		4
+#define	DTRACE_INVOP_LDMIB		5
+#define	DTRACE_INVOP_LDR_IMM		6
+#define	DTRACE_INVOP_MOVW		7
+#define	DTRACE_INVOP_MOV_IMM		8
+#define	DTRACE_INVOP_CMP_IMM		9
+#define	DTRACE_INVOP_B_LABEL		10
+#define	DTRACE_INVOP_PUSH		11
+
 #elif defined(__aarch64__)
 
 #define	INSN_SIZE	4



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2015-09-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 24 19:55:00 UTC 2015

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: dtrace.h

Log Message:
include  explicitly for kthread_t


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
src/external/cddl/osnet/dist/uts/common/sys/dtrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/dtrace.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.12 src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.13
--- src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.12	Thu Sep 24 10:21:35 2015
+++ src/external/cddl/osnet/dist/uts/common/sys/dtrace.h	Thu Sep 24 15:55:00 2015
@@ -58,6 +58,7 @@ extern "C" {
 #include 
 #else
 #include 
+#include 
 #include 
 #include 
 #include 



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2015-09-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 24 14:21:35 UTC 2015

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: ctf_api.h dtrace.h
dtrace_impl.h

Log Message:
sync with FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/cddl/osnet/dist/uts/common/sys/ctf_api.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/cddl/osnet/dist/uts/common/sys/dtrace.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/cddl/osnet/dist/uts/common/sys/dtrace_impl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/ctf_api.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/ctf_api.h:1.3 src/external/cddl/osnet/dist/uts/common/sys/ctf_api.h:1.4
--- src/external/cddl/osnet/dist/uts/common/sys/ctf_api.h:1.3	Sat Mar 13 17:31:15 2010
+++ src/external/cddl/osnet/dist/uts/common/sys/ctf_api.h	Thu Sep 24 10:21:35 2015
@@ -23,6 +23,9 @@
  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
+/*
+ * Copyright (c) 2013, Joyent, Inc.  All rights reserved.
+ */
 
 /*
  * This header file defines the interfaces available from the CTF debugger
@@ -40,8 +43,6 @@
 #ifndef	_CTF_API_H
 #define	_CTF_API_H
 
-/* #pragma ident	"%Z%%M%	%I%	%E% SMI" */
-
 #include 
 #include 
 #include 
@@ -65,10 +66,10 @@ typedef long ctf_id_t;
  * filling in ctf_sect_t structures and passing them to ctf_bufopen():
  */
 typedef struct ctf_sect {
-	char *cts_name;		/* section name (if any) */
+	const char *cts_name;	/* section name (if any) */
 	ulong_t cts_type;	/* section type (ELF SHT_... value) */
 	ulong_t cts_flags;	/* section flags (ELF SHF_... value) */
-#if defined(sun)
+#ifdef illumos
 	const void *cts_data;	/* pointer to section data */
 #else
 	void *cts_data;		/* pointer to section data */
@@ -154,6 +155,7 @@ extern ctf_file_t *ctf_bufopen(const ctf
 extern ctf_file_t *ctf_fdopen(int, int *);
 extern ctf_file_t *ctf_open(const char *, int *);
 extern ctf_file_t *ctf_create(int *);
+extern ctf_file_t *ctf_dup(ctf_file_t *);
 extern void ctf_close(ctf_file_t *);
 
 extern ctf_file_t *ctf_parent_file(ctf_file_t *);
@@ -179,6 +181,8 @@ extern ctf_id_t ctf_lookup_by_symbol(ctf
 extern ctf_id_t ctf_type_resolve(ctf_file_t *, ctf_id_t);
 extern ssize_t ctf_type_lname(ctf_file_t *, ctf_id_t, char *, size_t);
 extern char *ctf_type_name(ctf_file_t *, ctf_id_t, char *, size_t);
+extern char *ctf_type_qname(ctf_file_t *, ctf_id_t, char *, size_t,
+const char *);
 extern ssize_t ctf_type_size(ctf_file_t *, ctf_id_t);
 extern ssize_t ctf_type_align(ctf_file_t *, ctf_id_t);
 extern int ctf_type_kind(ctf_file_t *, ctf_id_t);
@@ -227,6 +231,8 @@ extern int ctf_add_member(ctf_file_t *, 
 
 extern int ctf_set_array(ctf_file_t *, ctf_id_t, const ctf_arinfo_t *);
 
+extern int ctf_delete_type(ctf_file_t *, ctf_id_t);
+
 extern int ctf_update(ctf_file_t *);
 extern int ctf_discard(ctf_file_t *);
 extern int ctf_write(ctf_file_t *, int);

Index: src/external/cddl/osnet/dist/uts/common/sys/dtrace.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.11 src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.12
--- src/external/cddl/osnet/dist/uts/common/sys/dtrace.h:1.11	Sat Mar  7 10:14:29 2015
+++ src/external/cddl/osnet/dist/uts/common/sys/dtrace.h	Thu Sep 24 10:21:35 2015
@@ -20,13 +20,20 @@
  */
 
 /*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
+/*
+ * Copyright (c) 2013, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
+ */
+
 #ifndef _SYS_DTRACE_H
 #define	_SYS_DTRACE_H
 
+/* #pragma ident	"%Z%%M%	%I%	%E% SMI" */
+
 #ifdef	__cplusplus
 extern "C" {
 #endif
@@ -47,22 +54,20 @@ extern "C" {
 #include 
 #include 
 #include 
-#include 
-#if defined(sun)
+#ifdef illumos
 #include 
 #else
-#include 
+#include 
 #include 
 #include 
 #include 
 #include 
+#include 
 typedef int model_t;
 #endif
 #include 
-#if 0
+#ifdef illumos
 #include 
-#endif
-#if defined(sun)
 #include 
 #else
 #include 
@@ -253,6 +258,10 @@ typedef enum dtrace_probespec {
 #define	DIF_VAR_ERRNO		0x0120	/* thread errno */
 #define	DIF_VAR_EXECARGS	0x0121	/* process arguments */
 
+#ifndef illumos
+#define	DIF_VAR_CPU		0x0200
+#endif
+
 #define	DIF_SUBR_RAND			0
 #define	DIF_SUBR_MUTEX_OWNED		1
 #define	DIF_SUBR_MUTEX_OWNER		2
@@ -297,13 +306,18 @@ typedef enum dtrace_probespec {
 #define	DIF_SUBR_INET_NTOP		41
 #define	DIF_SUBR_INET_NTOA		42
 #define	DIF_SUBR_INET_NTOA6		43
-#define	DIF_SUBR_MEMREF			44
-#define	DIF_SUBR_TYPEREF		45
-#define	DIF_SUBR_SX_SHARED_HELD		46
-#define	DIF_SUBR_SX_EXCLUSIVE_HELD	47
-#define	DIF_SUBR_SX_ISEXCLUSIVE		48
-
-#define	DIF_SUBR_MAX			48	/* max subroutine value */
+#define	DIF_SUBR_TOUPPER		44
+#define	DIF_SUBR_TOLOWER		45
+#d

CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2010-12-14 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Wed Dec 15 00:58:58 UTC 2010

Modified Files:
src/external/cddl/osnet/dist/uts/common/sys: note.h

Log Message:
Revert last commit it's not needed anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/dist/uts/common/sys/note.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/uts/common/sys/note.h
diff -u src/external/cddl/osnet/dist/uts/common/sys/note.h:1.2 src/external/cddl/osnet/dist/uts/common/sys/note.h:1.3
--- src/external/cddl/osnet/dist/uts/common/sys/note.h:1.2	Tue Dec 14 14:08:42 2010
+++ src/external/cddl/osnet/dist/uts/common/sys/note.h	Wed Dec 15 00:58:58 2010
@@ -39,7 +39,7 @@
 #ifndef	_SYS_NOTE_H
 #define	_SYS_NOTE_H
 
-/* #pragma ident	"%Z%%M%	%I%	%E% SMI" */
+#pragma ident	"%Z%%M%	%I%	%E% SMI"
 
 #ifdef	__cplusplus
 extern "C" {



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2009-08-10 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Aug 10 22:47:09 UTC 2009

Added Files:
src/external/cddl/osnet/dist/uts/common/sys: priv_names.h

Log Message:
Add missing header file.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/cddl/osnet/dist/uts/common/sys/priv_names.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/cddl/osnet/dist/uts/common/sys/priv_names.h
diff -u /dev/null src/external/cddl/osnet/dist/uts/common/sys/priv_names.h:1.1
--- /dev/null	Mon Aug 10 22:47:09 2009
+++ src/external/cddl/osnet/dist/uts/common/sys/priv_names.h	Mon Aug 10 22:47:09 2009
@@ -0,0 +1,681 @@
+/*
+ * 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
+ * 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 [] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+/*
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Use is subject to license terms.
+ *
+ * Privilege constant definitions.  Privileges and privilege sets
+ * are only known by name and should be mapped at runtime.
+ *
+ * THIS FILE WAS GENERATED; DO NOT EDIT
+ */
+
+
+#ifndef _SYS_PRIV_NAMES_H
+#define	_SYS_PRIV_NAMES_H
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef __PRIV_CONST_IMPL
+/*
+ * Privilege names
+ */
+/*
+ * Allows a process to request critical events without limitation.
+ * Allows a process to request reliable delivery of all events on
+ * any event queue.
+ */
+#define	PRIV_CONTRACT_EVENT	((const char *)"contract_event")
+
+/*
+ * Allows a process to set the service FMRI value of a process
+ * contract template.
+ */
+#define	PRIV_CONTRACT_IDENTITY	((const char *)"contract_identity")
+
+/*
+ * Allows a process to observe contract events generated by
+ * contracts created and owned by users other than the process's
+ * effective user ID.
+ * Allows a process to open contract event endpoints belonging to
+ * contracts created and owned by users other than the process's
+ * effective user ID.
+ */
+#define	PRIV_CONTRACT_OBSERVER	((const char *)"contract_observer")
+
+/*
+ * Allow a process to access per-CPU hardware performance counters.
+ */
+#define	PRIV_CPC_CPU		((const char *)"cpc_cpu")
+
+/*
+ * Allows DTrace kernel-level tracing.
+ */
+#define	PRIV_DTRACE_KERNEL	((const char *)"dtrace_kernel")
+
+/*
+ * Allows DTrace process-level tracing.
+ * Allows process-level tracing probes to be placed and enabled in
+ * processes to which the user has permissions.
+ */
+#define	PRIV_DTRACE_PROC	((const char *)"dtrace_proc")
+
+/*
+ * Allows DTrace user-level tracing.
+ * Allows use of the syscall and profile DTrace providers to
+ * examine processes to which the user has permissions.
+ */
+#define	PRIV_DTRACE_USER	((const char *)"dtrace_user")
+
+/*
+ * Allows a process to change a file's owner user ID.
+ * Allows a process to change a file's group ID to one other than
+ * the process' effective group ID or one of the process'
+ * supplemental group IDs.
+ */
+#define	PRIV_FILE_CHOWN		((const char *)"file_chown")
+
+/*
+ * Allows a process to give away its files; a process with this
+ * privilege will run as if {_POSIX_CHOWN_RESTRICTED} is not
+ * in effect.
+ */
+#define	PRIV_FILE_CHOWN_SELF	((const char *)"file_chown_self")
+
+/*
+ * Allows a process to execute an executable file whose permission
+ * bits or ACL do not allow the process execute permission.
+ */
+#define	PRIV_FILE_DAC_EXECUTE	((const char *)"file_dac_execute")
+
+/*
+ * Allows a process to read a file or directory whose permission
+ * bits or ACL do not allow the process read permission.
+ */
+#define	PRIV_FILE_DAC_READ	((const char *)"file_dac_read")
+
+/*
+ * Allows a process to search a directory whose permission bits or
+ * ACL do not allow the process search permission.
+ */
+#define	PRIV_FILE_DAC_SEARCH	((const char *)"file_dac_search")
+
+/*
+ * Allows a process to write a file or directory whose permission
+ * bits or ACL do not allow the process write permission.
+ * In order to write files owned by uid 0 in the absence of an
+ * effective uid of 0 ALL privileges are required.
+ */
+#define	PRIV_FILE_DAC_WRITE	((const char *)"file_dac_write")
+
+/*
+ * Allows a process to set the sensitivity label of a file or
+ * directory to a sensitivit