Changeset 655


Ignore:
Timestamp:
Nov 8, 2011, 1:28:52 PM (14 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: some work to get high-mem working

Location:
trunk/server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/tevent/tevent_signal.c

    r620 r655  
    3131#include "tevent_util.h"
    3232#ifdef __OS2__
    33 #include <sys/socket.h>
     33#define pipe(A) os2_socketpair(A)
    3434#endif
    3535
     
    249249           setup */
    250250        if (ev->pipe_fde == NULL) {
    251 #ifndef __OS2__
    252251                if (pipe(ev->pipe_fds) == -1) {
    253 #else
    254                 if (socketpair(AF_UNIX, SOCK_STREAM,0, ev->pipe_fds) == -1) {
    255 #endif
    256252                        talloc_free(se);
    257253                        return NULL;
  • trunk/server/source3/lib/os2helper.c

    r646 r655  
    1818#include <types.h>
    1919#include <string.h>
     20#include <sys/socket.h>
    2021//YD for tmalloc
    2122#include <malloc.h>
     
    156157}
    157158*/
     159// OS/2 specific socketpair() implementation, as it only works in low mem
     160int os2_socketpair(int fds[2])
     161{
     162        int mypair[2];
     163        int rc = 0;
     164
     165        rc = socketpair(AF_UNIX, SOCK_STREAM, 0, mypair);
     166        if (rc >= 0) {
     167                fds[0] = mypair[0];
     168                fds[1] = mypair[1];
     169        }
     170
     171        return rc;
     172}
     173
    158174/* OS/2-specific random functions. these functions used to be based on APR
    159175   random code, but we discovered some nasty problems with it on fast hardware
  • trunk/server/source3/libsmb/clireadwrite.c

    r596 r655  
    815815
    816816        writesize = cli_write_max_bufsize(cli, write_mode);
    817 
     817printf("@remove me: writesize %d\n", writesize);
    818818        blocks = (size + (writesize-1)) / writesize;
    819819
Note: See TracChangeset for help on using the changeset viewer.