~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/setup_once.h

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-03-23 16:24:51 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 59.
  • Revision ID: package-import@ubuntu.com-20120323162451-z4gstlabjkgnrh7h
Tags: upstream-7.25.0
ImportĀ upstreamĀ versionĀ 7.25.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
 *
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
239
239
#  define sclose(x)  closesocket((x))
240
240
#elif defined(HAVE_CLOSESOCKET_CAMEL)
241
241
#  define sclose(x)  CloseSocket((x))
 
242
#elif defined(USE_LWIPSOCK)
 
243
#  define sclose(x)  lwip_close((x))
242
244
#else
243
245
#  define sclose(x)  close((x))
244
246
#endif
245
247
 
246
248
/*
 
249
 * Stack-independent version of fcntl() on sockets:
 
250
 */
 
251
#if defined(USE_LWIPSOCK)
 
252
#  define sfcntl  lwip_fcntl
 
253
#else
 
254
#  define sfcntl  fcntl
 
255
#endif
 
256
 
 
257
/*
247
258
 * Uppercase macro versions of ANSI/ISO is*() functions/macros which
248
259
 * avoid negative number inputs with argument byte codes > 127.
249
260
 */