35 #define ENABLE_CURLX_PRINTF 87 while(fd[0] == STDIN_FILENO ||
90 fd[1] == STDIN_FILENO ||
109 char fname[CURL_MT_LOGFNAME_BUFSIZE];
110 if(strlen(env) >= CURL_MT_LOGFNAME_BUFSIZE)
111 env[CURL_MT_LOGFNAME_BUFSIZE-1] =
'\0';
114 curl_memdebug(fname);
123 long num = strtol(env, &endptr, 10);
124 if((endptr != env) && (endptr == env + strlen(env)) && (num > 0))
130 # define memory_tracking_init() Curl_nop_stmt 142 #if defined(__DJGPP__) || defined(__GO32__) 144 _djstat_flags |= _STAT_INODE | _STAT_EXEC_MAGIC | _STAT_DIRSIZE;
170 helpf(stderr,
"error initializing curl easy handle\n");
176 helpf(stderr,
"error retrieving curl library information\n");
181 helpf(stderr,
"error initializing curl library\n");
186 helpf(stderr,
"error initializing curl\n");
223 if(PR_Initialized()) {
234 config->
first = NULL;
241 int main(
int argc,
char *argv[])
245 memset(&global, 0,
sizeof(global));
249 #if defined(HAVE_SIGNAL) && defined(SIGPIPE) 250 (void)signal(SIGPIPE, SIG_IGN);
261 result =
operate(&global, argc, argv);
272 #ifdef __NOVELL_LIBC__ 273 if(
getenv(
"_IN_NETWARE_BASH_") == NULL)
278 vms_special_exit(result, vms_show);
int main(int argc, char *argv[])
CURL_EXTERN void curl_free(void *p)
static void free_config_fields(struct GlobalConfig *config)
struct OperationConfig * last
struct GlobalConfig * global
UNITTEST_START int result
static void main_free(struct GlobalConfig *config)
static void main_checkfds(void)
#define CURL_GLOBAL_DEFAULT
CURL_EXTERN CURL * curl_easy_init(void)
CURL_EXTERN void curl_easy_cleanup(CURL *curl)
#define Curl_safefree(ptr)
CURL_EXTERN CURLcode curl_global_init(long flags)
curl_global_init() globally initializes curl given a bitwise set of the different features of what to...
static CURLcode main_init(struct GlobalConfig *config)
#define memory_tracking_init()
CURL_EXTERN void curl_global_cleanup(void)
curl_global_cleanup() globally cleanups curl, uses the value of "init_flags" to determine what needs ...
struct OperationConfig * first