Lines Matching refs:rep

1623 record_ancestry(char *file, struct stat *pstatb, struct lbuf *rep,  in record_ancestry()  argument
1649 rep->ancinfo = myinfo; in record_ancestry()
1670 rep->cycle = 1; in record_ancestry()
1766 struct lbuf *rep; in gstat() local
1802 rep = nxtlbf++; in gstat()
1803 flist[nfiles++] = rep; in gstat()
1806 rep = flist[nfiles++]; in gstat()
1810 (void) memset((void *) rep, 0, sizeof (struct lbuf)); in gstat()
1818 return (rep); in gstat()
1822 rep->lat.tv_sec = time(NULL); in gstat()
1823 rep->lct.tv_sec = time(NULL); in gstat()
1824 rep->lmt.tv_sec = time(NULL); in gstat()
1861 rep->lnum = statb.st_ino; in gstat()
1862 rep->lsize = statb.st_size; in gstat()
1863 rep->lblocks = statb.st_blocks; in gstat()
1865 rep->color = ls_color_find(file, statb.st_mode); in gstat()
1869 rep->ltype = 'd'; in gstat()
1871 record_ancestry(file, &statb, rep, in gstat()
1876 rep->ltype = 'b'; in gstat()
1877 rep->lsize = (off_t)statb.st_rdev; in gstat()
1880 rep->ltype = 'c'; in gstat()
1881 rep->lsize = (off_t)statb.st_rdev; in gstat()
1884 rep->ltype = 'p'; in gstat()
1887 rep->ltype = 's'; in gstat()
1888 rep->lsize = 0; in gstat()
1896 rep->ltype = 'l'; in gstat()
1914 rep->link_color = in gstat()
1918 rep->link_color = in gstat()
1944 rep->flinkto = strdup(buf); in gstat()
1945 if (rep->flinkto == NULL) { in gstat()
1970 rep->ltype = 'd'; in gstat()
1971 rep->lsize = statb1.st_size; in gstat()
1973 record_ancestry(file, &statb, rep, in gstat()
1979 rep->ltype = 'D'; in gstat()
1982 rep->ltype = '-'; in gstat()
1985 rep->ltype = 'P'; in gstat()
1988 rep->ltype = '?'; in gstat()
1991 rep->lflags = statb.st_mode & ~S_IFMT; in gstat()
1994 rep->lflags |= LS_NOTREG; in gstat()
1996 rep->luid = statb.st_uid; in gstat()
1997 rep->lgid = statb.st_gid; in gstat()
1998 rep->lnl = statb.st_nlink; in gstat()
2000 rep->lmtime = statb.st_atim; in gstat()
2002 rep->lmtime = statb.st_ctim; in gstat()
2004 rep->lmtime = statb.st_mtim; in gstat()
2005 rep->lat = statb.st_atim; in gstat()
2006 rep->lct = statb.st_ctim; in gstat()
2007 rep->lmt = statb.st_mtim; in gstat()
2012 error = acl_get(file, 0, &rep->aclp); in gstat()
2017 rep->acl = ' '; in gstat()
2019 return (rep); in gstat()
2022 rep->acl = ' '; in gstat()
2024 if (rep->aclp && in gstat()
2025 ((acl_flags(rep->aclp) & ACL_IS_TRIVIAL) == 0)) { in gstat()
2026 rep->acl = '+'; in gstat()
2030 if (acl_type(rep->aclp) == ACLENT_T) { in gstat()
2053 aclcnt = acl_cnt(rep->aclp); in gstat()
2055 (aclent_t *)acl_data(rep->aclp); in gstat()
2072 rep->lflags &= ~S_IRWXG; in gstat()
2080 rep->lflags |= (groupperm & mask) << 3; in gstat()
2082 } else if (acl_type(rep->aclp) == ACE_T) { in gstat()
2084 mode = grp_mask_to_mode(rep); in gstat()
2085 rep->lflags &= ~S_IRWXG; in gstat()
2086 rep->lflags |= mode; in gstat()
2090 if (!vflg && !Vflg && rep->aclp) { in gstat()
2091 acl_free(rep->aclp); in gstat()
2092 rep->aclp = NULL; in gstat()
2096 rep->acl = '@'; in gstat()
2099 rep->acl = ' '; in gstat()
2103 if (rep->ltype != 'b' && rep->ltype != 'c') in gstat()
2104 tblocks += rep->lblocks; in gstat()
2118 rep->exttr = xmalloc(sacnt * sizeof (struct attrb), in gstat()
2119 rep); in gstat()
2123 rep->exttr[i].name = NULL; in gstat()
2124 if (get_sysxattr(file, rep) != 0) { in gstat()
2129 rep->exttr[0].name = xmalloc(2, rep); in gstat()
2130 (void) strlcpy(rep->exttr[0].name, "?", 2); in gstat()
2134 return (rep); in gstat()
2443 get_sysxattr(char *fname, struct lbuf *rep) in get_sysxattr() argument
2461 rep->extm = xmalloc(sacnt * sizeof (struct attrtm), rep); in get_sysxattr()
2463 rep->extm[i].stm = 0; in get_sysxattr()
2464 rep->extm[i].nstm = 0; in get_sysxattr()
2465 rep->extm[i].name = NULL; in get_sysxattr()
2479 set_sysattrb_display(name, value, rep); in get_sysxattr()
2483 set_sysattrtm_display(name, rep); in get_sysxattr()
2494 set_sysattrb_display(char *name, boolean_t val, struct lbuf *rep) in set_sysattrb_display() argument
2505 rep->exttr[fattr].name = xmalloc(len + 1, rep); in set_sysattrb_display()
2506 (void) strlcpy(rep->exttr[fattr].name, name, in set_sysattrb_display()
2509 rep->exttr[fattr].name = xmalloc(len + 3, rep); in set_sysattrb_display()
2510 (void) snprintf(rep->exttr[fattr].name, len + 3, in set_sysattrb_display()
2517 rep->exttr[fattr].name = xmalloc(len + 1, rep); in set_sysattrb_display()
2519 (void) strlcpy(rep->exttr[fattr].name, in set_sysattrb_display()
2522 (void) strlcpy(rep->exttr[fattr].name, in set_sysattrb_display()
2532 set_sysattrtm_display(char *name, struct lbuf *rep) in set_sysattrtm_display() argument
2543 while (rep->extm[i].stm != 0 && i < sacnt) in set_sysattrtm_display()
2545 rep->extm[i].stm = value[0]; in set_sysattrtm_display()
2546 rep->extm[i].nstm = value[1]; in set_sysattrtm_display()
2547 rep->extm[i].name = xmalloc(len + 1, rep); in set_sysattrtm_display()
2548 (void) strlcpy(rep->extm[i].name, name, len + 1); in set_sysattrtm_display()