Lines Matching +defs:code +defs:string
112 TFTP_ERR_NOSUCHUSER, /* This will never be triggered by this code */
307 static size_t Curl_strnlen(const char *string, size_t maxlen)
309 const char *end = memchr (string, '\0', maxlen);
310 return end ? (size_t) (end - string) : maxlen;
489 string. */
680 /* don't bother with the return code, but if the socket is still up we
687 return CURLE_TFTP_ILLEGAL; /* not really the perfect return code for
812 /* don't bother with the return code, but if the socket is still up we
834 CURLcode code = CURLE_OK;
839 code = CURLE_TFTP_NOTFOUND;
842 code = CURLE_TFTP_PERM;
845 code = CURLE_REMOTE_DISK_FULL;
849 code = CURLE_TFTP_ILLEGAL;
852 code = CURLE_TFTP_UNKNOWNID;
855 code = CURLE_REMOTE_FILE_EXISTS;
858 code = CURLE_TFTP_NOSUCHUSER;
861 code = CURLE_OPERATION_TIMEDOUT;
864 code = CURLE_COULDNT_CONNECT;
867 code= CURLE_ABORTED_BY_CALLBACK;
872 code = CURLE_OK;
875 return(code);
946 CURLcode code;
1020 code = CURLE_OK;
1021 return(code);
1034 CURLcode code = CURLE_OK;
1045 code = tftp_translate_code(state->error);
1047 return code;
1262 /* The multi code doesn't have this logic for the DOING state so we
1314 CURLcode code;
1319 code = tftp_connect(conn, done);
1320 if(code)
1321 return code;
1325 code = tftp_perform(conn, done);
1327 /* If tftp_perform() returned an error, use that for return code. If it
1329 if(code == CURLE_OK)
1331 code = tftp_translate_code(state->error);
1333 return code;