Changeset 699


Ignore:
Timestamp:
Apr 23, 2012, 8:01:39 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.3: made it high-mem aware

Location:
branches/samba-3.3.x/source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/build.cmd

    r695 r699  
    1313/* version 0.3.6 from 06.04.2012 Herwig (support parallel jobs, show build
    1414                                         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]) */
    1517                                         
    1618/* load the sysfuncs if not already loaded */
     
    2224
    2325/* init the version string (don't forget to change) */
    24 version = "0.3.6"
    25 version_date = "06.04.2012"
     26version = "0.3.7"
     27version_date = "23.04.2012"
    2628
    2729/* number of make jobs to execute at the same time */
     
    123125if conf = "YES" then do
    124126    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-wrapper
    132      */
    133127
    134128/* we need to delete the cache file and redo it afterwards */
    135129    ok = SysFileDelete(cacheFile);
     130
     131/* add the compile and link flags to the cache file */
     132    call SetCLFlags
    136133
    137134/* is cups env set */
     
    298295    end
    299296return rc
     297
     298/**
     299 * set the compile and link flags
     300 */
     301SetCLFlags: 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  
    4040#include <types.h>
    4141#include <string.h>
     42#include <sys/socket.h>
    4243//YD for tmalloc
    4344#include <malloc.h>
     
    177178}
    178179*/
     180
     181/* OS/2 specific pipe implementation, we have to use socketpair as select on
     182filehandle is not working. */
     183int 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
    179191/* OS/2-specific random functions. these functions used to be based on APR
    180192   random code, but we discovered some nasty problems with it on fast hardware
  • branches/samba-3.3.x/source/lib/select.c

    r578 r699  
    2828   This means all Samba signal handlers should call sys_select_signal().
    2929*/
     30#ifdef __OS2__
     31#define pipe(A) os2_pipe(A)
     32#endif
    3033
    3134static pid_t initialised;
     
    5962
    6063        if (initialised != sys_getpid()) {
    61 #ifndef __OS2__
    6264                if (pipe(select_pipe) == -1)
    63 #else
    64                 if (socketpair(AF_UNIX, SOCK_STREAM,0, select_pipe) == -1)
    65 #endif
    6665                        smb_panic("Could not create select pipe");
    6766
  • branches/samba-3.3.x/source/nmbd/asyncdns.c

    r206 r699  
    1717   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1818   */
     19#ifdef __OS2__
     20#define pipe(A) os2_pipe(A)
     21#endif
    1922
    2023#include "includes.h"
     
    141144        CatchChild();
    142145
    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 #else
    159146        if (pipe(fd1) || pipe(fd2)) {
    160147                DEBUG(0,("can't create asyncdns pipes\n"));
    161148                return;
    162149        }
    163 #endif /* __OS2__ */
    164150        child_pid = sys_fork();
    165151
  • branches/samba-3.3.x/source/printing/print_cups.c

    r221 r699  
    2222 * JRA. Converted to utf8 pull/push.
    2323 */
     24#ifdef __OS2__
     25#define pipe(A) os2_pipe(A)
     26#endif
    2427
    2528#include "includes.h"
  • branches/samba-3.3.x/source/printing/printing.c

    r578 r699  
    1919   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    2020*/
     21#ifdef __OS2__
     22#define pipe(A) os2_pipe(A)
     23#endif
    2124
    2225#include "includes.h"
     
    14031406        DEBUG(3,("start_background_queue: Starting background LPQ thread\n"));
    14041407
    1405 #ifndef __OS2__
    14061408        if (pipe(pause_pipe) == -1) {
    1407 #else
    1408         // on OS2 we have no select() on pipes, so we use socketpair() instead
    1409         if (socketpair(AF_UNIX, SOCK_STREAM,0, pause_pipe) < 0) {
    1410 #endif
    14111409                DEBUG(5,("start_background_queue: cannot create pipe. %s\n", strerror(errno) ));
    14121410                exit(1);
Note: See TracChangeset for help on using the changeset viewer.