- Timestamp:
- Mar 22, 2019, 12:13:18 PM (6 years ago)
- Location:
- branches/prototype-v0/zoo-project/zoo-kernel
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/Makefile.in
r880 r899 9 9 10 10 service.o: service.c service.h 11 g cc${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service.c11 g++ ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service.c 12 12 13 13 main_conf_read.tab.c: main_conf_read.y service.h … … 66 66 67 67 service_yaml.o: service_yaml.c service.h 68 g cc${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_yaml.c68 g++ ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_yaml.c 69 69 70 70 meta_sql.o: meta_sql.c meta_sql.h service.h -
branches/prototype-v0/zoo-project/zoo-kernel/caching.c
r890 r899 38 38 */ 39 39 char* getMd5(char* url){ 40 EVP_MD_CTX md5ctx;40 EVP_MD_CTX *md5ctx=EVP_MD_CTX_create(); 41 41 char* fresult=(char*)malloc((EVP_MAX_MD_SIZE+1)*sizeof(char)); 42 42 unsigned char result[EVP_MAX_MD_SIZE]; 43 43 unsigned int len; 44 EVP_DigestInit( &md5ctx, EVP_md5());45 EVP_DigestUpdate( &md5ctx, url, strlen(url));46 EVP_DigestFinal_ex( &md5ctx,result,&len);47 EVP_MD_CTX_ cleanup(&md5ctx);44 EVP_DigestInit(md5ctx, EVP_md5()); 45 EVP_DigestUpdate(md5ctx, url, strlen(url)); 46 EVP_DigestFinal_ex(md5ctx,result,&len); 47 EVP_MD_CTX_destroy(md5ctx); 48 48 int i; 49 49 for(i = 0; i < len; i++){ … … 79 79 EVP_DigestUpdate(md5ctx, data, bytes); 80 80 EVP_DigestFinal_ex(md5ctx,result,&len); 81 EVP_MD_CTX_cleanup(md5ctx);82 81 EVP_MD_CTX_destroy(md5ctx); 83 82 int i; -
branches/prototype-v0/zoo-project/zoo-kernel/response_print.h
r896 r899 38 38 39 39 #include <libintl.h> 40 //#include <xlocale.h> //#include <xlocale>41 40 #include <locale.h> 42 41 … … 65 64 #include <sys/stat.h> 66 65 #include <sys/types.h> 67 #include "cgic.h"68 66 #ifndef WIN32 69 67 #include <sys/ipc.h> … … 97 95 #include <libxml/parser.h> 98 96 #include <libxml/xpath.h> 97 98 #include "cgic.h" 99 99 100 100 #ifdef __cplusplus -
branches/prototype-v0/zoo-project/zoo-kernel/service.c
r896 r899 2 2 * Author : Gérald FENOY 3 3 * 4 * Copyright (c) 2015 GeoLabs SARL4 * Copyright (c) 2015-2019 GeoLabs SARL 5 5 * 6 6 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 28 28 #include <ctime> 29 29 #include <chrono> 30 #ifdef WIN32 30 31 #include <process.h> 32 #endif 31 33 32 34 #if defined(_MSC_VER) && _MSC_VER < 1800 … … 1784 1786 1785 1787 snprintf(text, msglen, "pid: %d %s line %d %s() %s systime: %lld ns ticks: %lld %s\n", 1786 _getpid(), source, line, function, str, sys_t, proc_t, message); // __FILE__ __LINE__ __func__ //1788 zGetpid(), source, line, function, str, sys_t, proc_t, message); // __FILE__ __LINE__ __func__ // 1787 1789 1788 1790 if (file != NULL && (log = fopen(file, "a+")) != NULL) { -
branches/prototype-v0/zoo-project/zoo-kernel/service.h
r896 r899 2 2 * Author : Gérald FENOY 3 3 * 4 * Copyright (c) 2009-201 5GeoLabs SARL4 * Copyright (c) 2009-2019 GeoLabs SARL 5 5 * 6 6 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 475 475 ZOO_DLL_EXPORT bool nonempty(map* map); 476 476 ZOO_DLL_EXPORT bool hasvalue(maps* source, const char* node, const char* key, map** kvp); 477 #ifdef __cplusplus 477 478 ZOO_DLL_EXPORT void setErrorMessage(maps*& conf, const char* service, WPSException exc, const char* message = NULL); 478 479 ZOO_DLL_EXPORT void logMessage(const char* source, const char* function, int line, const char* file = NULL, const char* message = NULL); 480 #endif 479 481 #define zooLogMsg(file,message) logMessage(__FILE__, __func__, __LINE__, (file), (message)) 480 482 #define zooLog logMessage(__FILE__, __func__, __LINE__) -
branches/prototype-v0/zoo-project/zoo-kernel/service_callback.c
r886 r899 2 2 * Author : Gérald FENOY 3 3 * 4 * Copyright 2017 GeoLabs SARL. All rights reserved.4 * Copyright 2017-2019 GeoLabs SARL. All rights reserved. 5 5 * 6 6 * This work was supported by public funds received in the framework of GEOSUD, … … 132 132 if(!CHECK_INET_HANDLE(hInternet)){ 133 133 InternetCloseHandle (&hInternet); 134 return false;134 return NULL; 135 135 } 136 136 char *URL=(char*)malloc((strlen(arg->url->value)+5)*sizeof(char)); -
branches/prototype-v0/zoo-project/zoo-kernel/service_internal.c
r897 r899 929 929 */ 930 930 char* file_exists(const char* dir, const char* name) { 931 c har* d = (dir != NULL ? dir : ".");931 const char* d = (dir != NULL ? dir : "."); 932 932 if (name != NULL) { 933 933 size_t length = strlen(d) + strlen(name) + 2; // including file separator and \0 character -
branches/prototype-v0/zoo-project/zoo-kernel/service_internal.h
r896 r899 67 67 #include <sys/stat.h> 68 68 #include <sys/types.h> 69 #include "cgic.h"70 69 #ifndef WIN32 71 70 #include <sys/ipc.h> -
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_hpc.c
r895 r899 34 34 #include "mimetypes.h" 35 35 #include <sys/un.h> 36 #include "cgic.h" 36 37 37 38 typedef struct { -
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_hpc.h
r839 r899 34 34 #include "service_internal.h" 35 35 #include "service.h" 36 #include "cgic.h"37 36 #ifdef WIN32 38 37 #include <windows.h> -
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_python.h
r640 r899 2 2 * Author : Gérald FENOY 3 3 * 4 * Copyright (c) 2009-201 0GeoLabs SARL4 * Copyright (c) 2009-2019 GeoLabs SARL 5 5 * 6 6 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 31 31 #include "response_print.h" 32 32 #include <Python.h> 33 #include "cgic.h"34 33 #ifdef WIN32 35 34 #include <windows.h> 36 35 #include <direct.h> 37 36 #endif 37 #include "cgic.h" 38 38 39 39 PyDictObject* PyDict_FromMaps(maps* t); -
branches/prototype-v0/zoo-project/zoo-kernel/ulinet.c
r897 r899 4 4 * Author : Gérald FENOY 5 5 * 6 * Copyright (c) 2008-201 5GeoLabs SARL6 * Copyright (c) 2008-2019 GeoLabs SARL 7 7 * 8 8 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 32 32 #include <assert.h> 33 33 #include <ctype.h> 34 #include "fcgi_stdio.h" 34 35 35 36 /** -
branches/prototype-v0/zoo-project/zoo-kernel/ulinet.h
r896 r899 2 2 * Author : Gérald FENOY 3 3 * 4 * Copyright 2008-20 09 GeoLabs SARL. All rights reserved.4 * Copyright 2008-2019 GeoLabs SARL. All rights reserved. 5 5 * 6 6 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 26 26 #define _ULINET_H 27 27 28 #include "fcgi_stdio.h"29 28 #include <stdlib.h> 30 29 #include <fcntl.h>
Note: See TracChangeset
for help on using the changeset viewer.