X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=blobdiff_plain;f=include%2Fnfsc%2Flibnfs.h;h=670723240f06e7911036f6380d421daf8c1431ef;hp=e39e2e29d42d668d10302d41119a514c4618fc68;hb=23b10e1f18c57e88ac4ef13b4dd08b976834260d;hpb=c50173cf0d1fbaafcbf444d0b980de72b83373c9 diff --git a/include/nfsc/libnfs.h b/include/nfsc/libnfs.h index e39e2e2..6707232 100644 --- a/include/nfsc/libnfs.h +++ b/include/nfsc/libnfs.h @@ -1270,6 +1270,36 @@ EXTERN int nfs_access(struct nfs_context *nfs, const char *path, int mode); + +/* + * ACCESS2() + */ +/* + * Async access2() + * Function returns + * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. + * <0 : An error occured when trying to set up the operation. The callback will not be invoked. + * + * When the callback is invoked, status indicates the result: + * >= 0 : A mask of R_OK, W_OK and X_OK indicating which permissions are + * available. + * data is NULL + * -errno : An error occured. + * data is the error string. + */ +EXTERN int nfs_access2_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data); +/* + * Sync access() + * Function returns + * >= 0 : A mask of R_OK, W_OK and X_OK indicating which permissions are + * available. + * -errno : The command failed. + */ +EXTERN int nfs_access2(struct nfs_context *nfs, const char *path); + + + + /* * SYMLINK() */