summaryrefslogtreecommitdiff
path: root/src/git
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-12-30 23:26:38 -0800
committerShawn O. Pearce <spearce@spearce.org>2008-12-30 23:29:23 -0800
commit7dd8a9f71052cc12f8dd9c1eec2e99afbf08df76 (patch)
treecf5f7235b9c9689b133f6ea12015720b411329bd /src/git
parent64a47c01426a36cdb7e598d17018d5791e54bb97 (diff)
downloadlibgit2-7dd8a9f71052cc12f8dd9c1eec2e99afbf08df76.tar.gz
Set GIT_EOSERR when the OS errno should be consulted
This error code indicates the OS error code has a better value describing the last error, as it is likely a network or local file IO problem identified by a C library function call. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/git')
-rw-r--r--src/git/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/git/common.h b/src/git/common.h
index 639753339..75e1e84d1 100644
--- a/src/git/common.h
+++ b/src/git/common.h
@@ -58,6 +58,9 @@
/** Not enough space available. */
#define GIT_ENOMEM (GIT_ERROR - 3)
+/** Consult the OS error information. */
+#define GIT_EOSERR (GIT_ERROR - 4)
+
GIT_BEGIN_DECL
/** A revision traversal pool. */