X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=include%2Fatalk%2Fea.h;h=00d987de77b27bd37fcc69d3949e65416af386b9;hp=48432ef6e9aa88391ad0a6b88acafa04f60fcaad;hb=a3e43549642d11f4bc86324f9a09c294f6a3f74b;hpb=59a2b6f4e58dfa6db2487c25abdb58bce17c8fc8 diff --git a/include/atalk/ea.h b/include/atalk/ea.h index 48432ef6..00d987de 100644 --- a/include/atalk/ea.h +++ b/include/atalk/ea.h @@ -1,5 +1,5 @@ /* - $Id: ea.h,v 1.10 2009-12-10 17:40:25 franklahm Exp $ + $Id: ea.h,v 1.11 2010-03-12 15:16:49 franklahm Exp $ Copyright (c) 2009 Frank Lahm This program is free software; you can redistribute it and/or modify @@ -99,6 +99,7 @@ struct ea_entry { struct ea { uint32_t ea_inited; /* needed for interfacing ea_open w. ea_close */ const struct vol *vol; /* vol handle, ea_close needs it */ + int dirfd; /* for *at (cf openat) semantics, -1 means ignore */ char *filename; /* name of file, needed by ea_close too */ unsigned int ea_count; /* number of EAs in ea_entries array */ struct ea_entry (*ea_entries)[]; /* malloced and realloced as needed by ea_count*/ @@ -154,6 +155,11 @@ extern int ea_open(const struct vol * restrict vol, const char * restrict uname, eaflags_t eaflags, struct ea * restrict ea); +extern int ea_openat(const struct vol * restrict vol, + int dirfd, + const char * restrict uname, + eaflags_t eaflags, + struct ea * restrict ea); extern int ea_close(struct ea * restrict ea); extern char *ea_path(const struct ea * restrict ea, const char * restrict eaname, int macname);