vxfs_nattr_check (3)

NAME

vxfs_nattr_check, vxfs_nattr_fcheck - check for the existence of named data streams

SYNOPSIS

cc -I /opt/VRTS/include -L /opt/VRTSvxfs/lib -l vxfsutil -ldl
#include <vxfsutil.h>

int vxfs_nattr_check(int char *path, int flags);

int vxfs_nattr_fcheck(int fd, int flags);

AVAILABILITY

VRTSvxfs

DESCRIPTION

vxfs_nattr_check() and vxfs_nattr_fcheck() check for the existence of named data streams in a manner that depends on the value of flags. The vxfs_nattr_check() function checks the pathname specified by path for the existence of named data streams. The vxfs_nattr_fcheck() function checks the file descriptor specified by fd for the existence of named data streams. Possible values for flags are:
NATTR_ENABLED
  Checks whether named data streams are enabled on the file system containing the file descriptor specified by fd or the pathname specified by path. If named data streams are enabled, 1 is returned. Otherwise, 0 is returned.
NATTR_EXISTS
  Checks for the existence of named data streams for the file descriptor specified by fd or the pathname specified by path. If named data streams exist, 1 is returned. Otherwise, 0 is returned.

RETURN VALUES

vxfs_nattr_check() and vxfs_nattr_fcheck() return 1 or 0 on success. Otherise, -1 is returned and errno is set to indicate an error.

ERRORS

ENOTSUP The function invocation failed on the system and could not locate the function in the dynamic link library (DLL).
EACCES The file permissions does not allow the operation requested by function.
EINVAL The value of flags or fd is invalid.

SEE ALSO

vxfs_nattr_open(3), vxfs_nattr_link(3), vxfs_nattr_rename(3), vxfs_nattr_unlink(3), vxfs_nattr_utimes(3)


VxFS 5.1 SP1 vxfs_nattr_check (3)