X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=blobdiff_plain;f=include%2Fnfsc%2Flibnfs.h;h=27efa466269126685b077acebca785766f198659;hp=48a70ba147259e79747da9a4a81247b0f3e6afc4;hb=6505b5396731ca6ec1a6786fa9a67dd528cdf947;hpb=bf769f960dc086ca35e60a1ecf88ebc385e1c222 diff --git a/include/nfsc/libnfs.h b/include/nfsc/libnfs.h index 48a70ba..27efa46 100644 --- a/include/nfsc/libnfs.h +++ b/include/nfsc/libnfs.h @@ -1157,6 +1157,34 @@ EXTERN int nfs_utimes_async(struct nfs_context *nfs, const char *path, struct ti * -errno : The command failed. */ EXTERN int nfs_utimes(struct nfs_context *nfs, const char *path, struct timeval *times); +/* + * Async utimes() + * + * Like utimes except if the destination is a symbolic link, it acts on the + * symbolic link itself. + * + * 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 : Success. + * data is NULL + * -errno : An error occured. + * data is the error string. + */ +EXTERN int nfs_lutimes_async(struct nfs_context *nfs, const char *path, struct timeval *times, nfs_cb cb, void *private_data); +/* + * Sync utimes() + * + * Like utimes except if the destination is a symbolic link, it acts on the + * symbolic link itself. + * + * Function returns + * 0 : The operation was successfull. + * -errno : The command failed. + */ +EXTERN int nfs_lutimes(struct nfs_context *nfs, const char *path, struct timeval *times); /*