dt_open.c revision 351346db78e7d5dac04264f450c72c245c259b06
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#define _POSIX_PTHREAD_SEMANTICS
2N/A#include <dt_program.h>
2N/A#include <dt_module.h>
2N/A#include <dt_printf.h>
2N/A#include <dt_string.h>
2N/A#include <dt_provider.h>
2N/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)