Changeset 1696
- Timestamp:
- Apr 10, 2007, 2:27:46 AM (16 years ago)
- Location:
- branches/daemon
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/daemon/configure
r1621 r1696 137 137 then 138 138 CFLAGS="$CFLAGS -DHAVE_LRINTF" 139 fi 140 rm -f testconf* 141 } 142 143 strlcpy_test() 144 { 145 verbose strlcpy_test 146 cat > testconf.c << EOF 147 #include <string.h> 148 int main() 149 { 150 char buf[] = "1234:p"; 151 strlcpy( buf, "foo", sizeof buf ); 152 return ( 0 == memcmp( buf, "foo\0:p, 6 ) ? 0 : 1 ); 153 } 154 EOF 155 if runcmd $CC -o testconf testconf.c && runcmd ./testconf 156 then 157 CFLAGS="$CFLAGS -DHAVE_STRLCPY" 158 fi 159 rm -f testconf* 160 } 161 162 strlcat_test() 163 { 164 verbose strlcat_test 165 cat > testconf.c << EOF 166 #include <string.h> 167 int main() 168 { 169 char buf[] = "1234567:p"; 170 buf[0] = '\0'; 171 strlcat( buf, "foo", sizeof buf ); 172 strlcat( buf, "bar", sizeof buf ); 173 return ( 0 == memcmp( buf, "foobar\0:p, 6 ) ? 0 : 1 ); 174 } 175 EOF 176 if runcmd $CC -o testconf testconf.c && runcmd ./testconf 177 then 178 CFLAGS="$CFLAGS -DHAVE_STRLCAT" 139 179 fi 140 180 rm -f testconf* -
branches/daemon/daemon/client.c
r1635 r1696 43 43 #include "ipc.h" 44 44 #include "misc.h" 45 #include "trcompat.h" 45 46 46 47 /* time out server after this many seconds */ -
branches/daemon/daemon/daemon.c
r1617 r1696 45 45 #include "server.h" 46 46 #include "torrents.h" 47 #include "trcompat.h" 47 48 #include "version.h" 48 49 -
branches/daemon/daemon/misc.c
r1635 r1696 35 35 #include "misc.h" 36 36 #include "transmission.h" 37 #include "trcompat.h" 37 38 38 39 static void pushdir ( char *, const char *, size_t ); -
branches/daemon/daemon/misc.h
r1638 r1696 27 27 28 28 #include <sys/types.h> 29 #include <inttypes.h> 29 30 #include <limits.h> 30 31 -
branches/daemon/daemon/remote.c
r1635 r1696 41 41 #include "misc.h" 42 42 #include "transmission.h" 43 #include "trcompat.h" 43 44 44 45 #define BESTDECIMAL(d) (10.0 > (d) ? 2 : (100.0 > (d) ? 1 : 0)) -
branches/daemon/daemon/torrents.c
r1641 r1696 46 46 #include "torrents.h" 47 47 #include "transmission.h" 48 #include "trcompat.h" 48 49 49 50 #define EXIT_TIMEOUT 10 /* how many seconds to wait on exit */ -
branches/daemon/libtransmission/internal.h
r1614 r1696 131 131 typedef enum { TR_NET_OK, TR_NET_ERROR, TR_NET_WAIT } tr_tristate_t; 132 132 133 #include "trcompat.h" 133 134 #include "platform.h" 134 135 #include "bencode.h" -
branches/daemon/mk/lib.mk
r1405 r1696 7 7 metainfo.c sha1.c utils.c fdlimit.c clients.c completion.c \ 8 8 platform.c ratecontrol.c choking.c natpmp.c upnp.c http.c xml.c \ 9 shared.c torrent.c 9 shared.c torrent.c strlcpy.c strlcat.c 10 10 11 11 OBJS = $(SRCS:%.c=%.o)
Note: See TracChangeset
for help on using the changeset viewer.