Lines Matching defs:path
76 static int solaris_attropen(const char *path, const char *attrpath, int oflag, mode_t mode);
77 static int solaris_openat(int fildes, const char *path, int oflag, mode_t mode);
96 ssize_t sys_getxattr (const char *path, const char *uname, void *value, size_t size)
102 return getxattr(path, name, value, size);
105 return getxattr(path, name, value, size, 0, options);
108 return getea(path, name, value, size);
116 if((retval = extattr_get_file(path, EXTATTR_NAMESPACE_USER, uname, NULL, 0)) >= 0) {
124 if ((retval = extattr_get_file(path, EXTATTR_NAMESPACE_USER, uname, value, size)) >= 0)
137 retval = attr_get(path, attrname, (char *)value, &valuelength, flags);
142 int attrfd = solaris_attropen(path, name, O_RDONLY, 0);
154 ssize_t sys_lgetxattr (const char *path, const char *uname, void *value, size_t size)
159 return lgetxattr(path, name, value, size);
162 return getxattr(path, name, value, size, 0, options);
164 return lgetea(path, name, value, size);
167 if((retval=extattr_get_link(path, EXTATTR_NAMESPACE_USER, uname, NULL, 0)) >= 0) {
172 if((retval=extattr_get_link(path, EXTATTR_NAMESPACE_USER, uname, value, size)) >= 0)
185 retval = attr_get(path, attrname, (char *)value, &valuelength, flags);
190 int attrfd = solaris_attropen(path, name, O_RDONLY|AT_SYMLINK_NOFOLLOW, 0);
217 const char *path;
229 list_size = extattr_list_file(arg.path, EXTATTR_NAMESPACE_USER, list, size);
234 list_size = extattr_list_link(arg.path, EXTATTR_NAMESPACE_USER, list, size);
289 static ssize_t irix_attr_list(const char *path, int filedes, char *list, size_t size, int flags)
303 retval = attr_list(path, attr_buffer, ATTR_MAX_VALUELEN, flags, cursor);
329 retval = attr_list(path, attr_buffer, ATTR_MAX_VALUELEN, flags, cursor);
381 ssize_t sys_listxattr (const char *path, char *list, size_t size)
387 ret = listxattr(path, list, size);
390 ret = listxattr(path, list, size, options);
395 return listea(path, list, size);
398 arg.path = path;
401 return irix_attr_list(path, 0, list, size, 0);
404 int attrdirfd = solaris_attropen(path, ".", O_RDONLY, 0);
416 ssize_t sys_llistxattr (const char *path, char *list, size_t size)
421 ret = llistxattr(path, list, size);
427 ret = listxattr(path, list, size, options);
431 return llistea(path, list, size);
434 arg.path = path;
437 return irix_attr_list(path, 0, list, size, ATTR_DONTFOLLOW);
440 int attrdirfd = solaris_attropen(path, ".", O_RDONLY|AT_SYMLINK_NOFOLLOW, 0);
452 int sys_removexattr (const char *path, const char *uname)
457 return removexattr(path, name);
460 return removexattr(path, name, options);
463 return removeea(path, name);
465 return extattr_delete_file(path, EXTATTR_NAMESPACE_USER, uname);
472 return attr_remove(path, attrname, flags);
475 int attrdirfd = solaris_attropen(path, ".", O_RDONLY, 0);
487 int sys_lremovexattr (const char *path, const char *uname)
491 return lremovexattr(path, name);
494 return removexattr(path, name, options);
496 return lremoveea(path, name);
498 return extattr_delete_link(path, EXTATTR_NAMESPACE_USER, uname);
505 return attr_remove(path, attrname, flags);
508 int attrdirfd = solaris_attropen(path, ".", O_RDONLY|AT_SYMLINK_NOFOLLOW, 0);
520 int sys_setxattr (const char *path, const char *uname, const void *value, size_t size, int flags)
525 return setxattr(path, name, value, size, flags);
528 return setxattr(path, name, value, size, 0, options);
531 return setea(path, name, value, size, flags);
536 retval = extattr_get_file(path, EXTATTR_NAMESPACE_USER, uname, NULL, 0);
553 retval = extattr_set_file(path, EXTATTR_NAMESPACE_USER, uname, value, size);
563 return attr_set(path, attrname, (const char *)value, size, myflags);
570 attrfd = solaris_attropen(path, name, myflags, (mode_t) SOLARIS_ATTRMODE);
582 int sys_lsetxattr (const char *path, const char *uname, const void *value, size_t size, int flags)
586 return lsetxattr(path, name, value, size, flags);
589 return setxattr(path, name, value, size, 0, options);
591 return lsetea(path, name, value, size, flags);
596 retval = extattr_get_link(path, EXTATTR_NAMESPACE_USER, uname, NULL, 0);
614 retval = extattr_set_link(path, EXTATTR_NAMESPACE_USER, uname, value, size);
624 return attr_set(path, attrname, (const char *)value, size, myflags);
631 attrfd = solaris_attropen(path, name, myflags, (mode_t) SOLARIS_ATTRMODE);
724 static int solaris_attropen(const char *path, const char *attrpath, int oflag, mode_t mode)
726 int filedes = attropen(path, attrpath, oflag, mode);
730 path, attrpath, strerror(errno));
736 static int solaris_openat(int fildes, const char *path, int oflag, mode_t mode)
738 int filedes = openat(fildes, path, oflag, mode);
741 path, strerror(errno));