diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-01 16:31:59 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-01 16:31:59 -0300 |
commit | df2f261ccb261447576b98b9e466f06daf33115d (patch) | |
tree | fbb802b7b019c806bea8e6d9b4c7dc12f6ede53d /dpid/dpid_common.h | |
parent | 29ea3975335bad3fa72afe8c1724d1d00355c396 (diff) |
Removed the write/fwrite mix in dpip. Introduced a_Dpip_dsh_trywrite()
Several cleanups and more error handling sprinkled all over too.
Diffstat (limited to 'dpid/dpid_common.h')
-rw-r--r-- | dpid/dpid_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dpid/dpid_common.h b/dpid/dpid_common.h index 65b8bc89..ed886e19 100644 --- a/dpid/dpid_common.h +++ b/dpid/dpid_common.h @@ -31,9 +31,10 @@ /*! - * Macro for calling the ckd_write function + * Macros for calling ckd_write and ckd_close functions */ #define CKD_WRITE(fd, msg) ckd_write(fd, msg, __FILE__, __LINE__) +#define CKD_CLOSE(fd) ckd_close(fd, __FILE__, __LINE__) /*! Error codes for dpid */ @@ -56,5 +57,6 @@ void errmsg(char *caller, char *called, int errornum, char *file, int line); int no_dotfiles(const struct dirent *filedat); ssize_t ckd_write(int fd, char *msg, char *file, int line); +ssize_t ckd_close(int fd, char *file, int line); #endif |