Lines Matching defs:attrinfo

456     attr_data_t *attrinfo, int filetype, int lev, int symlink_lev);
499 attr_data_t **attrinfo);
525 static int read_xattr_hdr(attr_data_t **attrinfo);
1818 putfile(char *longname, char *shortname, char *parent, attr_data_t *attrinfo,
1859 attrparent = attrinfo->attr_parent;
1860 longattrname = attrinfo->attr_path;
1861 dirfd = attrinfo->attr_parentfd;
1862 rw_sysattr = attrinfo->attr_rw_sysattr;
2800 * attrinfo->parent = NULL
2803 * attrinfo->parent = NULL
2808 * attrinfo->parent = <attr>
2813 * attrinfo->parent = <attr>
2820 * On succesful return, attrinfo->parentfd will be the file descriptor of the
2822 * extended system attribute, attrinfo->rw_sysattr will be set to 1, otherwise
2840 open_attr_dir(char *attrname, char *dirp, int cwd, attr_data_t *attrinfo)
2843 int firsttime = (attrinfo->attr_parentfd == -1);
2853 (void) close(attrinfo->attr_parentfd);
2854 attrinfo->attr_parentfd = -1;
2867 if ((attrinfo->attr_parentfd = attropen(dirp, ".", O_RDONLY)) == -1) {
2873 if ((attrinfo->attr_parentfd = retry_open_attr(-1, cwd, dirp,
2880 (void) close(attrinfo->attr_parentfd);
2881 attrinfo->attr_parentfd = -1;
2891 if ((Hiddendir == 0) || (firsttime && attrinfo->attr_parent != NULL)) {
2892 if (fchdir(attrinfo->attr_parentfd) != 0) {
2894 (void) close(attrinfo->attr_parentfd);
2895 attrinfo->attr_parentfd = -1;
2902 if ((rc = verify_attr(attrname, attrinfo->attr_parent, 1,
2903 &attrinfo->attr_rw_sysattr)) != ATTR_OK) {
2905 (void) close(attrinfo->attr_parentfd);
2906 attrinfo->attr_parentfd = -1;
2917 if (firsttime && (attrinfo->attr_parent != NULL)) {
2918 return (open_attr_dir(attrname, attrinfo->attr_parent,
2919 attrinfo->attr_parentfd, attrinfo));
2949 attr_data_t *attrinfo = NULL; /* attribute info */
2997 &attrinfo)) == 0) {
3043 attrinfo)) != ATTR_OK)) {
3049 dirp, attrinfo->attr_path);
3054 attrinfo->attr_rw_sysattr ? gettext(
3066 dirfd = attrinfo->attr_parentfd;
3067 rw_sysattr = attrinfo->attr_rw_sysattr;
3173 if (attrinfo->attr_parent == NULL) {
3381 (attrinfo->attr_parent == NULL) ?
3382 dirp : attrinfo->attr_parent);
3480 dirp, attrinfo->attr_parent, comp,
4149 attr_data_t *attrinfo = NULL;
4165 if ((want = wantit(argv, &namep, &dirp, &comp, &attrinfo)) == 0)
4197 char *bn = basename(attrinfo->attr_path);
4215 attrinfo->attr_path);
5708 attr_data_t **attrinfo)
5746 (void) read_xattr_hdr(attrinfo);
5769 attr_data_t *ainfo = *attrinfo;
5869 int rw_sysattr, attr_data_t **attrinfo)
5913 if (*attrinfo == NULL) {
5914 if ((*attrinfo = malloc(sizeof (attr_data_t))) == NULL) {
5929 if ((*attrinfo)->attr_parent != NULL) {
5930 free((*attrinfo)->attr_parent);
5932 if ((*attrinfo)->attr_path != NULL) {
5933 free((*attrinfo)->attr_path);
5941 (*attrinfo)->attr_parent = tparent;
5942 (*attrinfo)->attr_path = tpath;
5943 (*attrinfo)->attr_rw_sysattr = rw_sysattr;
5944 (*attrinfo)->attr_parentfd = atparentfd;
7841 attr_data_t *attrinfo = NULL;
7955 fd, rw_sysattr, &attrinfo)) == 1) {
7960 rc = putfile(longname, dp->d_name, parent, attrinfo,
7992 if (attrinfo != NULL) {
7993 if (attrinfo->attr_parent != NULL) {
7994 free(attrinfo->attr_parent);
7996 free(attrinfo->attr_path);
7997 free(attrinfo);
8218 read_xattr_hdr(attr_data_t **attrinfo)
8304 -1, 0, attrinfo)) == 1) {
8321 read_xattr_hdr(attr_data_t **attrinfo)