Lines Matching refs:rep
1601 record_ancestry(char *file, struct stat *pstatb, struct lbuf *rep, in record_ancestry() argument
1627 rep->ancinfo = myinfo; in record_ancestry()
1648 rep->cycle = 1; in record_ancestry()
1744 struct lbuf *rep; in gstat() local
1780 rep = nxtlbf++; in gstat()
1781 flist[nfiles++] = rep; in gstat()
1784 rep = flist[nfiles++]; in gstat()
1789 rep->lflags = (mode_t)0; in gstat()
1790 rep->flinkto = NULL; in gstat()
1791 rep->cycle = 0; in gstat()
1792 rep->lat.tv_sec = time(NULL); in gstat()
1793 rep->lat.tv_nsec = 0; in gstat()
1794 rep->lct.tv_sec = time(NULL); in gstat()
1795 rep->lct.tv_nsec = 0; in gstat()
1796 rep->lmt.tv_sec = time(NULL); in gstat()
1797 rep->lmt.tv_nsec = 0; in gstat()
1798 rep->exttr = NULL; in gstat()
1799 rep->extm = NULL; in gstat()
1800 rep->color = NULL; in gstat()
1801 rep->link_color = NULL; in gstat()
1838 rep->lnum = statb.st_ino; in gstat()
1839 rep->lsize = statb.st_size; in gstat()
1840 rep->lblocks = statb.st_blocks; in gstat()
1842 rep->color = ls_color_find(file, statb.st_mode); in gstat()
1846 rep->ltype = 'd'; in gstat()
1848 record_ancestry(file, &statb, rep, in gstat()
1853 rep->ltype = 'b'; in gstat()
1854 rep->lsize = (off_t)statb.st_rdev; in gstat()
1857 rep->ltype = 'c'; in gstat()
1858 rep->lsize = (off_t)statb.st_rdev; in gstat()
1861 rep->ltype = 'p'; in gstat()
1864 rep->ltype = 's'; in gstat()
1865 rep->lsize = 0; in gstat()
1873 rep->ltype = 'l'; in gstat()
1891 rep->link_color = in gstat()
1895 rep->link_color = in gstat()
1921 rep->flinkto = strdup(buf); in gstat()
1942 rep->ltype = 'd'; in gstat()
1943 rep->lsize = statb1.st_size; in gstat()
1945 record_ancestry(file, &statb, rep, in gstat()
1951 rep->ltype = 'D'; in gstat()
1954 rep->ltype = '-'; in gstat()
1957 rep->ltype = 'P'; in gstat()
1960 rep->ltype = '?'; in gstat()
1963 rep->lflags = statb.st_mode & ~S_IFMT; in gstat()
1966 rep->lflags |= LS_NOTREG; in gstat()
1968 rep->luid = statb.st_uid; in gstat()
1969 rep->lgid = statb.st_gid; in gstat()
1970 rep->lnl = statb.st_nlink; in gstat()
1972 rep->lmtime = statb.st_atim; in gstat()
1974 rep->lmtime = statb.st_ctim; in gstat()
1976 rep->lmtime = statb.st_mtim; in gstat()
1977 rep->lat = statb.st_atim; in gstat()
1978 rep->lct = statb.st_ctim; in gstat()
1979 rep->lmt = statb.st_mtim; in gstat()
1984 error = acl_get(file, 0, &rep->aclp); in gstat()
1989 rep->acl = ' '; in gstat()
1991 return (rep); in gstat()
1994 rep->acl = ' '; in gstat()
1996 if (rep->aclp && in gstat()
1997 ((acl_flags(rep->aclp) & ACL_IS_TRIVIAL) == 0)) { in gstat()
1998 rep->acl = '+'; in gstat()
2002 if (acl_type(rep->aclp) == ACLENT_T) { in gstat()
2025 aclcnt = acl_cnt(rep->aclp); in gstat()
2027 (aclent_t *)acl_data(rep->aclp); in gstat()
2044 rep->lflags &= ~S_IRWXG; in gstat()
2052 rep->lflags |= (groupperm & mask) << 3; in gstat()
2054 } else if (acl_type(rep->aclp) == ACE_T) { in gstat()
2056 mode = grp_mask_to_mode(rep); in gstat()
2057 rep->lflags &= ~S_IRWXG; in gstat()
2058 rep->lflags |= mode; in gstat()
2062 if (!vflg && !Vflg && rep->aclp) { in gstat()
2063 acl_free(rep->aclp); in gstat()
2064 rep->aclp = NULL; in gstat()
2068 rep->acl = '@'; in gstat()
2071 rep->acl = ' '; in gstat()
2075 if (rep->ltype != 'b' && rep->ltype != 'c') in gstat()
2076 tblocks += rep->lblocks; in gstat()
2090 rep->exttr = xmalloc(sacnt * sizeof (struct attrb), in gstat()
2091 rep); in gstat()
2095 rep->exttr[i].name = NULL; in gstat()
2096 if (get_sysxattr(file, rep) != 0) { in gstat()
2101 rep->exttr[0].name = xmalloc(2, rep); in gstat()
2102 (void) strlcpy(rep->exttr[0].name, "?", 2); in gstat()
2106 return (rep); in gstat()
2494 get_sysxattr(char *fname, struct lbuf *rep) in get_sysxattr() argument
2512 rep->extm = xmalloc(sacnt * sizeof (struct attrtm), rep); in get_sysxattr()
2514 rep->extm[i].stm = 0; in get_sysxattr()
2515 rep->extm[i].nstm = 0; in get_sysxattr()
2516 rep->extm[i].name = NULL; in get_sysxattr()
2530 set_sysattrb_display(name, value, rep); in get_sysxattr()
2534 set_sysattrtm_display(name, rep); in get_sysxattr()
2545 set_sysattrb_display(char *name, boolean_t val, struct lbuf *rep) in set_sysattrb_display() argument
2556 rep->exttr[fattr].name = xmalloc(len + 1, rep); in set_sysattrb_display()
2557 (void) strlcpy(rep->exttr[fattr].name, name, in set_sysattrb_display()
2560 rep->exttr[fattr].name = xmalloc(len + 3, rep); in set_sysattrb_display()
2561 (void) snprintf(rep->exttr[fattr].name, len + 3, in set_sysattrb_display()
2568 rep->exttr[fattr].name = xmalloc(len + 1, rep); in set_sysattrb_display()
2570 (void) strlcpy(rep->exttr[fattr].name, in set_sysattrb_display()
2573 (void) strlcpy(rep->exttr[fattr].name, in set_sysattrb_display()
2583 set_sysattrtm_display(char *name, struct lbuf *rep) in set_sysattrtm_display() argument
2594 while (rep->extm[i].stm != 0 && i < sacnt) in set_sysattrtm_display()
2596 rep->extm[i].stm = value[0]; in set_sysattrtm_display()
2597 rep->extm[i].nstm = value[1]; in set_sysattrtm_display()
2598 rep->extm[i].name = xmalloc(len + 1, rep); in set_sysattrtm_display()
2599 (void) strlcpy(rep->extm[i].name, name, len + 1); in set_sysattrtm_display()