Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thomas Milius
HTTP
Commits
76103f61
Commit
76103f61
authored
Jun 21, 2021
by
Thomas Milius
Browse files
Replace module because of errors extracted to a separate file
parent
ee8daa85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
c/module
c/module
+1
-25
No files found.
c/module
View file @
76103f61
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include "dns.h"
#include "dns.h"
#include "config.h"
#include "config.h"
#include "security.h"
#include "security.h"
#include "Httperror.h"
static
volatile
int
callback_pending_flag
=
0
;
static
volatile
int
callback_pending_flag
=
0
;
...
@@ -58,31 +59,6 @@ int __errno;
...
@@ -58,31 +59,6 @@ int __errno;
#endif
#endif
#endif
#endif
/*************************************************************/
/* So the real error number that we have to return is: */
/*************************************************************/
#define HTTP_ERROR_NUM (ERROR_BASE+HTTP_OFFSET)
/*************************************************************/
/* The error message definitions */
/*************************************************************/
typedef
enum
{
HTTP_HOST_NOT_FOUND
=
HTTP_ERROR_NUM
+
0
,
/* DNS lookup failed */
HTTP_HOST_CONNECT_ERROR
=
HTTP_ERROR_NUM
+
1
,
/* connect() failed */
HTTP_DATA_READ_ERROR
=
HTTP_ERROR_NUM
+
2
,
/* unexpected read error on socket */
HTTP_GENERAL_ERROR
=
HTTP_ERROR_NUM
+
3
,
/* Misc. - not helpful */
HTTP_BAD_SESSION_ERROR
=
HTTP_ERROR_NUM
+
4
,
/* Failed to locate session in session table */
HTTP_CONNECTION_FAILED
=
HTTP_ERROR_NUM
+
5
,
/* Failed to establish connection */
HTTP_METHOD_UNSUPPORTED
=
HTTP_ERROR_NUM
+
6
,
/* Unknown method in R2 */
HTTP_METHOD_INIT_ERR
=
HTTP_ERROR_NUM
+
7
,
/* Failed to start a fetch completely */
HTTP_BAD_URL_PARSE
=
HTTP_ERROR_NUM
+
8
,
/* Unable to parse URL (URL module too old?) */
HTTP_PROXY_NOT_FOUND
=
HTTP_ERROR_NUM
+
9
,
/* Unable to contact the proxy */
HTTP_NO_SECURITY
=
HTTP_ERROR_NUM
+
10
/* No SSL support present */
}
http_internal_error_codes
;
/* Sets clibrary_realloc_routine_is_buggy non-zero if RISC OS 3.1 or earlier (ie. ROM realloc is broken) */
/* Sets clibrary_realloc_routine_is_buggy non-zero if RISC OS 3.1 or earlier (ie. ROM realloc is broken) */
static
int
clibrary_realloc_routine_is_buggy
;
static
int
clibrary_realloc_routine_is_buggy
;
static
void
module_check_os_version
(
void
)
static
void
module_check_os_version
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment