attropen(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

attropen(3c)

attropen(3C)             Standard C Library Functions             attropen(3C)

NAME
       attropen - open a file

SYNOPSIS
       #include <sys/types.h>
       #include <sys/stat.h>
       #include <fcntl.h>

       int attropen(const char *path, const char *attrpath, int oflag,
            /* mode_t mode */...);

DESCRIPTION
       The  attropen() function is similar to the open(2) function except that
       it takes a second path argument, attrpath, that identifies an  extended
       attribute  file  associated with the first path argument. This function
       returns a file descriptor for the extended attribute  rather  than  the
       file named by the initial argument.


       The  O_XATTR flag is set by default for attropen() and the attrpath ar‐
       gument is always interpreted as a reference to an  extended  attribute.
       Extended  attributes must be referenced with a relative path; providing
       an absolute path results in a normal file reference.

RETURN VALUES
       Refer to open(2).

ERRORS
       Refer to open(2).

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelSafe


SEE ALSO
       open(2), attributes(7), fsattr(7)

HISTORY
       The attropen() function was added in the Solaris 9 release.

Oracle Solaris 11.4               27 Aug 2025                     attropen(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3