dt_open.c revision 5518d15ba99a47e60869a37937bae1d390395567
0N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A#define _POSIX_PTHREAD_SEMANTICS
123N/A#include <dt_program.h>
335N/A#include <dt_module.h>
123N/A#include <dt_printf.h>
123N/A#include <dt_string.h>
335N/A#include <dt_provider.h>
477N/A * hash when a new dtrace client open occurs. For more info see dt_ident.h.
{ NULL, { 0, 0, 0 }, 0 }
{ NULL, { 0, 0, 0 }, 0 }
{ NULL, 0, 0, 0, { 0, 0, 0 }, 0 }
typedef struct dt_fdlist {
} dt_fdlist_t;
_dtrace_init(void)
static dtrace_hdl_t *
return (NULL);
int fd;
char *p = buf;
return (buf);
static dtrace_hdl_t *
int i, err;
if (version <= 0)
switch (err) {
case ENOENT:
case EBUSY:
case EACCES:
for (i = 0; i < DTRACEOPT_MAX; i++)
#ifdef __sparc
* On SPARC systems, __sparc is always defined for <sys/isa_defs.h>
#ifdef __x86
* On x86 systems, __i386 is defined for <sys/isa_defs.h> for 32-bit
* format dictionary types (see table in dt_printf.c).
* This ensures that basic inttypes.h names are always available to us.
return (dtp);
if (i < nmods)