Changeset 375
- Timestamp:
- Oct 28, 2012, 2:09:47 PM (12 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/nmake.opt
r370 r375 10 10 11 11 !IFDEF MS_DIR 12 MS_CFLAGS=-DUSE_MS -I$(MS_DIR) /DNEED_STRCASESTR12 MS_CFLAGS=-DUSE_MS -I$(MS_DIR) 13 13 MS_LDFLAGS=$(MS_DIR)/mapserver_i.lib 14 14 MS_FILE=service_internal_ms.obj … … 36 36 PYTHON_CPATH=$(ZOOK_DIR)\..\..\..\Python-2.7.3 37 37 38 CFLAGS=$(CFLAGS1) /nologo /MD /W3 /EHsc /O 2/D_CRT_SECURE_NO_WARNINGS /DWIN32 $(CJFLAGS) -I$(ZOOK_DIR) -I./ $(JAVA_CFLAGS) $(MS_CFLAGS) -I$(TROOT)\..\..\thirds\dirent-win32 -I$(INTL_DIR) -I$(CURL_DIR)\include -I$(XML2_DIR)\include -I$(GDAL_DIR)\port $(JS_CFLAGS) -I$(GDAL_DIR)\ogr -I$(GDAL_DIR)\gcore -I$(GD_DIR) -I$(ICONV_DIR) -I$(TROOT)\..\..\thirds\include -I$(TROOT)\..\..\thirds\cgic206 -I$(PYTHON_CPATH)\include -I$(SSL_DIR)/inc32 -I$(FCGI_DIR)\include $(PY_CFLAGS) -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF38 CFLAGS=$(CFLAGS1) /nologo /MD /W3 /EHsc /Ox /D_CRT_SECURE_NO_WARNINGS /DWIN32 $(CJFLAGS) -I$(ZOOK_DIR) -I./ $(JAVA_CFLAGS) $(MS_CFLAGS) -I$(TROOT)\..\..\thirds\dirent-win32 -I$(INTL_DIR) -I$(CURL_DIR)\include -I$(XML2_DIR)\include -I$(GDAL_DIR)\port $(JS_CFLAGS) -I$(GDAL_DIR)\ogr -I$(GDAL_DIR)\gcore -I$(GD_DIR) -I$(ICONV_DIR) -I$(TROOT)\..\..\thirds\include -I$(TROOT)\..\..\thirds\cgic206 -I$(PYTHON_CPATH)\include -I$(SSL_DIR)/inc32 -I$(FCGI_DIR)\include $(PY_CFLAGS) -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF 39 39 40 40 LDFLAGS=$(FCGI_LIBRARY) $(CURL_LIBRARY) $(PY_LDFLAGS) $(XML2_LIBRARY) $(TROOT)/../../thirds/cgic206/libcgic.lib $(SSL_DIR)/out32dll/libeay32.lib $(JAVA_LDFLAGS) $(SSL_DIR)/out32dll/ssleay32.lib $(MS_LDFLAGS) $(INTL_DIR)/intl.lib $(XML2_DIR)/win32/bin.msvc/libxml2.lib $(GDAL_DIR)/gdal_i.lib $(CURL_DIR)/lib/libcurl.lib $(JS_LDFLAGS) /machine:i386 -
trunk/zoo-project/zoo-kernel/service.h
r364 r375 29 29 30 30 #ifdef WIN32 31 #define strncasecmp strnicmp 32 #define strcasecmp stricmp 31 #define strncasecmp _strnicmp 32 #define strcasecmp _stricmp 33 #ifndef snprintf 33 34 #define snprintf sprintf_s 35 #endif 34 36 #endif 35 37 … … 63 65 #define SHMSZ 27 64 66 67 68 #ifdef DEBUG_STACK 69 void debugStack(const char* file,const int line){ 70 int stack; 71 fprintf(stderr,"stack %p (%s: %d) \n",&stack,file,line); 72 } 73 #endif 65 74 66 75 /** -
trunk/zoo-project/zoo-kernel/service_internal.c
r365 r375 34 34 #define FALSE -1 35 35 #endif 36 37 void printHeaders(maps* m){ 38 maps *_tmp=getMaps(m,"headers"); 39 if(_tmp!=NULL){ 40 map* _tmp1=_tmp->content; 41 while(_tmp1!=NULL){ 42 printf("%s: %s\r\n",_tmp1->name,_tmp1->value); 43 _tmp1=_tmp1->next; 44 } 45 } 46 } 36 47 37 48 void addLangAttr(xmlNodePtr n,maps *m){ … … 1817 1828 } 1818 1829 1830 printHeaders(m); 1831 1819 1832 if(asRaw==0){ 1820 1833 #ifdef DEBUG … … 2478 2491 int s=stat(cached, &f_status); 2479 2492 if(s==0){ 2493 fprintf(stderr,"FILE SIZE (%d)\n",f_status.st_size/1024); 2480 2494 fcontent=(char*)malloc(sizeof(char)*(f_status.st_size+1)); 2481 FILE* f=fopen(cached,"r ");2495 FILE* f=fopen(cached,"rb"); 2482 2496 fread(fcontent,sizeof(char),f_status.st_size,f); 2483 2497 fsize=f_status.st_size; -
trunk/zoo-project/zoo-kernel/service_internal.h
r364 r375 59 59 #include <openssl/buffer.h> 60 60 61 #include "cgic.h"61 //#include "cgic.h" 62 62 #include "ulinet.h" 63 63 … … 85 85 static int nbNs=0; 86 86 87 void printHeaders(maps*); 87 88 void unhandleStatus(maps*); 88 89 void updateStatus(maps*); -
trunk/zoo-project/zoo-kernel/ulinet.c
r368 r375 293 293 else{ 294 294 memset(lpBuffer,0,hInternet.nDataLen+1); 295 memcpy( 295 memcpy(lpBuffer, hInternet.pabyData, hInternet.nDataLen ); 296 296 dwDataSize=hInternet.nDataLen; 297 297 free( hInternet.pabyData ); -
trunk/zoo-project/zoo-kernel/zoo_loader.c
r364 r375 85 85 if(strncmp(cgiContentType,"text/xml",8)==0 || 86 86 strncasecmp(cgiRequestMethod,"post",4)==0){ 87 //fprintf(stderr,"length %d\n",cgiContentLength); 87 88 if(cgiContentLength==NULL){ 88 89 cgiContentLength=0; … … 112 113 buffer[cgiContentLength]=0; 113 114 tmpMap=createMap("request",buffer); 114 fprintf(stderr,"%s\n",tmpMap->value);115 //fprintf(stderr,"%s\n",tmpMap->value); 115 116 }else{ 116 117 buffer[0]=0; -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r370 r375 1838 1838 1839 1839 #ifdef DEBUG 1840 fprintf(stderr,"\n%i\n",i); 1840 fprintf(stderr,"\n%d\n",__LINE__); 1841 fflush(stderr); 1841 1842 dumpMaps(request_input_real_format); 1842 1843 dumpMaps(request_output_real_format); 1843 1844 dumpMap(request_inputs); 1844 fprintf(stderr,"\n%i\n",i); 1845 fprintf(stderr,"\n%d\n",__LINE__); 1846 fflush(stderr); 1845 1847 #endif 1846 1848 … … 1911 1913 1912 1914 sprintf(storageNameOnServer,"%s/%s",path->value,fileNameOnServer); 1915 printf("\n\nName on server %s\n",storageNameOnServer); 1916 #ifdef DEBUG 1913 1917 fprintf(stderr,"Name on server %s\n",storageNameOnServer); 1914 1918 fprintf(stderr,"fileNameOnServer: %s\n",fileNameOnServer); 1919 #endif 1915 1920 mode=S_IRWXU|S_IRGRP|S_IROTH; 1916 1921 targetFile = open (storageNameOnServer,O_RDWR|O_CREAT|O_TRUNC,S_IRWXU|S_IRGRP|S_IROTH); 1917 1922 if(targetFile<0){ 1923 #ifdef DEBUG 1918 1924 fprintf(stderr,"could not create the new file,%s\n",fileNameOnServer); 1925 #endif 1919 1926 }else{ 1920 1927 while (cgiFormFileRead(file, buffer, BufferLen, &got) ==cgiFormSuccess){ … … 1926 1933 cgiFormFileClose(file); 1927 1934 close(targetFile); 1935 #ifdef DEBUG 1928 1936 fprintf(stderr,"File \"%s\" has been uploaded",fileNameOnServer); 1937 #endif 1929 1938 } 1930 1939 }
Note: See TracChangeset
for help on using the changeset viewer.