~ubuntu-branches/ubuntu/gutsy/curl/gutsy

« back to all changes in this revision

Viewing changes to lib/strerror.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-29 15:04:24 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060629150424-pn00qumt9sml8p4m
Tags: 7.15.4-1ubuntu1
Synchronize to Debian. Only change left: Removal of stunnel and
libdb4.2-dev build dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 2004, 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
9
9
 *
10
10
 * This software is licensed as described in the file COPYING, which
11
11
 * you should have received as part of this distribution. The terms
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
 
21
 * $Id: strerror.c,v 1.33 2006-04-26 17:27:36 giva Exp $
21
22
 ***************************************************************************/
22
23
 
23
24
#include "setup.h"
83
84
  case CURLE_FTP_ACCESS_DENIED:
84
85
    return "FTP: access denied";
85
86
 
86
 
  case CURLE_FTP_USER_PASSWORD_INCORRECT:
87
 
    return "FTP: user and/or password incorrect";
88
 
 
89
87
  case CURLE_FTP_WEIRD_PASS_REPLY:
90
88
    return "FTP: unknown PASS reply";
91
89
 
132
130
    return "failed to open/read local data from file/application";
133
131
 
134
132
  case CURLE_OUT_OF_MEMORY:
 
133
#ifdef CURL_DOES_CONVERSIONS
 
134
    return "conversion failed -or- out of memory";
 
135
#else
135
136
    return "out of memory";
 
137
#endif /* CURL_DOES_CONVERSIONS */
136
138
 
137
139
  case CURLE_OPERATION_TIMEOUTED:
138
140
    return "a timeout was reached";
266
268
  case CURLE_TFTP_NOSUCHUSER:
267
269
    return "TFTP: No such user";;
268
270
 
269
 
  case CURLE_URL_MALFORMAT_USER: /* not used by current libcurl */
270
 
  case CURLE_MALFORMAT_USER:     /* not used by current libcurl */
271
 
  case CURLE_BAD_CALLING_ORDER:  /* not used by current libcurl */
272
 
  case CURLE_BAD_PASSWORD_ENTERED:/* not used by current libcurl */
273
 
  case CURLE_OBSOLETE:           /* not used by current libcurl */
 
271
  case CURLE_CONV_FAILED:
 
272
    return "conversion failed";
 
273
 
 
274
  case CURLE_CONV_REQD:
 
275
    return "caller must register CURLOPT_CONV_ callback options";
 
276
 
 
277
    /* error codes not used by current libcurl */
 
278
  case CURLE_URL_MALFORMAT_USER:
 
279
  case CURLE_FTP_USER_PASSWORD_INCORRECT:
 
280
  case CURLE_MALFORMAT_USER:
 
281
  case CURLE_BAD_CALLING_ORDER:
 
282
  case CURLE_BAD_PASSWORD_ENTERED:
 
283
  case CURLE_OBSOLETE:
274
284
  case CURL_LAST:
275
285
    break;
276
286
  }
320
330
  case CURLM_INTERNAL_ERROR:
321
331
    return "internal error";
322
332
 
 
333
  case CURLM_BAD_SOCKET:
 
334
    return "invalid socket argument";
 
335
 
 
336
  case CURLM_UNKNOWN_OPTION:
 
337
    return "unknown option";
 
338
 
323
339
  case CURLM_LAST:
324
340
    break;
325
341
  }
504
520
  case WSAEREMOTE:
505
521
    p = "Remote error";
506
522
    break;
 
523
#ifdef WSAEDISCON  /* missing in SalfordC! */
507
524
  case WSAEDISCON:
508
525
    p = "Disconnected";
509
526
    break;
510
 
 
 
527
#endif
511
528
    /* Extended Winsock errors */
512
529
  case WSASYSNOTREADY:
513
530
    p = "Winsock library is not ready";