* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
-
#include "setup.h"
#include "curlutil.h"
+#include "memdebug.h" /* keep this as LAST include */
+
#if defined(WIN32) && !defined(MSDOS)
struct timeval cutil_tvnow(void)
-#ifndef __CURL_SRC_UTIL_H
-#define __CURL_SRC_UTIL_H
+#ifndef HEADER_CURL_SRC_UTIL_H
+#define HEADER_CURL_SRC_UTIL_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
-
#include "setup.h"
long cutil_tvlong(struct timeval t1);
-#endif /* __CURL_SRC_UTIL_H */
+#endif /* HEADER_CURL_SRC_UTIL_H */
* KIND, either express or implied.
*
***************************************************************************/
-
-/* This file is a reimplementation of the previous one, due to license
- problems. */
-
#include "setup.h"
#ifndef HAVE_GETPASS_R
#include <unistd.h>
#endif
-#include "getpass.h"
-
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#endif
#endif
-/* The last #include file should be: */
-#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
-#include "memdebug.h"
+#ifdef __VMS
+# include descrip
+# include starlet
+# include iodef
+#endif
+
+#ifdef WIN32
+# include <conio.h>
+#endif
+
+#ifdef NETWARE
+# ifdef __NOVELL_LIBC__
+# include <screen.h>
+# else
+# include <nwconio.h>
+# endif
#endif
+#include "getpass.h"
+
+#include "memdebug.h" /* keep this as LAST include */
+
#ifdef __VMS
/* VMS implementation */
-#include descrip
-#include starlet
-#include iodef
-/* #include iosbdef */
char *getpass_r(const char *prompt, char *buffer, size_t buflen)
{
long sts;
#define DONE
#endif /* __VMS */
-
-#ifdef WIN32
-/* Windows implementation */
-#include <conio.h>
-#endif
-
#ifdef __SYMBIAN32__
#define getch() getchar()
#endif
#ifdef NETWARE
/* NetWare implementation */
#ifdef __NOVELL_LIBC__
-#include <screen.h>
char *getpass_r(const char *prompt, char *buffer, size_t buflen)
{
return getpassword(prompt, buffer, buflen);
}
#else
-#include <nwconio.h>
char *getpass_r(const char *prompt, char *buffer, size_t buflen)
{
size_t i = 0;
-#ifndef __GETPASS_H
-#define __GETPASS_H
+#ifndef HEADER_CURL_GETPASS_H
+#define HEADER_CURL_GETPASS_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
+
#ifndef HAVE_GETPASS_R
/* If there's a system-provided function named like this, we trust it is
also found in one of the standard headers. */
char* getpass_r(const char *prompt, char* buffer, size_t buflen );
#endif
-#endif
+#endif /* HEADER_CURL_GETPASS_H */
* KIND, either express or implied.
*
***************************************************************************/
-
#include "setup.h"
#ifdef HAVE_PWD_H
#include "homedir.h"
-#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
-#include "memdebug.h"
-#endif
+#include "memdebug.h" /* keep this as LAST include */
static
char *GetEnv(const char *variable, char do_expand)
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
char *homedir(void);
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
+
void hugehelp(void);
#endif /* HEADER_CURL_HUGEHELP_H */
* KIND, either express or implied.
*
***************************************************************************/
-
#include "setup.h"
#include <curl/curl.h>
versions instead */
#include "curlx.h"
-/* The last #include file should be: */
-#ifdef CURLDEBUG
-#ifndef CURLTOOLDEBUG
-#define MEMDEBUG_NODEFINES
-#endif
/* This is low-level hard-hacking memory leak tracking and similar. Using
the library level code from this client-side is ugly, but we do this
anyway for convenience. */
-#include "memdebug.h"
-#endif
+#include "memdebug.h" /* keep this as LAST include */
#ifdef __VMS
static int vms_show = 0;
if($c) {
print <<HEAD
#include <zlib.h>
-#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
-#include "memdebug.h"
-#endif
+#include "memdebug.h" /* keep this as LAST include */
static const unsigned char hugehelpgz[] = {
/* This mumbo-jumbo is the huge help text compressed with gzip.
Thanks to this operation, the size of this data shrunk from $gzip
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
***************************************************************************/
#include "setup.h"
+#ifdef __VMS
+
+#if defined(__DECC) && !defined(__VAX) && \
+ defined(__CRTL_VER) && (__CRTL_VER >= 70301000)
+#include <unixlib.h>
+#endif
+
#include <curl/curl.h>
#define ENABLE_CURLX_PRINTF
#include "curlx.h"
+#include "curlmsg_vms.h"
#include "os-specific.h"
-#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
-# include "memdebug.h"
-#endif
-
-#ifdef __VMS
-
-#include "curlmsg_vms.h"
+#include "memdebug.h" /* keep this as LAST include */
void decc$__posix_exit(int __status);
void decc$exit(int __status);
* requiring the user to define the corresponding logical names.
*/
-#include <unixlib.h>
-
/* Structure to hold a DECC$* feature name and its desired value. */
typedef struct {
char *name;
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
#ifdef __VMS
* KIND, either express or implied.
*
***************************************************************************/
-
-/* client-local setup.h */
#include "setup.h"
#include <curl/curl.h>
#include "urlglob.h"
#include "os-specific.h"
-#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
-#include "memdebug.h"
-#endif
+#include "memdebug.h" /* keep this as LAST include */
typedef enum {
GLOB_OK,
-#ifndef __URLGLOB_H
-#define __URLGLOB_H
+#ifndef HEADER_CURL_URLGLOB_H
+#define HEADER_CURL_URLGLOB_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
+
typedef enum {
UPTSet=1,
UPTCharRange,
char* glob_match_url(char*, URLGlob *);
void glob_cleanup(URLGlob* glob);
-#endif
+#endif /* HEADER_CURL_URLGLOB_H */
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
#include <curl/curlver.h>
* KIND, either express or implied.
*
***************************************************************************/
-
#include "setup.h"
#ifdef USE_ENVIRONMENT
-#include <curl/curl.h>
-#include "writeenv.h"
-
#ifdef __riscos__
#include <kernel.h>
#endif
+#include <curl/curl.h>
+
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
-#include "memdebug.h"
-#endif
+#include "writeenv.h"
+
+#include "memdebug.h" /* keep this as LAST include */
static const struct
{
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
void ourWriteEnv(CURL *curl);
* KIND, either express or implied.
*
***************************************************************************/
-
#include "setup.h"
#ifdef HAVE_SYS_TYPES_H
#include "writeout.h"
+#include "memdebug.h" /* keep this as LAST include */
+
typedef enum {
VAR_NONE, /* must be the first */
VAR_TOTAL_TIME,
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
void ourWriteOut(CURL *curl, const char *out);
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2010, 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
-
-/* client-local setup.h */
#include "setup.h"
-#include <curl/curl.h>
-#include "xattr.h"
#ifdef HAVE_FSETXATTR
#include <sys/types.h>
#include <sys/xattr.h> /* include header from libc, not from libattr */
+#endif
+
+#include <curl/curl.h>
+#include "xattr.h"
+
+#include "memdebug.h" /* keep this as LAST include */
+
+#ifdef HAVE_FSETXATTR
/* mapping table of curl metadata to extended attribute names */
static const struct xattr_mapping {
-#ifndef __XATTR_H
-#define __XATTR_H
+#ifndef HEADER_CURL_XATTR_H
+#define HEADER_CURL_XATTR_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
+
int fwrite_xattr(CURL *curl, int fd);
-#endif
+#endif /* HEADER_CURL_XATTR_H */