/illumos-gate/usr/src/lib/libast/common/tm/ |
H A D | tmtype.c | 45 register Tm_zone_t* zp; local 49 zp = tm_info.local; 52 if ((t = zp->type) && tmword(s, e, t, NiL, 0)) return(zp); 53 if (zp == tm_info.local) zp = tm_data.zone; 54 else zp++; 55 } while (zp->standard);
|
H A D | tmzone.c | 51 register Tm_zone_t* zp; local 68 zp = tm_info.local; 72 if (zp->type) 73 prev = zp->type; 76 if (tmword(name, end, zp->standard, NiL, 0)) 80 return zp; 82 if (zp->dst && zp->daylight && tmword(name, end, zp->daylight, NiL, 0)) 85 *dst = zp [all...] |
H A D | tminit.c | 178 Tm_zone_t* zp; local 188 tm_info.local->type = (n && *v) ? ((zp = tmtype(v, NiL)) ? zp->type : strdup(v)) : 0; 207 register Tm_zone_t* zp; local 343 for (zp = tm_data.zone; zp->standard; zp++) 345 if (zp->type) 346 t = zp->type; 347 if (zp 441 tminit(register Tm_zone_t* zp) argument [all...] |
H A D | tmxfmt.c | 117 Tm_zone_t* zp; local 380 if ((zp = tm->tm_zone) != tm_info.local) 381 for (; zp >= tm_data.zone; zp--) 382 if (p = zp->type) 384 else if (p = zp->type) 503 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp) 504 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp); 513 if ((zp [all...] |
H A D | tmxscan.c | 184 Tm_zone_t* zp; local 374 if (zp = tmtype(s, &u)) 377 u = zp->type; 384 if ((zp = tmzone(s, &u, u, &m))) 387 set.zone = zp->west + m; 388 tm_info.date = zp;
|
/illumos-gate/usr/src/lib/libbc/libc/gen/4.2/ |
H A D | timezone.c | 65 register struct zone *zp; local 85 for (zp=zonetab; zp->offset!=-1; zp++) 86 if (zp->offset==zone) { 87 if (dst && zp->dlzone) 88 return(zp->dlzone); 89 if (!dst && zp->stdzone) 90 return(zp->stdzone);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_byteswap.c | 161 znode_phys_t *zp = buf; local 165 zp->zp_crtime[0] = BSWAP_64(zp->zp_crtime[0]); 166 zp->zp_crtime[1] = BSWAP_64(zp->zp_crtime[1]); 167 zp->zp_atime[0] = BSWAP_64(zp->zp_atime[0]); 168 zp->zp_atime[1] = BSWAP_64(zp->zp_atime[1]); 169 zp [all...] |
H A D | zfs_sa.c | 71 zfs_sa_readlink(znode_t *zp, uio_t *uio) argument 73 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); 77 bufsz = zp->z_size; 84 if ((error = dmu_buf_hold(zp->z_zfsvfs->z_os, zp->z_id, 95 zfs_sa_symlink(znode_t *zp, char *link, int len, dmu_tx_t *tx) argument 97 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); 109 zfs_grow_blocksize(zp, len, tx); 110 VERIFY(0 == dmu_buf_hold(zp->z_zfsvfs->z_os, 111 zp 122 zfs_sa_get_scanstamp(znode_t *zp, xvattr_t *xvap) argument 156 zfs_sa_set_scanstamp(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx) argument 198 znode_t *zp = sa_get_userdata(hdl); local 319 zfs_sa_upgrade_txholds(dmu_tx_t *tx, znode_t *zp) argument [all...] |
H A D | zfs_znode.c | 117 znode_t *zp = buf; local 119 ASSERT(!POINTER_IS_VALID(zp->z_zfsvfs)); 121 zp->z_vnode = vn_alloc(kmflags); 122 if (zp->z_vnode == NULL) { 125 ZTOV(zp)->v_data = zp; 127 list_link_init(&zp->z_link_node); 129 mutex_init(&zp->z_lock, NULL, MUTEX_DEFAULT, NULL); 130 rw_init(&zp->z_parent_lock, NULL, RW_DEFAULT, NULL); 131 rw_init(&zp 148 znode_t *zp = buf; local 478 znode_t *zp; local 575 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, dmu_buf_t *db, dmu_object_type_t obj_type, sa_handle_t *sa_hdl) argument 606 zfs_znode_dmu_fini(znode_t *zp) argument 627 znode_t *zp; local 1011 zfs_xvattr_set(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx) argument 1106 znode_t *zp; local 1181 zfs_rezget(znode_t *zp) argument 1262 zfs_znode_delete(znode_t *zp, dmu_tx_t *tx) argument 1281 zfs_zinactive(znode_t *zp) argument 1334 zfs_znode_free(znode_t *zp) argument 1358 zfs_tstamp_update_setup(znode_t *zp, uint_t flag, uint64_t mtime[2], uint64_t ctime[2], boolean_t have_tx) argument 1401 zfs_grow_blocksize(znode_t *zp, uint64_t size, dmu_tx_t *tx) argument 1450 zfs_extend(znode_t *zp, uint64_t end) argument 1526 zfs_free_range(znode_t *zp, uint64_t off, uint64_t len) argument 1564 zfs_trunc(znode_t *zp, uint64_t end) argument 1657 zfs_freesp(znode_t *zp, uint64_t off, uint64_t len, int flag, boolean_t log) argument 1737 znode_t *zp; local [all...] |
H A D | zfs_dir.c | 384 znode_t *zp; local 408 error = zfs_zget(zfsvfs, parent, &zp); 410 *vpp = ZTOV(zp); 421 error = zfs_dirent_lock(&dl, dzp, name, &zp, zf, deflg, rpnp); 423 *vpp = ZTOV(zp); 451 zfs_unlinked_add(znode_t *zp, dmu_tx_t *tx) argument 453 zfsvfs_t *zfsvfs = zp->z_zfsvfs; 455 ASSERT(zp->z_unlinked); 456 ASSERT(zp->z_links == 0); 459 zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp 472 znode_t *zp; local 583 zfs_rmnode(znode_t *zp) argument 694 zfs_dirent(znode_t *zp, uint64_t mode) argument 707 zfs_link_create(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag) argument 778 zfs_dropname(zfs_dirlock_t *dl, znode_t *zp, znode_t *dzp, dmu_tx_t *tx, int flag) argument 809 zfs_link_destroy(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag, boolean_t *unlinkedp) argument 924 zfs_make_xattrdir(znode_t *zp, vattr_t *vap, vnode_t **xvpp, cred_t *cr) argument 1000 zfs_get_xattrdir(znode_t *zp, vnode_t **xvpp, cred_t *cr, int flags) argument 1069 zfs_sticky_remove_access(znode_t *zdp, znode_t *zp, cred_t *cr) argument [all...] |
H A D | zfs_vnops.c | 100 * must be checked with ZFS_VERIFY_ZP(zp). Both of these macros 106 * can be freed, so the zp may point to freed memory. Second, the last 192 znode_t *zp = VTOZ(*vpp); local 193 zfsvfs_t *zfsvfs = zp->z_zfsvfs; 196 ZFS_VERIFY_ZP(zp); 198 if ((flag & FWRITE) && (zp->z_pflags & ZFS_APPENDONLY) && 204 if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan && 205 ZTOV(zp)->v_type == VREG && 206 !(zp 226 znode_t *zp = VTOZ(vp); local 258 znode_t *zp = VTOZ(vp); local 307 znode_t *zp; local 457 znode_t *zp = VTOZ(vp); local 510 znode_t *zp = VTOZ(vp); local 654 znode_t *zp = VTOZ(vp); local 1017 znode_t *zp = zgd->zgd_private; local 1049 znode_t *zp; local 1172 znode_t *zp = VTOZ(vp); local 1379 znode_t *zp, *dzp = VTOZ(dvp); local 1632 znode_t *zp, *dzp = VTOZ(dvp); local 1870 znode_t *zp, *dzp = VTOZ(dvp); local 2052 znode_t *zp; local 2189 znode_t *zp = VTOZ(vp); local 2456 znode_t *zp = VTOZ(vp); local 2501 znode_t *zp = VTOZ(vp); local 2706 znode_t *zp = VTOZ(vp); local 3356 znode_t *zp = tdzp; local 3810 znode_t *zp, *dzp = VTOZ(dvp); local 3963 znode_t *zp = VTOZ(vp); local 4178 znode_t *zp = VTOZ(vp); local 4293 znode_t *zp = VTOZ(vp); local 4383 znode_t *zp = VTOZ(vp); local 4468 znode_t *zp = VTOZ(vp); local 4499 znode_t *zp = VTOZ(vp); local 4595 znode_t *zp = VTOZ(vp); local 4680 znode_t *zp = VTOZ(vp); local 4824 znode_t *zp = VTOZ(vp); local 4873 znode_t *zp = VTOZ(vp); local 4934 znode_t *zp, *xzp; local 5005 znode_t *zp = VTOZ(vp); local 5023 znode_t *zp = VTOZ(vp); local 5057 znode_t *zp = VTOZ(vp); local [all...] |
H A D | zfs_log.c | 236 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp, 282 lr->lr_foid = zp->z_id; 283 lr->lr_mode = zp->z_mode; 284 if (!IS_EPHEMERAL(zp->z_uid)) { 285 lr->lr_uid = (uint64_t)zp->z_uid; 289 if (!IS_EPHEMERAL(zp->z_gid)) { 290 lr->lr_gid = (uint64_t)zp->z_gid; 294 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(zp->z_zfsvfs), &lr->lr_gen, 296 (void) sa_lookup(zp 235 zfs_log_create(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp, zfs_fuid_info_t *fuidp, vattr_t *vap) argument 371 zfs_log_link(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name) argument 394 zfs_log_symlink(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name, char *link) argument 454 zfs_log_write(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, offset_t off, ssize_t resid, int ioflag) argument 531 zfs_log_truncate(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, uint64_t off, uint64_t len) argument 554 zfs_log_setattr(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, vattr_t *vap, uint_t mask_applied, zfs_fuid_info_t *fuidp) argument 616 zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp, vsecattr_t *vsecp, zfs_fuid_info_t *fuidp) argument [all...] |
H A D | zfs_acl.c | 333 zfs_external_acl(znode_t *zp) argument 338 if (zp->z_is_sa) 350 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zp->z_zfsvfs), 358 VERIFY(zp->z_is_sa && error == ENOENT); 370 zfs_acl_znode_info(znode_t *zp, int *aclsize, int *aclcount, argument 373 zfsvfs_t *zfsvfs = zp->z_zfsvfs; 378 ASSERT(MUTEX_HELD(&zp->z_acl_lock)); 379 if (zp->z_is_sa) { 380 if ((error = sa_size(zp 405 zfs_znode_acl_version(znode_t *zp) argument 447 zfs_acl_version_zp(znode_t *zp) argument 805 zfs_acl_xform(znode_t *zp, zfs_acl_t *aclp, cred_t *cr) argument 1061 zfs_acl_node_read(znode_t *zp, boolean_t have_lock, zfs_acl_t **aclpp, boolean_t will_modify) argument 1159 zfs_acl_chown_setattr(znode_t *zp) argument 1181 zfs_aclset_common(znode_t *zp, zfs_acl_t *aclp, cred_t *cr, dmu_tx_t *tx) argument 1454 zfs_acl_chmod_setattr(znode_t *zp, zfs_acl_t **aclp, uint64_t mode) argument 1766 zfs_getacl(znode_t *zp, vsecattr_t *vsecp, boolean_t skipaclchk, cred_t *cr) argument 1921 zfs_setacl(znode_t *zp, vsecattr_t *vsecp, boolean_t skipaclchk, cred_t *cr) argument 2028 zfs_zaccess_dataset_check(znode_t *zp, uint32_t v4_mode) argument 2087 zfs_zaccess_aces_check(znode_t *zp, uint32_t *working_mode, boolean_t anyaccess, cred_t *cr) argument 2210 zfs_has_access(znode_t *zp, cred_t *cr) argument 2224 zfs_zaccess_common(znode_t *zp, uint32_t v4_mode, uint32_t *working_mode, boolean_t *check_privs, boolean_t skipaclchk, cred_t *cr) argument 2260 zfs_zaccess_append(znode_t *zp, uint32_t *working_mode, boolean_t *check_privs, cred_t *cr) argument 2344 zfs_zaccess(znode_t *zp, int mode, int flags, boolean_t skipaclchk, cred_t *cr) argument 2497 zfs_zaccess_rwx(znode_t *zp, mode_t mode, int flags, cred_t *cr) argument 2506 zfs_zaccess_unix(znode_t *zp, mode_t mode, cred_t *cr) argument 2587 zfs_zaccess_delete(znode_t *dzp, znode_t *zp, cred_t *cr) argument [all...] |
H A D | zfs_rlock.c | 37 * rl = zfs_range_lock(zp, off, len, lock_type); 104 zfs_range_lock_writer(znode_t *zp, rl_t *new) argument 106 avl_tree_t *tree = &zp->z_range_avl; 125 if (zp->z_vnode) { /* caller is ZPL */ 131 new->r_off = zp->z_size; 138 end_size = MAX(zp->z_size, new->r_off + len); 139 if (end_size > zp->z_blksz && (!ISP2(zp->z_blksz) || 140 zp->z_blksz < zp 356 zfs_range_lock_reader(znode_t *zp, rl_t *new) argument 426 zfs_range_lock(znode_t *zp, uint64_t off, uint64_t len, rl_type_t type) argument 463 zfs_range_unlock_reader(znode_t *zp, rl_t *remove) argument 532 znode_t *zp = rl->r_zp; local 570 znode_t *zp = rl->r_zp; local [all...] |
H A D | zfs_replay.c | 567 znode_t *dzp, *zp; local 577 if ((error = zfs_zget(zfsvfs, lr->lr_link_obj, &zp)) != 0) { 585 error = VOP_LINK(ZTOV(dzp), ZTOV(zp), name, kcred, NULL, vflg); 587 VN_RELE(ZTOV(zp)); 629 znode_t *zp; local 637 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) { 672 if (zp->z_size < eod) 676 error = vn_rdwr(UIO_WRITE, ZTOV(zp), data, length, offset, 679 VN_RELE(ZTOV(zp)); 694 znode_t *zp; local 739 znode_t *zp; local 766 znode_t *zp; local 820 znode_t *zp; local 864 znode_t *zp; local [all...] |
H A D | zio.c | 737 void *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, 745 ASSERT(zp->zp_checksum >= ZIO_CHECKSUM_OFF && 746 zp->zp_checksum < ZIO_CHECKSUM_FUNCTIONS && 747 zp->zp_compress >= ZIO_COMPRESS_OFF && 748 zp->zp_compress < ZIO_COMPRESS_FUNCTIONS && 749 DMU_OT_IS_VALID(zp->zp_type) && 750 zp->zp_level < 32 && 751 zp->zp_copies > 0 && 752 zp->zp_copies <= spa_max_replication(spa)); 762 zio->io_prop = *zp; 736 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, void *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, zio_done_func_t *ready, zio_done_func_t *children_ready, zio_done_func_t *physdone, zio_done_func_t *done, void *private, zio_priority_t priority, enum zio_flag flags, const zbookmark_phys_t *zb) argument 1148 zio_prop_t *zp = &zio->io_prop; local 1201 zio_prop_t *zp = &zio->io_prop; local 2091 zio_prop_t zp; local 2224 zio_prop_t *zp = &zio->io_prop; local 2503 zio_prop_t *zp = &zio->io_prop; local 2534 zio_prop_t *zp = &zio->io_prop; local [all...] |
H A D | zfs_vfsops.c | 841 zfs_owner_overquota(zfsvfs_t *zfsvfs, znode_t *zp, boolean_t isgroup) argument 848 fuid = isgroup ? zp->z_gid : zp->z_uid; 1439 znode_t *zp = NULL; local 1496 if (error = zfs_zget(zfsvfs, zfsvfs->z_root, &zp)) { 1501 vp = ZTOV(zp); 1738 znode_t *zp; local 1782 for (zp = list_head(&zfsvfs->z_all_znodes); zp != NULL; 1783 zp 1914 znode_t *zp; local 2026 znode_t *zp; local [all...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | waitpid.c | 99 register struct zombie* zp; 114 zp = zombies; 115 while (zp) 117 if (zp->pid >= 0 && (zp->pid == pid || pid <= 0)) 119 if (pp) pp->next = zp->next; 120 else zombies = zp->next; 121 if (status) *status = zp->status; 122 pid = zp->pid; 123 free(zp); [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | zfs_znode.h | 69 #define ZFS_ATTR_SET(zp, attr, value, pflags, tx) \ 75 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zp->z_zfsvfs), \ 241 #define ZFS_VERIFY_ZP(zp) \ 242 if ((zp)->z_sa_hdl == NULL) { \ 243 ZFS_EXIT((zp)->z_zfsvfs); \ 281 #define ZFS_ACCESSTIME_STAMP(zfsvfs, zp) \ 283 zfs_tstamp_update_setup(zp, ACCESSED, NULL, NULL, B_FALSE); 310 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *, zfs_fuid_info_t *, 318 znode_t *dzp, znode_t *zp, cha [all...] |
H A D | zfs_rlock.h | 63 rl_t *zfs_range_lock(znode_t *zp, uint64_t off, uint64_t len, rl_type_t type);
|
/illumos-gate/usr/src/cmd/zic/ |
H A D | zic.c | 125 static void outzone(const struct zone *zp, int ntzones); 743 register struct zone *zp; local 778 zp = &zones[i]; 779 zp->z_rules = NULL; 780 zp->z_nrules = 0; 788 zp = &zones[i]; 789 if (strcmp(zp->z_rule, rp->r_name) != 0) 791 zp->z_rules = rp; 792 zp->z_nrules = out - base; 796 zp 1635 register const struct zone *zp; local [all...] |
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 512 struct uproc *zp; local 532 for (zp = up->p_child->p_sibling; zp; zp = zp->p_sibling) { 533 showproc(zp); 584 struct uproc *zp; local 607 for (zp = up->p_child->p_sibling; zp; zp [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/perf/scripts/ |
H A D | io.d | 52 this->zp = (znode_t *)args[0]->v_data; 53 this->poolname = stringof(this->zp->z_zfsvfs->z_os->os_spa->spa_name);
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_vfsops.c | 558 struct zone *zp; local 568 zp = curproc->p_zone; 570 zp = tm->tm_vfsp->vfs_zone; 572 if (zp == NULL) 575 eff_zid = zp->zone_id; 606 zp->zone_max_swap_ctl != UINT64_MAX) { 614 mutex_enter(&zp->zone_mem_lock); 615 cap = zp->zone_max_swap_ctl; 616 used = zp->zone_max_swap; 617 mutex_exit(&zp [all...] |
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_swap.c | 457 struct zone *zp = curproc->p_zone; local 494 if (!global && zp->zone_max_swap_ctl != UINT64_MAX) { 554 mutex_enter(&zp->zone_mem_lock); 555 cap = zp->zone_max_swap_ctl; 556 used = zp->zone_max_swap; 557 mutex_exit(&zp->zone_mem_lock); 605 if (zp->zone_max_swap_ctl != UINT64_MAX) { 608 mutex_enter(&zp->zone_mem_lock); 609 cap = zp->zone_max_swap_ctl; 610 used = zp 794 struct zone *zp = curproc->p_zone; local [all...] |