Changeset 699
- Timestamp:
- Apr 23, 2012, 8:01:39 PM (13 years ago)
- Location:
- branches/samba-3.3.x/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/build.cmd
r695 r699 13 13 /* version 0.3.6 from 06.04.2012 Herwig (support parallel jobs, show build 14 14 time upon completion) */ 15 /* version 0.3.7 from 23.04.2012 Silvan (compile and link flags need to be 16 set here [happy birthday Jason]) */ 15 17 16 18 /* load the sysfuncs if not already loaded */ … … 22 24 23 25 /* init the version string (don't forget to change) */ 24 version = "0.3. 6"25 version_date = " 06.04.2012"26 version = "0.3.7" 27 version_date = "23.04.2012" 26 28 27 29 /* number of make jobs to execute at the same time */ … … 123 125 if conf = "YES" then do 124 126 address cmd 'SETLOCAL' 125 /* address cmd 'SET CFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4'126 address cmd 'SET CXXFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4'127 address cmd 'SET LDFLAGS=-s -Zsym -Zmap -Zbin-files -Zomf -Zexe -Zargs-wild -Zargs-resp'128 address cmd 'SET AR=emxomfar'129 address cmd 'SET LIBS=-lsocket -lsyslog' */130 /* disabled options:131 --enable-developer --enable-socket-wrapper132 */133 127 134 128 /* we need to delete the cache file and redo it afterwards */ 135 129 ok = SysFileDelete(cacheFile); 130 131 /* add the compile and link flags to the cache file */ 132 call SetCLFlags 136 133 137 134 /* is cups env set */ … … 298 295 end 299 296 return rc 297 298 /** 299 * set the compile and link flags 300 */ 301 SetCLFlags: procedure expose cacheFile 302 303 call lineout cacheFile, "CFLAGS='-D__EMX__ -DOS2 -D__OS2__ -D__ST_MT_ERRNO__ -O2 -march=pentium -mtune=pentium4'"; 304 call lineout cacheFile, "CXXFLAGS='-D__EMX__ -DOS2 -D__OS2__ -D__ST_MT_ERRNO__ -O2 -march=pentium -mtune=pentium4'"; 305 call lineout cacheFile, "LDFLAGS='-Zmap -Zargs-wild -Zbin-files -Zhigh-mem -D__ST_MT_ERRNO__ -s'"; 306 /* address cmd 'SET AR=emxomfar' 307 address cmd 'SET LIBS=-lsocket -lsyslog' */ 308 return -
branches/samba-3.3.x/source/lib/os2helper.c
r673 r699 40 40 #include <types.h> 41 41 #include <string.h> 42 #include <sys/socket.h> 42 43 //YD for tmalloc 43 44 #include <malloc.h> … … 177 178 } 178 179 */ 180 181 /* OS/2 specific pipe implementation, we have to use socketpair as select on 182 filehandle is not working. */ 183 int os2_pipe(int fds[2]) 184 { 185 int rc = 0; 186 187 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); 188 return rc; 189 } 190 179 191 /* OS/2-specific random functions. these functions used to be based on APR 180 192 random code, but we discovered some nasty problems with it on fast hardware -
branches/samba-3.3.x/source/lib/select.c
r578 r699 28 28 This means all Samba signal handlers should call sys_select_signal(). 29 29 */ 30 #ifdef __OS2__ 31 #define pipe(A) os2_pipe(A) 32 #endif 30 33 31 34 static pid_t initialised; … … 59 62 60 63 if (initialised != sys_getpid()) { 61 #ifndef __OS2__62 64 if (pipe(select_pipe) == -1) 63 #else64 if (socketpair(AF_UNIX, SOCK_STREAM,0, select_pipe) == -1)65 #endif66 65 smb_panic("Could not create select pipe"); 67 66 -
branches/samba-3.3.x/source/nmbd/asyncdns.c
r206 r699 17 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 #ifdef __OS2__ 20 #define pipe(A) os2_pipe(A) 21 #endif 19 22 20 23 #include "includes.h" … … 141 144 CatchChild(); 142 145 143 #ifdef __OS2__144 // cant use pipes here, because select() from innotek lib does work only for sockets.145 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd1) < 0)146 {147 DEBUG(0,("can't create asyncdns socketpair1 %d\n", errno));148 return;149 }150 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd2) < 0)151 {152 DEBUG(0,("can't create asyncdns socketpair2 %d\n", errno));153 close(fd1[0]);154 close(fd1[1]);155 return;156 }157 DEBUG(9,("!!!!!!PIPES %d %d %d %d\n", fd1[0], fd1[1], fd2[0], fd2[1]));158 #else159 146 if (pipe(fd1) || pipe(fd2)) { 160 147 DEBUG(0,("can't create asyncdns pipes\n")); 161 148 return; 162 149 } 163 #endif /* __OS2__ */164 150 child_pid = sys_fork(); 165 151 -
branches/samba-3.3.x/source/printing/print_cups.c
r221 r699 22 22 * JRA. Converted to utf8 pull/push. 23 23 */ 24 #ifdef __OS2__ 25 #define pipe(A) os2_pipe(A) 26 #endif 24 27 25 28 #include "includes.h" -
branches/samba-3.3.x/source/printing/printing.c
r578 r699 19 19 along with this program. If not, see <http://www.gnu.org/licenses/>. 20 20 */ 21 #ifdef __OS2__ 22 #define pipe(A) os2_pipe(A) 23 #endif 21 24 22 25 #include "includes.h" … … 1403 1406 DEBUG(3,("start_background_queue: Starting background LPQ thread\n")); 1404 1407 1405 #ifndef __OS2__1406 1408 if (pipe(pause_pipe) == -1) { 1407 #else1408 // on OS2 we have no select() on pipes, so we use socketpair() instead1409 if (socketpair(AF_UNIX, SOCK_STREAM,0, pause_pipe) < 0) {1410 #endif1411 1409 DEBUG(5,("start_background_queue: cannot create pipe. %s\n", strerror(errno) )); 1412 1410 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.