[openbeosstorage] Re: Kernel Interface Design

Hi all
As all the rest are taken, I'll do the attr stuff. As these have not yet
been included with the NewOS VFS, I’ve take a stab in the dark (below), if
you have any suggestions, let me know.
Thanks, 
        Mike

ssize_t read_attr ( int fd, const char *attribute, uint32 type, 
                    off_t pos, void *buf, size_t count );

ssize_t write_attr ( int fd, const char *attribute, uint32 type, 
                     off_t pos, const void *buf, size_t count );

int remove_attr ( int fd, const char *attr );

void open_attr_dir ( int fd, void **cookie );

int close_attr_dir ( void *cookie );

void read_attr_dir( void *cookie, dirent **buf );

void rewind_attr_dir( void *cookie );

int stat_attr( int fd, const char *name, struct attr_info *ai );

-- 
Mike Lee [ mlk@xxxxxxxxx ]
"Pulling together is the aim of despotism and tyranny. Free men pull in all
kinds of directions." 
Terry Pratchett, The Truth

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


Other related posts: