Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

attropen(3c) [minix man page]

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 argument 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(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
open(2), attributes(5), fsattr(5) SunOS 5.10 1 Aug 2001 attropen(3C)

Check Out this Related Man Page

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 argument 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(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
open(2), attributes(5), fsattr(5) SunOS 5.10 1 Aug 2001 attropen(3C)
Man Page

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with File path

How to pass a file path to open a file? I am using cygwin. I want to open a file from a particular path, say C:\Test\File1,. This file path is stored in a variable. I am able to cat a file like this : cat "c:\Test\File1" but i want the same thing to happen in my script file through a variable... (3 Replies)
Discussion started by: sandeep_hi
3 Replies

2. Programming

-d_gnu_source

brothers //open.c #include<stdio.h> #include<sys/types.h> #include<dlfcn.h> int open(char const *path,int mode,mode_t permission) { int (*point)(char const ,int ,mode_t)=NULL; FILE *out; int type; char *actualpath,*lisaoutput; lisaoutput=getenv("LISA_TRACE"); point= dlsym(... (2 Replies)
Discussion started by: lookforlohith
2 Replies