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);
1819 putfile(char *longname, char *shortname, char *parent, attr_data_t *attrinfo,
1860 attrparent = attrinfo->attr_parent;
1861 longattrname = attrinfo->attr_path;
1862 dirfd = attrinfo->attr_parentfd;
1863 rw_sysattr = attrinfo->attr_rw_sysattr;
2801 * attrinfo->parent = NULL
2804 * attrinfo->parent = NULL
2809 * attrinfo->parent = <attr>
2814 * attrinfo->parent = <attr>
2821 * On succesful return, attrinfo->parentfd will be the file descriptor of the
2823 * extended system attribute, attrinfo->rw_sysattr will be set to 1, otherwise
2841 open_attr_dir(char *attrname, char *dirp, int cwd, attr_data_t *attrinfo)
2844 int firsttime = (attrinfo->attr_parentfd == -1);
2854 (void) close(attrinfo->attr_parentfd);
2855 attrinfo->attr_parentfd = -1;
2868 if ((attrinfo->attr_parentfd = attropen(dirp, ".", O_RDONLY)) == -1) {
2874 if ((attrinfo->attr_parentfd = retry_open_attr(-1, cwd, dirp,
2881 (void) close(attrinfo->attr_parentfd);
2882 attrinfo->attr_parentfd = -1;
2892 if ((Hiddendir == 0) || (firsttime && attrinfo->attr_parent != NULL)) {
2893 if (fchdir(attrinfo->attr_parentfd) != 0) {
2895 (void) close(attrinfo->attr_parentfd);
2896 attrinfo->attr_parentfd = -1;
2903 if ((rc = verify_attr(attrname, attrinfo->attr_parent, 1,
2904 &attrinfo->attr_rw_sysattr)) != ATTR_OK) {
2906 (void) close(attrinfo->attr_parentfd);
2907 attrinfo->attr_parentfd = -1;
2918 if (firsttime && (attrinfo->attr_parent != NULL)) {
2919 return (open_attr_dir(attrname, attrinfo->attr_parent,
2920 attrinfo->attr_parentfd, attrinfo));
2950 attr_data_t *attrinfo = NULL; /* attribute info */
2998 &attrinfo)) == 0) {
3044 attrinfo)) != ATTR_OK)) {
3050 dirp, attrinfo->attr_path);
3055 attrinfo->attr_rw_sysattr ? gettext(
3067 dirfd = attrinfo->attr_parentfd;
3068 rw_sysattr = attrinfo->attr_rw_sysattr;
3174 if (attrinfo->attr_parent == NULL) {
3382 (attrinfo->attr_parent == NULL) ?
3383 dirp : attrinfo->attr_parent);
3481 dirp, attrinfo->attr_parent, comp,
4150 attr_data_t *attrinfo = NULL;
4166 if ((want = wantit(argv, &namep, &dirp, &comp, &attrinfo)) == 0)
4198 char *bn = basename(attrinfo->attr_path);
4216 attrinfo->attr_path);
5709 attr_data_t **attrinfo)
5747 (void) read_xattr_hdr(attrinfo);
5770 attr_data_t *ainfo = *attrinfo;
5870 int rw_sysattr, attr_data_t **attrinfo)
5914 if (*attrinfo == NULL) {
5915 if ((*attrinfo = malloc(sizeof (attr_data_t))) == NULL) {
5930 if ((*attrinfo)->attr_parent != NULL) {
5931 free((*attrinfo)->attr_parent);
5933 if ((*attrinfo)->attr_path != NULL) {
5934 free((*attrinfo)->attr_path);
5942 (*attrinfo)->attr_parent = tparent;
5943 (*attrinfo)->attr_path = tpath;
5944 (*attrinfo)->attr_rw_sysattr = rw_sysattr;
5945 (*attrinfo)->attr_parentfd = atparentfd;
7842 attr_data_t *attrinfo = NULL;
7956 fd, rw_sysattr, &attrinfo)) == 1) {
7961 rc = putfile(longname, dp->d_name, parent, attrinfo,
7993 if (attrinfo != NULL) {
7994 if (attrinfo->attr_parent != NULL) {
7995 free(attrinfo->attr_parent);
7997 free(attrinfo->attr_path);
7998 free(attrinfo);
8219 read_xattr_hdr(attr_data_t **attrinfo)
8305 -1, 0, attrinfo)) == 1) {
8322 read_xattr_hdr(attr_data_t **attrinfo)