Changeset 698


Ignore:
Timestamp:
Apr 23, 2012, 7:29:26 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: some high-mem workarounds removed

Location:
trunk/server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/async_req/async_sock.c

    r668 r698  
    3636#define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0)
    3737#endif
    38 #ifdef __OS2__
    39 #define connect(A, B, C) os2_connect(A, B, C)
    40 #endif
     38
    4139struct async_send_state {
    4240        int fd;
  • trunk/server/source3/build.cmd

    r696 r698  
    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
  • trunk/server/source3/lib/os2helper.c

    r672 r698  
    180180*/
    181181
    182 // OS/2 specific pipe implementation, we have to use socketpair as select on filehandle is not working
    183 // and we have to use local variables to be sure we use low mem, as socketpair doesn't work in high mem
     182/* OS/2 specific pipe implementation, we have to use socketpair as select on
     183filehandle is not working. */
    184184int os2_pipe(int fds[2])
    185185{
    186         int mypair[2];
    187186        int rc = 0;
    188187
    189         rc = socketpair(AF_UNIX, SOCK_STREAM, 0, mypair);
    190         if (rc >= 0) {
    191                 fds[0] = mypair[0];
    192                 fds[1] = mypair[1];
    193         }
    194 
     188        rc = socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
    195189        return rc;
    196190}
    197191
     192#if 0
    198193// OS/2 specific connect() implementation, as it only works in low mem
    199194int os2_connect(int fd, const struct sockaddr *address, int address_len)
     
    212207        return rc;
    213208}
     209#endif
    214210
    215211/* OS/2-specific random functions. these functions used to be based on APR
Note: See TracChangeset for help on using the changeset viewer.