repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nfs_open: add support for O_APPEND
[deb_libnfs.git]
/
include
/
nfsc
/
libnfs.h
diff --git
a/include/nfsc/libnfs.h
b/include/nfsc/libnfs.h
index 55f0280b468b4a54ac4e15fd7e7042343b2a54d2..d960f7f60d72f6ed61f5107fafd07902ad74ec60 100644
(file)
--- a/
include/nfsc/libnfs.h
+++ b/
include/nfsc/libnfs.h
@@
-28,6
+28,9
@@
#if defined(AROS)
#include <sys/time.h>
#endif
#if defined(AROS)
#include <sys/time.h>
#endif
+#if defined(__APPLE__) && defined(__MACH__)
+#include <sys/time.h>
+#endif
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-322,13
+325,15
@@
EXTERN int nfs_fstat(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat *
/*
* Async open(<filename>)
*
/*
* Async open(<filename>)
*
- * mode is a combination of the flags : O_RDOLNY, O_WRONLY, O_RDWR , O_SYNC
+ * mode is a combination of the flags :
+ * O_RDOLNY, O_WRONLY, O_RDWR , O_SYNC, O_APPEND
*
* 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.
*
* Supported flags are
*
* 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.
*
* Supported flags are
+ * O_APPEND
* O_RDONLY
* O_WRONLY
* O_RDWR
* O_RDONLY
* O_WRONLY
* O_RDWR