c common functions library extracted from my open source project FastDFS. this library is very simple and stable. functions including: string, logger, chain, hash, socket, ini file reader, base64 encode / decode, url encode / decode, fast timer, skiplist, object pool etc. detail info please see the c header files.
sed: can't read s/\$(CFLAGS)/-Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -DDARWIN/g: No such file or directory
sed: can't read s/\$(LIBS)/-lm/g: No such file or directory
sed: can't read s/\$(LIB_VERSION)/lib64/g: No such file or directory
cc -c -o sockopt.o sockopt.c
sockopt.c:1329:69: error: too many arguments to function call, expected 6, have 7
if (sendfile(fd, sock, offset, remain_bytes, NULL, &sbytes, 0) != 0)
sed: can't read s/\$(CFLAGS)/-Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -DDARWIN/g: No such file or directory sed: can't read s/\$(LIBS)/-lm/g: No such file or directory sed: can't read s/\$(LIB_VERSION)/lib64/g: No such file or directory cc -c -o sockopt.o sockopt.c sockopt.c:1329:69: error: too many arguments to function call, expected 6, have 7 if (sendfile(fd, sock, offset, remain_bytes, NULL, &sbytes, 0) != 0)