X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fnfsc%2Flibnfs.h;h=7a9accde932b6b1e5941f305afe416614357063f;hb=0df47959c44f959665683e84ed0db3fe98bcd0eb;hp=e07506470c75afe2931b55f56b58e228c0fa0d8e;hpb=1d95217b2f68772857bf7cffc4f1a655e43e80fb;p=deb_libnfs.git diff --git a/include/nfsc/libnfs.h b/include/nfsc/libnfs.h index e075064..7a9accd 100644 --- a/include/nfsc/libnfs.h +++ b/include/nfsc/libnfs.h @@ -281,7 +281,7 @@ EXTERN int nfs_fstat(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat * */ EXTERN int nfs_open_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data); /* - * Sync open() + * Sync stat() * Function returns * 0 : The operation was successfull. *nfsfh is filled in. * -errno : The command failed. @@ -723,7 +723,7 @@ EXTERN struct nfsdirent *nfs_readdir(struct nfs_context *nfs, struct nfsdir *nfs /* - * CLOSEDIR() + * READDIR() */ /* * nfs_closedir() never blocks, so no special sync/async versions are available @@ -731,49 +731,6 @@ EXTERN struct nfsdirent *nfs_readdir(struct nfs_context *nfs, struct nfsdir *nfs EXTERN void nfs_closedir(struct nfs_context *nfs, struct nfsdir *nfsdir); -/* - * CHDIR() - */ -/* - * Async chdir() - * - * 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_chdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data); -/* - * Sync chdir() - * Function returns - * 0 : The operation was successfull. - * -errno : The command failed. - */ -EXTERN int nfs_chdir(struct nfs_context *nfs, const char *path); - -/* - * GETCWD() - */ -/* - * nfs_getcwd() never blocks, so no special sync/async versions are available - */ -/* - * Sync getcwd() - * This function returns a pointer to the current working directory. - * This pointer is only stable until the next [f]chdir or when the - * context is destroyed. - * - * Function returns - * 0 : The operation was successfull and *cwd is filled in. - * -errno : The command failed. - */ -EXTERN void nfs_getcwd(struct nfs_context *nfs, const char **cwd); - /* * STATVFS()