summaryrefslogtreecommitdiffhomepage
path: root/src/internal/sofort_errinfo_impl.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-01 05:30:34 -0500
committermidipix <writeonce@midipix.org>2019-01-01 05:37:59 -0500
commitb6f827d6939397e99d72b1dc8480c72364d8905c (patch)
tree74c198de06f27fa0e7fd8649838924ead5a879a6 /src/internal/sofort_errinfo_impl.h
parentb95a5b04a4a3b6bf0b86080abce1436f0b7aee1c (diff)
downloadsofort-b6f827d6939397e99d72b1dc8480c72364d8905c.tar.bz2
sofort-b6f827d6939397e99d72b1dc8480c72364d8905c.tar.xz
sofort: split-up: keep build-system elements, move extras to sofortex.
Diffstat (limited to 'src/internal/sofort_errinfo_impl.h')
-rw-r--r--src/internal/sofort_errinfo_impl.h74
1 files changed, 0 insertions, 74 deletions
diff --git a/src/internal/sofort_errinfo_impl.h b/src/internal/sofort_errinfo_impl.h
deleted file mode 100644
index 8d42fc3..0000000
--- a/src/internal/sofort_errinfo_impl.h
+++ /dev/null
@@ -1,74 +0,0 @@
-#include <errno.h>
-#include <sofort/sofort.h>
-
-int sfrt_record_error(
- const struct sfrt_driver_ctx *,
- int esyscode,
- int elibcode,
- const char * efunction,
- int eline,
- unsigned eflags,
- void * ectx);
-
-#define SFRT_SYSTEM_ERROR(dctx) \
- sfrt_record_error( \
- dctx, \
- errno, \
- 0, \
- __func__, \
- __LINE__, \
- SFRT_ERROR_TOP_LEVEL, \
- 0)
-
-#define SFRT_BUFFER_ERROR(dctx) \
- sfrt_record_error( \
- dctx, \
- ENOBUFS, \
- 0, \
- __func__, \
- __LINE__, \
- SFRT_ERROR_TOP_LEVEL, \
- 0)
-
-#define SFRT_SPAWN_ERROR(dctx) \
- sfrt_record_error( \
- dctx, \
- errno, \
- 0, \
- __func__, \
- __LINE__, \
- SFRT_ERROR_TOP_LEVEL \
- | (errno ? 0 \
- : SFRT_ERROR_CHILD), \
- 0)
-
-#define SFRT_FILE_ERROR(dctx) \
- sfrt_record_error( \
- dctx, \
- EIO, \
- 0, \
- __func__, \
- __LINE__, \
- SFRT_ERROR_TOP_LEVEL, \
- 0)
-
-#define SFRT_CUSTOM_ERROR(dctx,elibcode) \
- sfrt_record_error( \
- dctx, \
- 0, \
- elibcode, \
- __func__, \
- __LINE__, \
- SFRT_ERROR_TOP_LEVEL \
- | SFRT_ERROR_CUSTOM, \
- 0)
-
-#define SFRT_NESTED_ERROR(dctx) \
- sfrt_record_error( \
- dctx, \
- 0, \
- 0, \
- __func__, \
- __LINE__, \
- SFRT_ERROR_NESTED, \
- 0)