Lines Matching defs:file
4 * The contents of this file are subject to the terms of the
6 * You may not use this file except in compliance with the License.
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
42 * Note: If obtaining status for an extended attribute file, the caller must
49 sysattr_status(char *file, xattr_view_t view)
55 status = getattrat(AT_FDCWD, view, file, &response);
66 * Returns the type of the specified in file. If the file name matches
68 * file then sysattr_type() returns the type of file:
69 * return value file type
71 * _RO_SATTR read-only extended system attribute file
72 * _RW_SATTR read-write extended system attribute file
74 * attribute file.
77 sysattr_type(char *file)
79 if (file == NULL) {
84 if (strcmp(basename(file), file) != 0) {
90 if (strcmp(file, VIEW_READONLY) == 0) {
92 } else if (strcmp(file, VIEW_READWRITE) == 0) {
100 * Call sysattr_support() instead of pathconf(file, _PC_SATTR_ENABLED) or
101 * pathconf(file, _PC_SATTR_EXISTS) so that if pathconf() fails over NFS, we
103 * testing for a valid extended system attribute file.
107 * Returns 1 if the underlying file system supports extended system attributes,
111 sysattr_support(char *file, int name)
121 if (((rc = pathconf(file, name)) == 1) || (errno != EINVAL)) {
124 return (sysattr_status(file, XATTR_VIEW_READONLY));