Print this page
2916 DTrace in a zone should be able to access fds[]

@@ -19,11 +19,11 @@
  * CDDL HEADER END
  */
 
 /*
  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2011, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  * Copyright (c) 2011 by Delphix. All rights reserved.
  */
 
 #include <sys/types.h>
 #include <sys/modctl.h>

@@ -108,12 +108,13 @@
 #define DT_VERS_1_7     DT_VERSION_NUMBER(1, 7, 0)
 #define DT_VERS_1_7_1   DT_VERSION_NUMBER(1, 7, 1)
 #define DT_VERS_1_8     DT_VERSION_NUMBER(1, 8, 0)
 #define DT_VERS_1_8_1   DT_VERSION_NUMBER(1, 8, 1)
 #define DT_VERS_1_9     DT_VERSION_NUMBER(1, 9, 0)
-#define DT_VERS_LATEST  DT_VERS_1_9
-#define DT_VERS_STRING  "Sun D 1.9"
+#define DT_VERS_1_10    DT_VERSION_NUMBER(1, 10, 0)
+#define DT_VERS_LATEST  DT_VERS_1_10
+#define DT_VERS_STRING  "Sun D 1.10"
 
 const dt_version_t _dtrace_versions[] = {
         DT_VERS_1_0,    /* D API 1.0.0 (PSARC 2001/466) Solaris 10 FCS */
         DT_VERS_1_1,    /* D API 1.1.0 Solaris Express 6/05 */
         DT_VERS_1_2,    /* D API 1.2.0 Solaris 10 Update 1 */

@@ -130,10 +131,11 @@
         DT_VERS_1_7,    /* D API 1.7 */
         DT_VERS_1_7_1,  /* D API 1.7.1 */
         DT_VERS_1_8,    /* D API 1.8 */
         DT_VERS_1_8_1,  /* D API 1.8.1 */
         DT_VERS_1_9,    /* D API 1.9 */
+        DT_VERS_1_10,   /* D API 1.10 */
         0
 };
 
 /*
  * Table of global identifiers.  This is used to populate the global identifier

@@ -243,10 +245,12 @@
         &dt_idops_func, "uint32_t(uint32_t)" },
 { "htonll", DT_IDENT_FUNC, 0, DIF_SUBR_HTONLL, DT_ATTR_EVOLCMN, DT_VERS_1_3,
         &dt_idops_func, "uint64_t(uint64_t)" },
 { "htons", DT_IDENT_FUNC, 0, DIF_SUBR_HTONS, DT_ATTR_EVOLCMN, DT_VERS_1_3,
         &dt_idops_func, "uint16_t(uint16_t)" },
+{ "getf", DT_IDENT_FUNC, 0, DIF_SUBR_GETF, DT_ATTR_STABCMN, DT_VERS_1_10,
+        &dt_idops_func, "file_t *(int)" },
 { "gid", DT_IDENT_SCALAR, 0, DIF_VAR_GID, DT_ATTR_STABCMN, DT_VERS_1_0,
         &dt_idops_type, "gid_t" },
 { "id", DT_IDENT_SCALAR, 0, DIF_VAR_ID, DT_ATTR_STABCMN, DT_VERS_1_0,
         &dt_idops_type, "uint_t" },
 { "index", DT_IDENT_FUNC, 0, DIF_SUBR_INDEX, DT_ATTR_STABCMN, DT_VERS_1_1,