Lines Matching refs:rep
1652 record_ancestry(char *file, struct stat *pstatb, struct lbuf *rep, in record_ancestry() argument
1678 rep->ancinfo = myinfo; in record_ancestry()
1699 rep->cycle = 1; in record_ancestry()
1795 struct lbuf *rep; in gstat() local
1831 rep = nxtlbf++; in gstat()
1832 flist[nfiles++] = rep; in gstat()
1835 rep = flist[nfiles++]; in gstat()
1839 (void) memset((void *) rep, 0, sizeof (struct lbuf)); in gstat()
1847 return (rep); in gstat()
1850 rep->lat.tv_sec = rep->lct.tv_sec = rep->lmt.tv_sec = starttime; in gstat()
1887 rep->lnum = statb.st_ino; in gstat()
1888 rep->lsize = statb.st_size; in gstat()
1889 rep->lblocks = statb.st_blocks; in gstat()
1891 rep->color = ls_color_find(file, statb.st_mode); in gstat()
1895 rep->ltype = 'd'; in gstat()
1897 record_ancestry(file, &statb, rep, in gstat()
1902 rep->ltype = 'b'; in gstat()
1903 rep->lsize = (off_t)statb.st_rdev; in gstat()
1906 rep->ltype = 'c'; in gstat()
1907 rep->lsize = (off_t)statb.st_rdev; in gstat()
1910 rep->ltype = 'p'; in gstat()
1913 rep->ltype = 's'; in gstat()
1914 rep->lsize = 0; in gstat()
1922 rep->ltype = 'l'; in gstat()
1940 rep->link_color = in gstat()
1944 rep->link_color = in gstat()
1970 rep->flinkto = strdup(buf); in gstat()
1971 if (rep->flinkto == NULL) { in gstat()
1996 rep->ltype = 'd'; in gstat()
1997 rep->lsize = statb1.st_size; in gstat()
1999 record_ancestry(file, &statb, rep, in gstat()
2005 rep->ltype = 'D'; in gstat()
2008 rep->ltype = '-'; in gstat()
2011 rep->ltype = 'P'; in gstat()
2014 rep->ltype = '?'; in gstat()
2017 rep->lflags = statb.st_mode & ~S_IFMT; in gstat()
2020 rep->lflags |= LS_NOTREG; in gstat()
2022 rep->luid = statb.st_uid; in gstat()
2023 rep->lgid = statb.st_gid; in gstat()
2024 rep->lnl = statb.st_nlink; in gstat()
2026 rep->lmtime = statb.st_atim; in gstat()
2028 rep->lmtime = statb.st_ctim; in gstat()
2030 rep->lmtime = statb.st_mtim; in gstat()
2031 rep->lat = statb.st_atim; in gstat()
2032 rep->lct = statb.st_ctim; in gstat()
2033 rep->lmt = statb.st_mtim; in gstat()
2038 error = acl_get(file, 0, &rep->aclp); in gstat()
2043 rep->acl = ' '; in gstat()
2045 return (rep); in gstat()
2048 rep->acl = ' '; in gstat()
2050 if (rep->aclp && in gstat()
2051 ((acl_flags(rep->aclp) & ACL_IS_TRIVIAL) == 0)) { in gstat()
2052 rep->acl = '+'; in gstat()
2056 if (acl_type(rep->aclp) == ACLENT_T) { in gstat()
2079 aclcnt = acl_cnt(rep->aclp); in gstat()
2081 (aclent_t *)acl_data(rep->aclp); in gstat()
2098 rep->lflags &= ~S_IRWXG; in gstat()
2106 rep->lflags |= (groupperm & mask) << 3; in gstat()
2108 } else if (acl_type(rep->aclp) == ACE_T) { in gstat()
2110 mode = grp_mask_to_mode(rep); in gstat()
2111 rep->lflags &= ~S_IRWXG; in gstat()
2112 rep->lflags |= mode; in gstat()
2116 if (!vflg && !Vflg && rep->aclp) { in gstat()
2117 acl_free(rep->aclp); in gstat()
2118 rep->aclp = NULL; in gstat()
2122 rep->acl = '@'; in gstat()
2125 rep->acl = ' '; in gstat()
2129 if (rep->ltype != 'b' && rep->ltype != 'c') in gstat()
2130 tblocks += rep->lblocks; in gstat()
2144 rep->exttr = xmalloc(sacnt * sizeof (struct attrb), in gstat()
2145 rep); in gstat()
2149 rep->exttr[i].name = NULL; in gstat()
2150 if (get_sysxattr(file, rep) != 0) { in gstat()
2155 rep->exttr[0].name = xmalloc(2, rep); in gstat()
2156 (void) strlcpy(rep->exttr[0].name, "?", 2); in gstat()
2160 return (rep); in gstat()
2534 get_sysxattr(char *fname, struct lbuf *rep) in get_sysxattr() argument
2552 rep->extm = xmalloc(sacnt * sizeof (struct attrtm), rep); in get_sysxattr()
2554 rep->extm[i].stm = 0; in get_sysxattr()
2555 rep->extm[i].nstm = 0; in get_sysxattr()
2556 rep->extm[i].name = NULL; in get_sysxattr()
2570 set_sysattrb_display(name, value, rep); in get_sysxattr()
2574 set_sysattrtm_display(name, rep); in get_sysxattr()
2585 set_sysattrb_display(char *name, boolean_t val, struct lbuf *rep) in set_sysattrb_display() argument
2596 rep->exttr[fattr].name = xmalloc(len + 1, rep); in set_sysattrb_display()
2597 (void) strlcpy(rep->exttr[fattr].name, name, in set_sysattrb_display()
2600 rep->exttr[fattr].name = xmalloc(len + 3, rep); in set_sysattrb_display()
2601 (void) snprintf(rep->exttr[fattr].name, len + 3, in set_sysattrb_display()
2608 rep->exttr[fattr].name = xmalloc(len + 1, rep); in set_sysattrb_display()
2610 (void) strlcpy(rep->exttr[fattr].name, in set_sysattrb_display()
2613 (void) strlcpy(rep->exttr[fattr].name, in set_sysattrb_display()
2623 set_sysattrtm_display(char *name, struct lbuf *rep) in set_sysattrtm_display() argument
2634 while (rep->extm[i].stm != 0 && i < sacnt) in set_sysattrtm_display()
2636 rep->extm[i].stm = value[0]; in set_sysattrtm_display()
2637 rep->extm[i].nstm = value[1]; in set_sysattrtm_display()
2638 rep->extm[i].name = xmalloc(len + 1, rep); in set_sysattrtm_display()
2639 (void) strlcpy(rep->extm[i].name, name, len + 1); in set_sysattrtm_display()