Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
Show First 20 Lines • Show All 1,167 Lines • ▼ Show 20 Lines | #endif | ||||
dtp->dt_linkmode = DT_LINK_KERNEL; | dtp->dt_linkmode = DT_LINK_KERNEL; | ||||
dtp->dt_linktype = DT_LTYP_ELF; | dtp->dt_linktype = DT_LTYP_ELF; | ||||
dtp->dt_xlatemode = DT_XL_STATIC; | dtp->dt_xlatemode = DT_XL_STATIC; | ||||
dtp->dt_stdcmode = DT_STDC_XA; | dtp->dt_stdcmode = DT_STDC_XA; | ||||
dtp->dt_encoding = DT_ENCODING_UNSET; | dtp->dt_encoding = DT_ENCODING_UNSET; | ||||
dtp->dt_version = version; | dtp->dt_version = version; | ||||
dtp->dt_fd = dtfd; | dtp->dt_fd = dtfd; | ||||
dtp->dt_ftfd = ftfd; | dtp->dt_ftfd = ftfd; | ||||
dtp->dt_kinstfd = -1; | |||||
dtp->dt_fterr = fterr; | dtp->dt_fterr = fterr; | ||||
dtp->dt_cdefs_fd = -1; | dtp->dt_cdefs_fd = -1; | ||||
dtp->dt_ddefs_fd = -1; | dtp->dt_ddefs_fd = -1; | ||||
#ifdef illumos | #ifdef illumos | ||||
dtp->dt_stdout_fd = -1; | dtp->dt_stdout_fd = -1; | ||||
#else | #else | ||||
dtp->dt_freopen_fp = NULL; | dtp->dt_freopen_fp = NULL; | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 492 Lines • ▼ Show 20 Lines | #endif | ||||
while ((pvp = dt_list_next(&dtp->dt_provlist)) != NULL) | while ((pvp = dt_list_next(&dtp->dt_provlist)) != NULL) | ||||
dt_provider_destroy(dtp, pvp); | dt_provider_destroy(dtp, pvp); | ||||
if (dtp->dt_fd != -1) | if (dtp->dt_fd != -1) | ||||
(void) close(dtp->dt_fd); | (void) close(dtp->dt_fd); | ||||
if (dtp->dt_ftfd != -1) | if (dtp->dt_ftfd != -1) | ||||
(void) close(dtp->dt_ftfd); | (void) close(dtp->dt_ftfd); | ||||
if (dtp->dt_kinstfd != -1) | |||||
(void) close(dtp->dt_kinstfd); | |||||
if (dtp->dt_cdefs_fd != -1) | if (dtp->dt_cdefs_fd != -1) | ||||
(void) close(dtp->dt_cdefs_fd); | (void) close(dtp->dt_cdefs_fd); | ||||
if (dtp->dt_ddefs_fd != -1) | if (dtp->dt_ddefs_fd != -1) | ||||
(void) close(dtp->dt_ddefs_fd); | (void) close(dtp->dt_ddefs_fd); | ||||
#ifdef illumos | #ifdef illumos | ||||
if (dtp->dt_stdout_fd != -1) | if (dtp->dt_stdout_fd != -1) | ||||
(void) close(dtp->dt_stdout_fd); | (void) close(dtp->dt_stdout_fd); | ||||
#else | #else | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |