Ignore:
Timestamp:
Nov 9, 2007, 4:32:19 AM (14 years ago)
Author:
charles
Message:
  • add O_LARGEFILE support to fdlimit for the benefit of 32-bit posix machines
  • minor tweaks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r3753 r3765  
    3434#include <unistd.h>
    3535#include <libgen.h> /* basename, dirname */
    36 #include <fcntl.h>
    37 
    38 #include <sys/queue.h> /* evhttp.h needs this */
     36#include <fcntl.h> /* O_LARGEFILE */
     37
    3938#include <event.h>
    40 #include <evhttp.h>
    4139#include <evutil.h>
    4240
     
    8987enum
    9088{
    91     TR_MAX_SOCKETS = 1024,
     89    TR_MAX_SOCKETS = 512,
    9290
    9391    TR_MAX_OPEN_FILES = 16, /* real files, not sockets */
     
    142140    /* open the file */
    143141    flags = write ? (O_RDWR | O_CREAT) : O_RDONLY;
     142#ifdef O_LARGEFILE
     143    flags |= O_LARGEFILE;
     144#endif
    144145#ifdef WIN32
    145146    flags |= O_BINARY;
Note: See TracChangeset for help on using the changeset viewer.