aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg-error.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg-error.h.in')
-rw-r--r--src/gpg-error.h.in21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index 4b1c0a0..80ce391 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -87,7 +87,6 @@ extern "C" {
typedef enum
{
@include:err-sources@
-
/* This is one more than the largest allowed entry. */
GPG_ERR_SOURCE_DIM = 128
} gpg_err_source_t;
@@ -100,11 +99,9 @@ typedef enum
typedef enum
{
@include:err-codes@
-
/* The following error codes are used to map system errors. */
#define GPG_ERR_SYSTEM_ERROR (1 << 15)
@include:errnos@
-
/* This is one more than the largest allowed entry. */
GPG_ERR_CODE_DIM = 65536
} gpg_err_code_t;
@@ -289,6 +286,10 @@ const char *gpg_error_check_version (const char *req_version);
/* The version number of this header. */
#define GPG_ERROR_VERSION_NUMBER @version-number@
+/* System specific type definitions. */
+@define:gpgrt_ssize_t@
+@define:gpgrt_off_t@
+
@include:os-add@
/* Self-documenting convenience functions. */
@@ -388,13 +389,13 @@ typedef struct _gpgrt__stream *gpgrt_stream_t;
typedef struct _gpgrt__stream *estream_t;
#endif
-typedef ssize_t (*gpgrt_cookie_read_function_t) (void *cookie,
+typedef @api_ssize_t@ (*gpgrt_cookie_read_function_t) (void *cookie,
void *buffer, size_t size);
-typedef ssize_t (*gpgrt_cookie_write_function_t) (void *cookie,
+typedef @api_ssize_t@ (*gpgrt_cookie_write_function_t) (void *cookie,
const void *buffer,
size_t size);
typedef int (*gpgrt_cookie_seek_function_t) (void *cookie,
- off_t *pos, int whence);
+ gpgrt_off_t *pos, int whence);
typedef int (*gpgrt_cookie_close_function_t) (void *cookie);
struct _gpgrt_cookie_io_functions
@@ -498,9 +499,9 @@ void gpgrt_clearerr_unlocked (gpgrt_stream_t stream);
int gpgrt_fflush (gpgrt_stream_t stream);
int gpgrt_fseek (gpgrt_stream_t stream, long int offset, int whence);
-int gpgrt_fseeko (gpgrt_stream_t stream, off_t offset, int whence);
+int gpgrt_fseeko (gpgrt_stream_t stream, gpgrt_off_t offset, int whence);
long int gpgrt_ftell (gpgrt_stream_t stream);
-off_t gpgrt_ftello (gpgrt_stream_t stream);
+gpgrt_off_t gpgrt_ftello (gpgrt_stream_t stream);
void gpgrt_rewind (gpgrt_stream_t stream);
int gpgrt_fgetc (gpgrt_stream_t stream);
@@ -555,10 +556,10 @@ int gpgrt_fputs (const char *_GPGRT__RESTRICT s,
int gpgrt_fputs_unlocked (const char *_GPGRT__RESTRICT s,
gpgrt_stream_t _GPGRT__RESTRICT stream);
-ssize_t gpgrt_getline (char *_GPGRT__RESTRICT *_GPGRT__RESTRICT lineptr,
+@api_ssize_t@ gpgrt_getline (char *_GPGRT__RESTRICT *_GPGRT__RESTRICT lineptr,
size_t *_GPGRT__RESTRICT n,
gpgrt_stream_t stream);
-ssize_t gpgrt_read_line (gpgrt_stream_t stream,
+@api_ssize_t@ gpgrt_read_line (gpgrt_stream_t stream,
char **addr_of_buffer, size_t *length_of_buffer,
size_t *max_length);
void gpgrt_free (void *a);