diff --git a/GNUmakefile b/GNUmakefile index 09438cc..3acedbc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -172,7 +172,8 @@ dep libsocket havealloca.h haveuint128.h INCLUDES=buffer.h byte.h fmt.h ip4.h ip6.h mmap.h scan.h socket.h str.h stralloc.h \ uint16.h uint32.h uint64.h open.h textcode.h tai.h taia.h dns.h iopause.h case.h \ openreadclose.h readclose.h ndelay.h array.h io.h safemult.h iob.h havealloca.h \ -errmsg.h cdb.h cdb_make.h rangecheck.h iarray.h va_narg.h isset.h +errmsg.h cdb.h cdb_make.h rangecheck.h iarray.h va_narg.h isset.h \ +compiletimeassert.h install-inc: install -d $(INCLUDEDIR) diff --git a/Makefile b/Makefile index d00d94a..a2fb603 100644 --- a/Makefile +++ b/Makefile @@ -136,6 +136,7 @@ cdb.o: cdb/cdb.c byte.h cdb.h uint32.h uint64.h cdb_hash.o: cdb/cdb_hash.c cdb.h uint32.h uint64.h cdb_make.o: cdb/cdb_make.c cdb.h uint32.h uint64.h cdb_make.h buffer.h cdb_traverse.o: cdb/cdb_traverse.c cdb.h uint32.h uint64.h +critbit.o: critbit/critbit.c dns_dfd.o: dns/dns_dfd.c byte.h dns.h stralloc.h iopause.h taia.h tai.h \ uint64.h uint32.h dns_domain.o: dns/dns_domain.c case.h byte.h dns.h stralloc.h iopause.h \ @@ -212,6 +213,7 @@ fmt_ulonglong.o: fmt/fmt_ulonglong.c fmt.h byte.h fmt_utf8.o: fmt/fmt_utf8.c fmt.h byte.h fmt_xlong.o: fmt/fmt_xlong.c fmt.h byte.h haveinline.h fmt_xlonglong.o: fmt/fmt_xlonglong.c fmt.h byte.h +fmt_xmlescape.o: fmt/fmt_xmlescape.c fmt.h byte.h io_appendfile.o: io/io_appendfile.c io_internal.h io.h uint64.h taia.h \ tai.h uint32.h array.h iarray.h haveepoll.h havekqueue.h havedevpoll.h \ havesigio.h @@ -245,6 +247,12 @@ io_dontwantwrite.o: io/io_dontwantwrite.c io_internal.h io.h uint64.h \ io_eagain.o: io/io_eagain.c io_internal.h io.h uint64.h taia.h tai.h \ uint32.h array.h iarray.h haveepoll.h havekqueue.h havedevpoll.h \ havesigio.h +io_eagain_read.o: io/io_eagain_read.c io_internal.h io.h uint64.h taia.h \ + tai.h uint32.h array.h iarray.h haveepoll.h havekqueue.h havedevpoll.h \ + havesigio.h +io_eagain_write.o: io/io_eagain_write.c io_internal.h io.h uint64.h \ + taia.h tai.h uint32.h array.h iarray.h haveepoll.h havekqueue.h \ + havedevpoll.h havesigio.h io_fd.o: io/io_fd.c io_internal.h io.h uint64.h taia.h tai.h uint32.h \ array.h iarray.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h \ byte.h @@ -286,9 +294,6 @@ io_sigpipe.o: io/io_sigpipe.c io_internal.h io.h uint64.h taia.h tai.h \ io_socketpair.o: io/io_socketpair.c windoze.h io_internal.h io.h uint64.h \ taia.h tai.h uint32.h array.h iarray.h haveepoll.h havekqueue.h \ havedevpoll.h havesigio.h -io_starteventloop.o: io/io_starteventloop.c io_internal.h io.h uint64.h \ - taia.h tai.h uint32.h array.h iarray.h haveepoll.h havekqueue.h \ - havedevpoll.h havesigio.h io_timeout.o: io/io_timeout.c io_internal.h io.h uint64.h taia.h tai.h \ uint32.h array.h iarray.h haveepoll.h havekqueue.h havedevpoll.h \ havesigio.h @@ -371,7 +376,8 @@ range_str4inbuf.o: mult/range_str4inbuf.c rangecheck.h range_strinbuf.o: mult/range_strinbuf.c rangecheck.h umult16.o: mult/umult16.c safemult.h uint16.h uint32.h uint64.h umult32.o: mult/umult32.c safemult.h uint16.h uint32.h uint64.h -umult64.o: mult/umult64.c safemult.h uint16.h uint32.h uint64.h +umult64.o: mult/umult64.c haveuint128.h safemult.h uint16.h uint32.h \ + uint64.h open_append.o: open/open_append.c open.h open_excl.o: open/open_excl.c open.h open_read.o: open/open_read.c open.h @@ -632,7 +638,7 @@ t.o: t.c fmt.h byte.h scan.h str.h uint16.h uint32.h stralloc.h socket.h \ tai.h uint64.h case.h errmsg.h iob.h io.h array.h safemult.h iarray.h \ CAS.h io_internal.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h BYTE_OBJS=byte_chr.o byte_copy.o byte_copyr.o byte_diff.o byte_equal_notimingattack.o byte_rchr.o byte_zero.o -FMT_OBJS=fmt_8long.o fmt_8longlong.o fmt_asn1derlength.o fmt_asn1dertag.o fmt_double.o fmt_escapecharc.o fmt_escapecharhtml.o fmt_escapecharjson.o fmt_escapecharquotedprintable.o fmt_escapecharquotedprintableutf8.o fmt_escapecharxml.o fmt_fill.o fmt_httpdate.o fmt_human.o fmt_humank.o fmt_long.o fmt_longlong.o fmt_minus.o fmt_pad.o fmt_plusminus.o fmt_str.o fmt_strm_internal.o fmt_strn.o fmt_tohex.o fmt_ulong.o fmt_ulong0.o fmt_ulonglong.o fmt_utf8.o fmt_xlong.o fmt_xlonglong.o +FMT_OBJS=fmt_8long.o fmt_8longlong.o fmt_asn1derlength.o fmt_asn1dertag.o fmt_double.o fmt_escapecharc.o fmt_escapecharhtml.o fmt_escapecharjson.o fmt_escapecharquotedprintable.o fmt_escapecharquotedprintableutf8.o fmt_escapecharxml.o fmt_fill.o fmt_httpdate.o fmt_human.o fmt_humank.o fmt_long.o fmt_longlong.o fmt_minus.o fmt_pad.o fmt_plusminus.o fmt_str.o fmt_strm_internal.o fmt_strn.o fmt_tohex.o fmt_ulong.o fmt_ulong0.o fmt_ulonglong.o fmt_utf8.o fmt_xlong.o fmt_xlonglong.o fmt_xmlescape.o SCAN_OBJS=scan_8int.o scan_8long.o scan_8longlong.o scan_8longn.o scan_8short.o scan_asn1derlength.o scan_asn1dertag.o scan_charsetnskip.o scan_double.o scan_fromhex.o scan_httpdate.o scan_int.o scan_long.o scan_longlong.o scan_longn.o scan_netstring.o scan_noncharsetnskip.o scan_nonwhitenskip.o scan_plusminus.o scan_short.o scan_uint.o scan_ulong.o scan_ulonglong.o scan_ulongn.o scan_ushort.o scan_utf8.o scan_whitenskip.o scan_xint.o scan_xlong.o scan_xlonglong.o scan_xlongn.o scan_xshort.o STR_OBJS=str_chr.o str_copy.o str_diff.o str_diffn.o str_len.o str_rchr.o str_start.o UINT_OBJS=uint16_pack.o uint16_pack_big.o uint16_read.o uint16_read_big.o uint16_unpack.o uint16_unpack_big.o uint32_pack.o uint32_pack_big.o uint32_read.o uint32_read_big.o uint32_unpack.o uint32_unpack_big.o uint64_pack.o uint64_pack_big.o uint64_read.o uint64_read_big.o uint64_unpack.o uint64_unpack_big.o @@ -647,7 +653,7 @@ TAI_OBJS=tai_add.o tai_now.o tai_pack.o tai_sub.o tai_uint.o tai_unpack.o DNS_OBJS=dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o dns_ip6.o dns_ipq.o dns_ipq6.o dns_mx.o dns_name.o dns_nd.o dns_nd6.o dns_packet.o dns_random.o dns_rcip.o dns_rcrw.o dns_resolve.o dns_sortip.o dns_sortip6.o dns_transmit.o dns_txt.o CASE_OBJS=case_diffb.o case_diffs.o case_lowerb.o case_lowers.o case_starts.o MULT_OBJS=imult16.o imult32.o imult64.o range_arrayinbuf.o range_str2inbuf.o range_str4inbuf.o range_strinbuf.o umult16.o umult32.o umult64.o -ARRAY_OBJS=array_allocate.o array_bytes.o array_cat.o array_cat0.o array_catb.o array_cate.o array_cats.o array_cats0.o array_equal.o array_fail.o array_get.o array_length.o array_reset.o array_start.o array_trunc.o array_truncate.o iarray_allocate.o iarray_free.o iarray_get.o iarray_init.o iarray_length.o +ARRAY_OBJS=array_allocate.o array_bytes.o array_cat.o array_cat0.o array_catb.o array_cate.o array_cats.o array_cats0.o array_equal.o array_fail.o array_get.o array_length.o array_reset.o array_start.o array_trunc.o array_truncate.o iarray_allocate.o iarray_free.o iarray_get.o iarray_init.o IO_OBJS=io_appendfile.o io_block.o io_canread.o io_canwrite.o io_check.o io_close.o io_closeonexec.o io_createfile.o io_dontwantread.o io_dontwantwrite.o io_eagain.o io_fd.o io_finishandshutdown.o io_getcookie.o io_mmapwritefile.o io_nonblock.o io_passfd.o io_pipe.o io_readfile.o io_readwritefile.o io_receivefd.o io_sendfile.o io_setcookie.o io_sigpipe.o io_socketpair.o io_timeout.o io_timeouted.o io_tryread.o io_tryreadtimeout.o io_trywrite.o io_trywritetimeout.o io_wait.o io_waitread.o io_waituntil.o io_waituntil2.o io_waitwrite.o io_wantread.o io_wantwrite.o iob_addbuf.o iob_addbuf_free.o iob_addbuf_internal.o iob_addbuf_munmap.o iob_addfile.o iob_addfile_close.o iob_adds.o iob_adds_free.o iob_bytesleft.o iob_free.o iob_new.o iob_prefetch.o iob_reset.o iob_send.o iob_write.o TEXTCODE_OBJS=base64.o fmt_base64.o fmt_cescape.o fmt_foldwhitespace.o fmt_hexdump.o fmt_html.o fmt_jsonescape.o fmt_ldapescape.o fmt_ldapescape2.o fmt_quotedprintable.o fmt_to_array.o fmt_to_sa.o fmt_tofrom_array.o fmt_urlencoded.o fmt_uuencoded.o fmt_yenc.o scan_base64.o scan_cescape.o scan_hexdump.o scan_html.o scan_jsonescape.o scan_ldapescape.o scan_quotedprintable.o scan_to_array.o scan_to_sa.o scan_tofrom_array.o scan_urlencoded.o scan_uuencoded.o scan_yenc.o CDB_OBJS=cdb.o cdb_hash.o cdb_make.o cdb_traverse.o @@ -711,7 +717,8 @@ dep libsocket havealloca.h haveuint128.h INCLUDES=buffer.h byte.h fmt.h ip4.h ip6.h mmap.h scan.h socket.h str.h stralloc.h \ uint16.h uint32.h uint64.h open.h textcode.h tai.h taia.h dns.h iopause.h case.h \ openreadclose.h readclose.h ndelay.h array.h io.h safemult.h iob.h havealloca.h \ -errmsg.h cdb.h cdb_make.h rangecheck.h iarray.h va_narg.h isset.h +errmsg.h cdb.h cdb_make.h rangecheck.h iarray.h va_narg.h isset.h \ +compiletimeassert.h install-inc: install -d $(INCLUDEDIR)