Andreas Gustafsson
1ebadd777b
pullup:
...
1021. [bug] On Win32, log message timestamps were one month
later than they should have been, and the server
would exhibit unspecified behavior in December.
2001-10-01 01:42:38 +00:00
Danny Mayer
37f08fab28
Timestamp was one month later than it should have been. SYSTEMTIME starts with January=1
2001-09-30 02:41:11 +00:00
Andreas Gustafsson
513dd4a616
style
2001-09-28 23:34:55 +00:00
Danny Mayer
7e351cd18f
Added named service location in Registry
2001-09-25 01:41:43 +00:00
Danny Mayer
ecde762a60
Code to fetch list of NT Groups for a given account. This is used for retrieving privilege information and rights for an account as well as for NTFS File system and other object security
2001-09-25 01:37:02 +00:00
Andreas Gustafsson
1299e93989
1011. [cleanup] Removed isc_dir_current().
2001-09-20 21:21:53 +00:00
Mark Andrews
ae5df22719
iadd missing const
2001-09-20 06:50:34 +00:00
Mark Andrews
ad8e6236a4
add missing const to declaration.
2001-09-20 06:50:08 +00:00
Mark Andrews
5e8c385e64
pullup:
...
1004. [port] Deal with recvfrom() returning EHOSTDOWN. [RT #1770 ]
2001-09-19 02:37:21 +00:00
Andreas Gustafsson
1de63e34f1
1004. [port] Deal with recvfrom() returning EHOSTDOWN. [RT #1770 ]
2001-09-18 22:54:02 +00:00
Andreas Gustafsson
94c8b1aa0f
pullup:
...
doio_recv was not catching a ECONNRESET error. Fixed this and added code to catch other possible errors. Miscellaneous errno handling cleanup [RT #1745 ]
2001-09-17 22:28:57 +00:00
Mark Andrews
8138bb315d
The hash of IPv6 isc_sockaddr_t containing mapped IPv4 addresses should be
...
the same as the hash of the corresponding IPv4 isc_sockaddr_t.
2001-09-17 06:58:18 +00:00
Danny Mayer
8423b244ec
doio_recv was not catching a ECONNRESET error. Fixed this and added code to catch other possible errors. Miscellaneous errno handling cleanup [RT #1745 ]
2001-09-16 06:19:22 +00:00
Mark Andrews
e0806ab5ed
Correct comment saying that 'max_size' is ignored.
2001-09-07 00:51:51 +00:00
Andreas Gustafsson
50a8312c9f
#define ISC_MEM_TRACKLINES 1
2001-09-06 23:03:17 +00:00
Andreas Gustafsson
f8dbd659d0
When ISC_MEM_TRACKLINES=1, don't calle {add,delete}_trace_entry()
...
for every alloc/free if neither ISC_MEM_DEBUGTRACE nor
ISC_MEM_DEBUGRECORD is turned on. This removes my
last objection to setting ISC_MEM_TRACKLINES=1 by default.
2001-09-06 23:03:01 +00:00
Andreas Gustafsson
6d858e75d4
more documentation; indentation
2001-09-06 22:13:47 +00:00
Andreas Gustafsson
18159f6f60
document what ISC_MEM_DEBUG does; clarify descriptions of other
...
memory debugging options
2001-09-06 18:23:35 +00:00
Mark Andrews
2958e100b5
check return value of strftime()
2001-09-06 00:34:06 +00:00
Andreas Gustafsson
3f538ef15c
pullup:
...
[RT #1709 ]
Change isc_entropy_usebestsource() to have saner semantics:
- If an invalid file is specified, an error will be returned instead of the
keyboard being used.
- If no file is specified but a random device is present, the keyboard will
be used if there is an error opening the random device.
- ISC_ENTROPY_KEYBOARDYES indicates that the keyboard should be the
only device used. Otherwise, passing '-r keyboard' is meaningless
on a machine with a random device, since the keyboard will not be used.
Change the callers in the dnssec tools and rndc-confgen to check for the
special file "keyboard" and call isc_entropy_usebestsource() with the right set
of parameters.
2001-09-06 00:14:18 +00:00
Brian Wellington
ed29aefe31
[RT #1709 ]
...
Change isc_entropy_usebestsource() to have saner semantics:
- If an invalid file is specified, an error will be returned instead of the
keyboard being used.
- If no file is specified but a random device is present, the keyboard will
be used if there is an error opening the random device.
- ISC_ENTROPY_KEYBOARDYES indicates that the keyboard should be the
only device used. Otherwise, passing '-r keyboard' is meaningless
on a machine with a random device, since the keyboard will not be used.
Change the callers in the dnssec tools and rndc-confgen to check for the
special file "keyboard" and call isc_entropy_usebestsource() with the right set
of parameters.
2001-09-05 22:32:09 +00:00
Brian Wellington
aba9f3dd7e
remove an invalid close paren
2001-09-05 21:05:36 +00:00
Andreas Gustafsson
f58f6043ce
pullup:
...
Assertion failure when ISC_MEM_DEBUGRECORD set.
2001-09-05 17:51:13 +00:00
Andreas Gustafsson
f17bffa68d
pullup:
...
isc_time_formattimestamp() created static const for bad time string
2001-09-05 17:32:05 +00:00
Andreas Gustafsson
b1436346a0
pullup:
...
isc_file_getmodtime() does not need write access to file
2001-09-05 17:29:25 +00:00
Andreas Gustafsson
26f327f1f5
const correctness
2001-09-05 17:22:55 +00:00
Andreas Gustafsson
ff6e834f7d
check return value of strftime()
2001-09-05 17:05:47 +00:00
Andreas Gustafsson
fdd3a3e7fa
pullup:
...
needs #include <isc/print.h>
2001-09-05 17:04:43 +00:00
Andreas Gustafsson
33f87146a8
needs #include <isc/print.h>
2001-09-05 17:03:42 +00:00
Mark Andrews
7f006841fc
Assertion failure when ISC_MEM_DEBUGRECORD set.
2001-09-05 06:26:07 +00:00
Danny Mayer
e78a28ffb5
isc_time_formattimestamp() created static const for bad time string
2001-09-05 04:18:15 +00:00
Danny Mayer
fdacf913e1
isc_file_getmodtime() does not need write access to file
2001-09-05 04:17:13 +00:00
Andreas Gustafsson
7ee450d5f6
pullup:
...
972. [bug] The file modification time code in zone.c was using the
wrong epoch. [RT #1667 ]
(This pullup includes not only the changes to zone.c, but all the
recent epoch-related fixes)
2001-09-05 00:38:13 +00:00
Andreas Gustafsson
e5094285ce
pullup:
...
Update to change path to resolv.conf and define RESOLV_CONF
2001-09-04 19:36:33 +00:00
Danny Mayer
6f2e507e7e
Added support for isc__strerror, moving the message code handling from errno2result.c to strerror.c. updated routines to use it and updated makes to include additional files
2001-09-04 03:22:23 +00:00
Danny Mayer
7c7b389ae0
Added isc_file_truncate routine
2001-09-04 03:10:33 +00:00
Danny Mayer
a22a4084dd
Update to change path to resolv.conf and define RESOLV_CONF
2001-09-01 05:22:04 +00:00
Andreas Gustafsson
355cc22e32
The epoch is once again zero in Win32;
...
removed win32 implementations of isc_time_set(), isc_time_seconds() and
isc_time_secondsastimet() as they are no longer needed
2001-09-01 00:55:27 +00:00
Andreas Gustafsson
43f117d5f0
typo in comment
2001-09-01 00:46:04 +00:00
Andreas Gustafsson
b3034d815c
isc_time_formattimestamp() declaration should go before ISC_LANG_ENDDECLS, not after
2001-09-01 00:18:43 +00:00
Andreas Gustafsson
bdec94477c
isc_file_getmodtime() should call GetFileTime(), not file_stats(),
...
so that the time returned is a native win32 FILETIME
2001-09-01 00:05:38 +00:00
Andreas Gustafsson
528baec07b
removed C++ comments; comment and indentation style
2001-08-31 23:57:05 +00:00
Andreas Gustafsson
ff8cd3afa7
implemented isc_time_formattimestamp() for Win32.
...
I have no way of testing this.
2001-08-31 22:31:18 +00:00
Andreas Gustafsson
6184f9fc1e
REQUIRE(len > 0)
2001-08-31 21:58:49 +00:00
Andreas Gustafsson
c8563aaf86
added isc_time_formattimestamp() (Unix only so far);
...
call it from log.c [RT #1687 ]
2001-08-31 21:51:27 +00:00
Andreas Gustafsson
9113f8b75c
pullup: string formats
2001-08-31 18:01:22 +00:00
Mark Andrews
4b87939256
strerror() -> isc__strerror() [RT #1689 ]
2001-08-31 05:57:58 +00:00
Mark Andrews
6db92bd107
string formats
2001-08-31 04:47:59 +00:00
Andreas Gustafsson
39125379e5
made mkstemp() static
2001-08-30 21:16:41 +00:00
Andreas Gustafsson
faa96aba6d
removed empty line
2001-08-30 20:55:37 +00:00
Andreas Gustafsson
c2df80e759
lower case
2001-08-30 20:40:27 +00:00
Andreas Gustafsson
6aa1a89bf1
pullup:
...
RT #1675 resolv.conf was specified to be in an invalid directory.
Location was changed to be in the same etc directory as all of the other
configuration files
2001-08-30 20:29:53 +00:00
Andreas Gustafsson
9ec3c7b42d
mem.c did not compile when ISC_MEM_TRACKLINES was not defined
2001-08-30 20:23:44 +00:00
Mark Andrews
90989375ca
Improve time taken to free memory when ISC_MEM_DEBUGRECORD is set.
2001-08-30 05:40:04 +00:00
Mark Andrews
59251c9e9c
isc_file_truncate()
2001-08-30 04:55:36 +00:00
Mark Andrews
91579a2424
add isc_strerror to build
2001-08-30 04:49:36 +00:00
cvs2git
92e662f530
This commit was manufactured by cvs2git to create branch 'v9_3'.
2001-08-30 04:33:22 +00:00
cvs2git
02da396800
This commit was manufactured by cvs2git to create branch 'v9_2'.
2001-08-30 04:33:21 +00:00
Mark Andrews
c654449ccf
isc__strerror
2001-08-30 04:33:20 +00:00
Danny Mayer
b602bf9e8b
RT #1667 . File modification dates were wrong due to the isc_time_set routine not adding back the epoch to give the absolute Windows time and isc_file_settime not correctly making the right calls to modify the file date
2001-08-30 04:31:31 +00:00
Danny Mayer
e2a35f7524
RT #1675 resolv.conf was specified to be in an invalid directory. Location was changed to be in the same etc directory as all of the other configuration files
2001-08-30 04:28:24 +00:00
Danny Mayer
06b47b13db
Bug #1671 isc_time_now was erroneously calling strtime()
2001-08-29 05:13:42 +00:00
Mark Andrews
28fc90e6c8
#857 was incomplete, ISC_MAGIC was not being used everwhere it should have been.
...
'magic' was not being declared consistantly.
some #include <isc/magic.h> were missing from other include files.
NS_SERVER_VALID was not using ISC_MAGIC_VALID.
2001-08-28 03:58:29 +00:00
Mark Andrews
330b421487
963. [bug] bad ISC_LANG_ENDDECLS. [RT #1645 ]
2001-08-20 23:56:25 +00:00
Mark Andrews
2c0b26955e
961. [bug] Tried to use a IPV6 feature when ISC_PLATFORM_HAVEIPV6
...
was not defined. [RT #1482 ]
2001-08-16 07:27:48 +00:00
Mark Andrews
6f7660093e
959. [port] freebsd: ncpus via sysctlbyname(). [RT #1584 ]
2001-08-16 06:19:58 +00:00
Mark Andrews
8ff4edd14e
silence format warning: remove unused arg.
2001-08-12 00:12:14 +00:00
Danny Mayer
51ac5c28de
Changed win32 code to remove references to named.key
2001-08-09 02:55:41 +00:00
Andreas Gustafsson
76c8294c81
format string bugs and improved format string checking [RT #1578 ]
2001-08-08 22:54:55 +00:00
Danny Mayer
66352c0a05
Added support for key for win32
2001-08-06 05:34:26 +00:00
Danny Mayer
a59a1d313a
Updated .mak files to remove dependancies
2001-08-02 07:05:43 +00:00
Danny Mayer
b59115de5f
Updated config information
2001-07-28 02:50:39 +00:00
Andreas Gustafsson
321fd0ceb4
in named-checkconf, pass in the complete path of named.conf
...
as NAMED_CONFFILE instead of constructing it by compile-time concatenation of NS_SYSCONFDIR
and /named.conf, to facilitate win32 support
2001-07-27 17:45:29 +00:00
Danny Mayer
0794ffffee
Added paths info
2001-07-27 05:17:39 +00:00
Danny Mayer
075a7534a8
Added path information - retry
2001-07-27 05:16:55 +00:00
Danny Mayer
61e561c2ca
Added path information
2001-07-27 05:15:27 +00:00
Andreas Gustafsson
e5b18854e3
define RNDC_AUTOCONFFILE on win32 so that the code again
...
compiles on win32 and behaves like it did before.
2001-07-26 20:40:01 +00:00
Andreas Gustafsson
dcfaeabc63
renamed RNDC_SYSCONFPATH to RNDC_CONFFILE; there's
...
nothing specifically SYS about it
2001-07-26 20:06:22 +00:00
Danny Mayer
922a15c7c0
Changes to support win32
2001-07-26 03:15:16 +00:00
Danny Mayer
2b9debd520
syslog for win32
2001-07-23 03:03:22 +00:00
Danny Mayer
e056d87076
Updated scripts
2001-07-22 06:26:47 +00:00
Danny Mayer
138fc7eeba
Created makefile
2001-07-22 06:25:34 +00:00
Mark Andrews
aac5a28f1f
LIBISCCFG_EXTERNAL_DATA should be in lwres/platform.h
2001-07-18 08:15:23 +00:00
Andreas Gustafsson
d2a7d7e26c
all failures opening /dev/random were reported as
...
'I/O error'. This was highly confusing.
2001-07-18 01:31:13 +00:00
Andreas Gustafsson
07dcadc6e2
update_copyrights
2001-07-17 20:29:36 +00:00
Andreas Gustafsson
4954945531
coding style
2001-07-17 19:17:02 +00:00
Mark Andrews
15903c9f3a
memory allocation failure would cause INSIST(ctx->stats[i].gets == 0) failure.
...
use consistant arguement name for MEMRECORD
2001-07-17 10:02:46 +00:00
Andreas Gustafsson
ba35e9924e
added isc_file_ischdiridempotent()
2001-07-16 18:33:02 +00:00
Andreas Gustafsson
a548a3c20c
added unix implementation of isc_file_absolutepath()
2001-07-16 17:26:44 +00:00
Andreas Gustafsson
dee69dd3aa
renamed isc_file_getabsolutepath() to isc_file_absolutepath()
...
to be more consistent with established naming conventions
2001-07-16 17:22:17 +00:00
Andreas Gustafsson
9115330256
coding style
2001-07-16 04:09:45 +00:00
Danny Mayer
3bd4083e48
Updates to support win32
2001-07-16 03:52:14 +00:00
Mark Andrews
bddfe77128
936. [func] Warn when non dotted decimal quad's are used.
...
[RT #1084 ]
935. [bug] inet_pton failed to reject leading zeros.
2001-07-16 03:06:53 +00:00
Andreas Gustafsson
aa0dc8d920
934. [port] Deal with systems where accept() spuriously returns
...
ECONNRESET.
2001-07-15 22:50:24 +00:00
Andreas Gustafsson
86a733bc74
use ISC_PLATFORM_RLIMITTYPE unconditionally, eliminating
...
the need for the HAVE_RLIM_T macro
2001-07-14 01:55:08 +00:00
Danny Mayer
c4958494a9
Updates to support LIBISC_EXTERNAL_DATA and misc. cleanup
2001-07-12 05:58:28 +00:00
Mark Andrews
c70896e026
namespace collision [RT #1399 ]
2001-07-12 03:51:14 +00:00
David Lawrence
37aa910318
ISC_PLATFORM_USEDECLSPEC hook for Microsoft DLL declaration junk
2001-07-11 05:32:55 +00:00
Danny Mayer
ad38e19578
Fix isabsolute for absolute path names
2001-07-11 04:32:15 +00:00
Andreas Gustafsson
5d97773191
rewrote isc_file_isabsolute()
2001-07-10 17:31:05 +00:00
Danny Mayer
14597c218d
Fix memory leak [RT 1478]
2001-07-10 06:27:44 +00:00
Danny Mayer
bb48ac4f81
array bounds error in isc_file_isabsolute and REQUIRE != NULL fixes [RT 1470]
2001-07-10 06:24:15 +00:00
Brian Wellington
bb5de15290
REQUIRE that parameters are not NULL in many functions [RT #1470 ]
2001-07-10 04:23:01 +00:00
Andreas Gustafsson
38fed7505d
do multiple inclusion protection in all header files, and using the established ISC style
2001-07-09 21:34:44 +00:00
Andreas Gustafsson
e76d4c91bf
coding style
2001-07-09 21:06:30 +00:00
Mark Andrews
9d99e3fda1
924. [port] Extend pre-RFC2133 support. [RT #987 ]
2001-07-09 08:07:41 +00:00
Danny Mayer
36d26b9d26
add export for isc_ntfile_printf
2001-07-08 07:22:42 +00:00
Danny Mayer
11045ab3d1
code style cleanup
2001-07-08 05:16:13 +00:00
Danny Mayer
68c2ccc953
code style cleanup
2001-07-08 05:09:35 +00:00
Andreas Gustafsson
305795c093
finish app.h move
2001-07-06 22:12:21 +00:00
Andreas Gustafsson
1e71bc82b8
coding style
2001-07-06 21:57:22 +00:00
Andreas Gustafsson
718d6eadd4
spacing
2001-07-06 21:47:15 +00:00
Andreas Gustafsson
96ed624253
923. [bug] Multiline TSIG secrets (and other multiline strings)
...
were not accepted in named.conf. [RT #1469 ]
2001-07-06 20:34:12 +00:00
Andreas Gustafsson
675a191f43
moved <isc/app.h> to OS-independent include directory
2001-07-06 19:50:05 +00:00
Andreas Gustafsson
8e3366bd7c
simplified
2001-07-06 19:40:33 +00:00
Danny Mayer
2c50ab702f
stat routines
2001-07-06 06:00:17 +00:00
Danny Mayer
7fb411cfd1
plaform specific header
2001-07-06 05:59:09 +00:00
Danny Mayer
b02635aa75
offset header
2001-07-06 05:58:00 +00:00
Danny Mayer
1ee7ce8fbd
win32-specific runtime path header
2001-07-06 05:57:19 +00:00
Danny Mayer
b22d62aa69
ntfile FILE replacement headers
2001-07-06 05:56:25 +00:00
Danny Mayer
bcf5804255
win32 keyboard routines
2001-07-06 05:51:45 +00:00
Danny Mayer
a0f854291f
IPv6 on Win32 header
2001-07-06 05:50:42 +00:00
Danny Mayer
12d08bf91e
win32-specific integer definitions
2001-07-06 05:49:22 +00:00
Danny Mayer
c15033634e
Initial win32 release
2001-07-06 05:48:27 +00:00
Danny Mayer
83a373fc81
BIND Event information header
2001-07-06 05:46:37 +00:00
Danny Mayer
f950ce9932
BIND registry header information
2001-07-06 05:45:21 +00:00
Danny Mayer
c5e84ff0e4
app headers
2001-07-06 05:44:32 +00:00
Danny Mayer
f210fb51ef
Version information for libisc module
2001-07-06 05:43:17 +00:00
Danny Mayer
d4cfec8537
I/O header definitions
2001-07-06 05:42:24 +00:00
Danny Mayer
39a1539c7a
Header file for win32 emulation of syslog use the event log
2001-07-06 05:40:41 +00:00
Danny Mayer
f3f064ba86
win32 emulation of syslog use the event log
2001-07-06 05:39:57 +00:00
Danny Mayer
9ecea05b89
stdio routines
2001-07-06 05:38:47 +00:00
Danny Mayer
fd61d0cab1
Initial release of socket code
2001-07-06 05:37:46 +00:00
Danny Mayer
ca5c761cde
Resources Available
2001-07-06 05:37:10 +00:00
Danny Mayer
1c456bcdb4
O/S specific code
2001-07-06 05:36:13 +00:00
Danny Mayer
72c0894efa
functions to determine locations of configuration files at runttime
2001-07-06 05:35:09 +00:00
Danny Mayer
e397736476
win32 overrides of FILE function to centralize I/O stream and avoid problems with iob array
2001-07-06 05:34:06 +00:00
Danny Mayer
48b785fe6b
win32 version of netdb.h headers
2001-07-06 05:32:44 +00:00
Danny Mayer
602f0b8e48
net routines
2001-07-06 05:30:51 +00:00
Danny Mayer
e1bdeeadb3
libisc workspace file
2001-07-06 05:29:58 +00:00
Danny Mayer
fc72de271b
libisc project file
2001-07-06 05:29:24 +00:00
Danny Mayer
1d7574a6de
Export link File
2001-07-06 05:28:32 +00:00
Danny Mayer
0b38e0a117
Keyboard Routines
2001-07-06 05:27:37 +00:00
Danny Mayer
e2d579a021
ipv6 variables initialization
2001-07-06 05:26:58 +00:00
Danny Mayer
3d8c1213d9
Interface Iteration routines
2001-07-06 05:25:20 +00:00
Danny Mayer
fc4bae7e83
header file for error routines
2001-07-06 05:24:22 +00:00
Danny Mayer
9fe3c2060d
error routines
2001-07-06 05:23:58 +00:00
Danny Mayer
a38e51e5ef
Fixed duplicate routines
2001-07-06 05:22:46 +00:00
Danny Mayer
6f5d6e3f8c
isc_app_* routines
2001-07-06 05:21:44 +00:00
Danny Mayer
1e36937976
Entry point routine for libisc
2001-07-06 05:20:33 +00:00
Danny Mayer
e35c1bb3ec
Initial win32 Release
2001-07-06 05:08:39 +00:00
Brian Wellington
64b92523f9
check for getc_unlocked()
2001-07-04 00:34:44 +00:00
Mark Andrews
c18d42b96b
use MEM_RECORD rather than debugging > 1
2001-06-28 01:57:34 +00:00
Mark Andrews
594a685c8d
Add ISC_MEM_DEBUGGING to set default compile time flags.
...
Remember ISC_MEM_DEBUGRECORD state when isc_mem_create() is called as
it is dangerous to change this afterwards.
2001-06-28 01:51:20 +00:00
Mark Andrews
950d71eee3
allow maximum inuse memory to be tracked.
2001-06-27 23:29:29 +00:00
Danny Mayer
53bc020d74
modified to use isc_file_rename instead of rename
2001-06-27 04:37:11 +00:00
Mark Andrews
2bc98b7d91
910. [port] Some pre-RFC2133 IPv6 do not define IN6ADDR_ANY_INIT.
2001-06-25 03:56:58 +00:00
David Lawrence
9bfa90768a
907. [func] The ability to get entropy from either the
...
random device, a user-provided file or from
the keyboard was migrated from the DNSSEC tools
to libisc as isc_entropy_usebestsource().
2001-06-22 17:05:54 +00:00
David Lawrence
2d67c24744
906. [port] Separated the system independent portion of
...
lib/isc/unix/entropy.c into lib/isc/entropy.c
and added lib/isc/win32/entropy.c.
2001-06-21 14:19:20 +00:00
Andreas Gustafsson
19872fdfb7
convert more socket errors to specific ISC error codes, notably ECONNRESET
2001-06-15 22:07:51 +00:00
Mark Andrews
9a6573e16b
sys/select.h not sys/socket.h
2001-06-12 01:35:42 +00:00
Andreas Gustafsson
509ef0c871
Keep track of the number of times the system malloc() has
...
failed, to help determine whether a server crash resulted
from a bug in the handling of an out-of-memory condition
or not.
2001-06-11 20:27:16 +00:00
David Lawrence
eda73d8aad
redo 1.64 "potential null pointer dereference" more consistent with the style
...
of the function and file (i.e., not returning from the middle of a function)
2001-06-10 17:06:45 +00:00
David Lawrence
04260c5c48
895. [func] New function, isc_dir_current(), akin to POSIX's
...
getcwd().
2001-06-08 23:50:32 +00:00
David Lawrence
504f7802d4
893. [func] Removed isc_file_test() and added isc_file_exists()
...
for the basic functionality that was being added
with isc_file_test().
2001-06-08 21:53:49 +00:00
Mark Andrews
4585aeb2cc
866. [func] Close debug only file channels when debug is set to
...
zero. [RT #1246 ]
2001-06-08 02:57:13 +00:00
Brian Wellington
224e84bc0e
misc. stuff related to [RT #1293 ]
2001-06-07 00:21:53 +00:00
Brian Wellington
338d559b3e
remove extraneous blank line
2001-06-06 21:02:43 +00:00
David Lawrence
65640f401a
Removed the requirement for isc_mem_setwater() that when the callback function
...
is not null then hi_water must exceed lo_water and both must be > 0.
Now requires hi_water >= lo_water, and they can both be 0. Not allowing
them to be equal was just an unnecessary restriction, and letting them be 0
is useful for the case where the context has had non-zero values set, went
over hi_water and called the callback, and then wanted to remove limits
(perhaps because of a reconfiguration). This allows the callback to
be signaled as ISC_MEM_LOWATER on the next isc_mem_put(), which the caller
might need to terminate any outstanding action that was triggered by
the hi_water.
2001-06-05 22:14:20 +00:00
Brian Wellington
33e49e8fdc
#include <isc/magic.h>
2001-06-05 06:34:11 +00:00
David Lawrence
92ef1a9b9d
use ISC_MAGIC for all magic numbers, for our friends in EBCDIC land
2001-06-04 19:33:39 +00:00
Brian Wellington
d0b6ece407
ISC_LANG_BEGINDECLS -> ISC_LANG_ENDDECLS
2001-06-01 01:11:28 +00:00
David Lawrence
64c7a503c2
ensure that INADDR_LOOPBACK is defined
2001-05-31 10:54:51 +00:00
David Lawrence
50b7860fff
new function isc_file_test() as framework for determining various attributes
...
of a pathname
2001-05-31 10:53:14 +00:00
Brian Wellington
9547c4a3f8
potential null pointer dereference
2001-05-29 22:35:54 +00:00
Mark Andrews
097dc0a693
add sys/types.h for FreeBSD 2.1
2001-05-18 03:02:45 +00:00
Andreas Gustafsson
d76b6ae2ad
isc_print_vsnprintf() could throw an assertion failure when
...
given a %lld format, causing a deadlock when logging the assertion if invoked
from the logging system. Since the %qd format does not have the bug, this only
affects platforms where the native quad format is %lld and that lack a native
vsnprintf(). The only known such platform is SunOS 5.5.1. [RT #1312 ]
2001-05-16 00:52:55 +00:00
Andreas Gustafsson
740ae0808f
when returning a socket error, use isc__errno2result() instead
...
of always returning ISC_R_UNEXPECTED
2001-05-14 23:58:33 +00:00
Andreas Gustafsson
fd5847ef09
828. [bug] The errno value from recvfrom() could be overwritten
...
by logging code. [RT #1293 ]
2001-05-14 18:20:03 +00:00
Andreas Gustafsson
c3ebcedbe5
Add isc_file_progname(), with trivial POSIX implementation, and
...
call it from main(). A separate WIN32 implementation will be needed.
2001-05-08 19:47:55 +00:00
Brian Wellington
d144ea1d1c
isc_file_basename should return a (const char *)
2001-05-05 02:47:21 +00:00
Brian Wellington
f2194a8ba9
implement isc_file_basename()
2001-05-03 18:59:30 +00:00
Andreas Gustafsson
1ed0723a1f
a pointer argument used to return an "int" value into an "int"
...
variable is better defined as "int *" than "unsigned int *"
2001-04-28 01:08:07 +00:00
Andreas Gustafsson
5e194abb5b
814. [bug] Socket objects left over from accept() failures
...
were incorrectly destroyed, causing corruption
of socket manager data structures.
813. [bug] File descriptors exceeding FD_SETSIZE were handled
badly. [RT #1192 ]
2001-04-26 23:45:55 +00:00
David Lawrence
2b5f436aeb
Make greatest_version() return an isc_result_t, which it should have
...
been doing all along since there was the possibility isc_dir_open() would
fail and overloading the return value of "0" was bad practice.
If isc_dir_open() fails in greatest_version(), make sure the path separator
is restored to the destination pathname if it was NULified before returning
the error.
The underlying problem of isc_log_open() not having the bad result of
isc_dir_open() reported anywhere will be slightly mediate by a change
to bin/named/logconf.c to test the directory. lib/isc/log.c can't really
handle it because it has no idea to where such an error should be reported,
and it only shows up during isc_log_open() as part of the isc_log_write()
family of calls, which are all void.
2001-04-25 23:59:44 +00:00
Andreas Gustafsson
0dc1e14537
alphabetized includes
2001-04-24 18:40:07 +00:00
David Lawrence
1bd5b8aac6
use ISC_MAGIC to define magic number
2001-04-17 14:36:45 +00:00
David Lawrence
79ed194592
sigh. always test recompile things even after a minor change. after deciding
...
to _not_ much with the lock tracing/printing facility for the last change,
i forgot to also add the new result variable back into the stack
declarations, where i had correctly put it the first time.
2001-04-17 13:42:32 +00:00
David Lawrence
8e60ba90e0
unlock the mutex when non-blocking locking is attempted and the lock is busy.
2001-04-17 04:07:38 +00:00
David Lawrence
900d7d9c9b
forgot to actually change the macro call that needed the deconst argument
2001-04-14 00:20:07 +00:00
David Lawrence
ddb8f23a09
a different approach to shutting up compilers about an empty file, one that
...
does not cause all the compilers to complain about a variable being
defined but not used.
2001-04-13 02:26:32 +00:00
David Lawrence
79b19f175c
added a single static variable declaration to prevent compilers from
...
complainig about an effectively empty input file.
2001-04-12 22:26:41 +00:00
David Lawrence
de6fe5ebe2
cleared up a const issue with IN6_IS_ADDR_V4MAPPED on some platforms
2001-04-12 21:23:21 +00:00
David Lawrence
6f053cd485
use ISC_TF() to set an isc_boolean_t
2001-04-12 21:04:14 +00:00
David Lawrence
3507ae5d59
#include <time.h> for the utimes() prototype
2001-04-12 19:46:39 +00:00
Andreas Gustafsson
7900390a52
Previous change turned invalid peer address returns from accept()
...
into hard errors - they should be soft errors
2001-04-10 21:48:27 +00:00
Andreas Gustafsson
a84cfaa3f2
The bug fix in socket.c 1.189 was less than ideal: if a socket
...
got wedged in a state where accept() always returns EBADF, the server would loop calling
internal_accept() repeatedly. Implemented an alternative fix where a hard
error in accept() causes an event with a nonzero result code to be sent, and
the new socket object to be freed
2001-04-10 21:38:33 +00:00
Brian Wellington
f8b3c62794
804. [bug] Attempting to obtain entropy could fail in some
...
situations. This would be most common on systems
with user-space threads. [RT #1131 ]
2001-04-04 20:57:35 +00:00
Brian Wellington
672056d560
797. [func] Issue a warning if the 'directory' option contains
...
a relative path. [RT #269 ]
2001-03-29 02:33:48 +00:00
David Lawrence
2a86ee1f54
simplify the test about whether to roll; one expression was redundant
2001-03-28 05:48:16 +00:00
David Lawrence
9027e1bcf1
796. [func] When a size limit is associated with a log file,
...
only roll it when the size is reached, not every
time the log file is opened. [RT #1096 ]
2001-03-28 04:16:32 +00:00
Brian Wellington
1d92d8a245
792. [cleanup] Replace the OMAPI command channel protocol with a
...
simpler one.
2001-03-27 00:44:59 +00:00
Brian Wellington
6eccf5bd07
788. [feature] Add the "match-mapped-addresses" options, which
...
causes IPv6 v4mapped addresses to be treated as
IPv4 addresses for the purpose of acl matching.
2001-03-26 21:33:07 +00:00
Andreas Gustafsson
9efa0d2ae3
do not capitalize error message strings
2001-03-24 02:18:42 +00:00
Brian Wellington
734ae1f7c6
isc_{base64|hex}_decodestring took an unused mctx. Remove the mctx.
2001-03-22 00:07:07 +00:00
Brian Wellington
48565891e8
784. [bug] nsupdate and other programs would not quit properly
...
if some signals were blocked by the caller. [RT #1081 ]
2001-03-20 21:45:20 +00:00
Brian Wellington
dde4382b7f
fix comment
2001-03-19 22:44:52 +00:00
Brian Wellington
2f02f32f04
exit(1), not exit(-1)
2001-03-14 06:31:17 +00:00
Bob Halley
c6237585d8
Fix some typos in the non-threaded version of isc_rwlock_trylock() that
...
were preventing compilation.
2001-03-08 19:52:13 +00:00
David Lawrence
a82fd2c01b
added non-blocking locking, isc_rwlock_trylock()
2001-03-08 00:55:15 +00:00
Andreas Gustafsson
d55642259e
use a simpler, faster hash function
2001-03-07 23:52:16 +00:00
Brian Wellington
2eb3dafdcf
Add the socket flag ISC_R_NORETRY, which makes the socket code treat
...
a soft error as a hard error on send (that is, not retry it). It also
modifies the code calling sendmsg() to retry on EINTR.
2001-03-06 01:23:03 +00:00
Danny Mayer
943322a123
Remove LIBISC_EXTERNAL_DATA usage
2001-03-05 18:47:00 +00:00
Danny Mayer
8096fe1df5
put function declaration on new line
2001-03-05 18:20:24 +00:00
David Lawrence
c56c28c3f2
grammatical typo in comment
2001-03-05 12:34:02 +00:00
Brian Wellington
303243b9d4
Add isc/unix/syslog.c with a function to convert strings to syslog facilities.
2001-03-02 19:25:19 +00:00
Brian Wellington
a8dd4ccadb
missing space
2001-03-01 22:40:09 +00:00
Andreas Gustafsson
28a3d52904
define ISC_PLATFORM_QUADFORMAT in platform.h so that it can more easily
...
be overridden on Win32. This means ISC_PLATFORM_LONGLONGEQUALLONG is no longer
needed. [RT #896 ]
2001-02-27 02:22:17 +00:00
Andreas Gustafsson
c05eeed3c9
754. [bug] Certain failure returns from sendto() could
...
cause the server to retry the transmission
indefinitely. [RT #902 ]
2001-02-24 23:51:09 +00:00
Mark Andrews
70ec7dd741
fix tv_usec in isc_time_nowplusinterval() also.
2001-02-24 10:22:20 +00:00
Mark Andrews
0fd53e151b
unse not sec
2001-02-24 02:53:38 +00:00
Mark Andrews
df0f58959e
752. [func] Correct bad tv_usec elements returned by gettimeofday().
2001-02-23 23:12:28 +00:00
Andreas Gustafsson
042285a6a6
localization-wise, an assertion error message saying
...
(literally) "INSIST(isc_msgcat_get(isc_msgcat, ISC_MSGSET_PRINT, ISC_MSG_USELD,
"use %ld instead of %D") == NULL) failed" is not really any more user-friendly
than one saying just "INSIST("use %ld instead of %D" == NULL) failed
2001-02-22 19:12:57 +00:00
Andreas Gustafsson
9165c95fc2
use isc_int64_t, not long long
2001-02-22 18:03:11 +00:00
Andreas Gustafsson
4115f9d34b
revert 'protect long long with ISC_PLATFORM_HAVELONGLONG' change
2001-02-22 18:01:48 +00:00
Mark Andrews
0490a61acd
protect long long with ISC_PLATFORM_HAVELONGLONG
2001-02-21 06:13:33 +00:00
Mark Andrews
754cca729d
add long long test
2001-02-21 06:09:56 +00:00
Andreas Gustafsson
b7d448de55
no need to specifically ask people to mail bind9-bugs about mempool leaks
2001-02-20 22:03:36 +00:00
Andreas Gustafsson
52719005ab
removed empty line
2001-02-17 01:23:43 +00:00
Brian Wellington
94178e98f8
isc_base64_decodestring should take a const char *, not a char *
2001-02-15 23:21:47 +00:00
Brian Wellington
2d67fbd786
80 character lines
2001-02-15 07:58:48 +00:00
Andreas Gustafsson
449f4411c9
NO NEED TO SHOUT
2001-02-14 23:05:14 +00:00
Brian Wellington
47d78f67cb
Give more information when isc_mempool_destroy() dies with an assertion
...
failure, in the hope that we'll be able to fix the bug one day.
2001-02-13 20:29:27 +00:00
Mark Andrews
382c4ce5a3
737. [port] stdtime failed to compile on certain platforms.
2001-02-13 13:24:09 +00:00
Mark Andrews
ba6e506ed2
#if not #ifdef ISC_MEM_TRACKLINES
2001-02-13 13:20:37 +00:00
Mark Andrews
b499a7c511
Print out the active memory prior to INSIST/REQUIRE failures.
2001-02-13 06:21:32 +00:00
Andreas Gustafsson
02940eaf0f
736. [func] New functions isc_task_{begin,end}exclusive().
2001-02-13 04:11:44 +00:00
Brian Wellington
9f708f9014
isc_mem_stats() should print memory statistics even when there are no
...
allocated blocks at the time it's called.
2001-02-13 01:07:54 +00:00
Andreas Gustafsson
ea16b37d71
install refcount.h
2001-02-12 23:11:05 +00:00
Brian Wellington
1f7f8d5c07
Add isc_socket_sendto2() and isc_socket_recv2(). These versions take
...
a partially constructed event and flags. The flags can include
ISC_SOCKFLAG_IMMEDIATE, which means that if the operation completes, the
event is filled in and not sent.
2001-02-12 21:43:17 +00:00
Brian Wellington
a13ca8a125
Add ISC_R_INPROGRESS (operation in progress)
2001-02-12 20:03:16 +00:00
Brian Wellington
7c3996209b
fix a "statement is unreachable" warning
2001-02-11 00:52:31 +00:00
Andreas Gustafsson
1d625775ee
note that max_size and target_size apply only when
...
ISC_MEM_USE_INTERNAL_MALLOC is set
2001-02-09 19:19:17 +00:00
Andreas Gustafsson
50179a15d1
UNUSED()
2001-02-09 19:08:11 +00:00
Andreas Gustafsson
dd0ef1a9d3
removed the unused and undocumented functions
...
isc_mem_preallocate(), isc_mem_valid(), isc_mem_setsplit(), and
isc_mem_restore()
2001-02-09 19:05:23 +00:00
Andreas Gustafsson
c674a8d5e7
documented the isc_mem_* interface
2001-02-09 18:51:20 +00:00
Andreas Gustafsson
780db05762
use the UNUSED() macro
2001-02-09 18:27:18 +00:00
Andreas Gustafsson
3f53ec3bd7
added missing copyright message; ISC_REFERENCE_H -> ISC_REFCOUNT_H
2001-02-09 00:26:20 +00:00
Andreas Gustafsson
b7f7a77d56
#include <isc/mutex.h>
2001-02-09 00:20:01 +00:00
Brian Wellington
1938554ccc
consolidate duplicated code
2001-02-08 00:04:11 +00:00
Mark Andrews
df0bcff664
extend change #727 to check returned address length for zero.
2001-02-07 23:40:28 +00:00
Brian Wellington
744304361c
actually call isc_thread_setconcurrency()
2001-02-07 21:16:12 +00:00
Andreas Gustafsson
1964de81da
UNUSED() macro added in 1.79 was in the wrong place
2001-02-07 20:05:15 +00:00
Andreas Gustafsson
91f74728a7
UNUSED()
2001-02-07 20:03:23 +00:00
Brian Wellington
abc0c36dc3
The ISC__BUFFER_INIT macro had a typo.
2001-02-07 01:36:12 +00:00
Andreas Gustafsson
9a3ee1570d
"hard" errors in accept() were handled really badly. They were logged
...
twice, and the socket object for the new socket was never destroyed,
causing the server to hang on exit (if multithreaded) or dump core on exit
(if singlethreaded). Now the only difference between "hard" and "soft" errors
is that the latter are not logged.
2001-02-06 23:43:01 +00:00
Andreas Gustafsson
8dab78b566
as a workaround for various OS bugs, do not INSIST() that
...
accept() returns a valid peer address; instead just log an ugly error message
and continue if the peer address is left unchanged or insane by accept()
[RT #809 ]
2001-02-06 23:04:02 +00:00
Brian Wellington
2305225a1c
The interface name field was only partially initialized.
2001-02-06 01:20:46 +00:00
Brian Wellington
770d3b36da
ctx->checkfree was only being initialized if USE_INTERNAL_MALLOC was on.
2001-02-05 23:48:25 +00:00
Brian Wellington
0ef3f4fb41
When memsetting the entropy pool to 0, the count should be the size in bytes,
...
not words.
2001-02-05 23:00:18 +00:00
Andreas Gustafsson
7e361074bc
724. [func] New libisc functions isc_netaddr_any(),
...
isc_netaddr_any6().
2001-02-02 02:48:47 +00:00
Brian Wellington
63ca494e7e
Added the isc_refcount_t type, which is a generic locked reference counter,
...
and make the rbtdb, zone, and view objects use it.
This should reduce contention on other locks, since (in the normal)
implementation, the reference count has its own lock. In the future, it
should also be possible to implement an isc_refcount_t with atomic operations
instead of mutexes, which should also help performance.
2001-01-30 02:50:51 +00:00
Mark Andrews
fd50497bbe
isc_dir_chroot()
2001-01-29 03:17:45 +00:00
Brian Wellington
6f9786fdcf
Consolidate duplicated code in isc_socket_sendto[v] and isc_socket_recv[v].
2001-01-27 06:41:36 +00:00
Brian Wellington
3a66efb0cb
remove the completely unused timer->mctx field.
2001-01-27 02:44:07 +00:00
Brian Wellington
562f162981
remove unused labels
2001-01-27 01:16:09 +00:00
Brian Wellington
dd66e6306b
Remove isc_socket/[send|recv]mark, which were never used.
2001-01-26 23:17:26 +00:00
Damien Neil
dfb0717d75
- Receive and send operations on UDP sockets no longer need to acquire
...
the socket lock. (Assuming the operation succeeds immediately, and doesn't
need to be queued.)
- Communications with the watcher thread tweaked to reduce the need for
locking.
2001-01-25 22:25:10 +00:00
Andreas Gustafsson
b586eb4408
revert half of 711. - there was no off by one error in the v6 case,
...
only in the v4 case
2001-01-25 20:10:02 +00:00
Brian Wellington
1ac2c28488
711. [bug] The libisc and liblwres implementations of
...
inet_ntop contained an off by one error.
2001-01-25 19:39:48 +00:00
Damien Neil
3c31899857
Fix warning in the overrun detection code.
2001-01-25 01:38:01 +00:00
Damien Neil
823eed5ea9
Made the internal malloc() optional, selected by the
...
ISC_MEM_USE_INTERNAL_MALLOC preprocessor constant.
2001-01-25 01:18:00 +00:00
Brian Wellington
f6478f5e44
formatting & macro updates
2001-01-24 21:12:48 +00:00
Brian Wellington
1e3bc7eaeb
only use data from accept() if accept succeeds.
2001-01-23 21:07:12 +00:00
Andreas Gustafsson
b346ae570d
style
2001-01-23 20:45:31 +00:00
Brian Wellington
e90441d922
INSIST that accept() returns a socket of the correct protocol family. Also
...
assign the "pf" field in the new socket.
2001-01-23 20:42:46 +00:00
Mark Andrews
ab0380976c
add isc/platform.h
2001-01-23 06:00:11 +00:00
Mark Andrews
4ae98f5100
Use approptiate typoe based on configure results.
2001-01-23 05:13:25 +00:00
Mark Andrews
66ad1d85cb
703. [port] sys/select.h is needed on older platforms. [RT #695 ]
2001-01-23 04:47:56 +00:00
Mark Andrews
07d6480b68
704. [port] RLIMIT_NOFILE in to available on all platforms.
...
[RT #695 ]
2001-01-23 03:14:28 +00:00
Mark Andrews
363cb30a83
703. [port] sys/select.h is needed on older platforms. [RT #695 ]
2001-01-23 03:07:18 +00:00
Brian Wellington
47f65caf30
The msgcat text contained an extra %s.
2001-01-23 02:27:19 +00:00
Andreas Gustafsson
e8af4e1524
699. [bug] The lexer mishandled empty quoted strings. [RT #694 ]
2001-01-22 02:46:34 +00:00
Andreas Gustafsson
eed89be339
incremented library version number for 9.2
2001-01-19 01:55:11 +00:00
Bob Halley
5c7d67e3e6
include <stdlib.h> to get prototype for exit()
2001-01-17 19:48:45 +00:00
Mark Andrews
fb0663dbdd
687. [bug] Only say we have IPv6, with sufficent functionality,
...
if it has actually been tested. [RT #586 ]
2001-01-17 02:11:20 +00:00
Brian Wellington
64dcb08113
If the app is blocked and a shutdown signal arrives, just exit().
2001-01-17 00:48:54 +00:00
Mark Andrews
2728a98ee4
683. [bug] file leak in isc_lex_openfile().
2001-01-16 07:47:16 +00:00
Andreas Gustafsson
90bffb134e
make_nonblock() errors were reported twice, and one of the instances
...
used the wrong errno value [RT #640 ]
2001-01-11 18:57:23 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Mark Andrews
6976801867
Replace memset() w/ null assignment to last element of array.
...
the strncpy() fills in the other bytes.
2001-01-09 00:39:46 +00:00
Andreas Gustafsson
1514371d94
added UNUSED() macro
2001-01-08 19:58:10 +00:00
Andreas Gustafsson
d1dc805692
include NetBSD mutex debugging kludge only if explicitly requested
...
with -DISC_MUTEX_DEBUG and only if PTHREAD_MUTEX_ERRORCHECK is defined by the pthreads library
2001-01-08 19:47:30 +00:00
Andreas Gustafsson
9afcd92352
enable deadlock detection for mutexes on NetBSD
2001-01-06 01:26:36 +00:00
Brian Wellington
f92f41acea
Detect multiple CPUs on HP-UX.
2001-01-06 01:10:04 +00:00
Brian Wellington
6cf489f9bc
Enabling mutex profiling caused compilation to fail.
2001-01-05 02:17:03 +00:00
Brian Wellington
7357590bee
656. [func] Treat an unescaped newline in a quoted string as
...
an error. This means that TXT records with missing
close quotes should have meaningful errors printed.
2001-01-05 01:02:26 +00:00
Damien Neil
2e36a55861
Added changes for mutex profiling.
2001-01-04 23:38:37 +00:00
Damien Neil
b2a6ebf1bd
Cleaned up some nasty hacks I forgot in the mutex profiling code.
2001-01-04 23:34:03 +00:00
Damien Neil
e535db4a21
Removed some very nasty hacks which I had forgotten in the mutex
...
profiling code.
2001-01-04 23:32:15 +00:00
Damien Neil
0195648290
Turn off mutex profiling by default. (Oops.)
2001-01-04 22:39:33 +00:00
Damien Neil
e9453d609d
Mutex profiling updates, to collect more statistics on mutex usage.
2001-01-04 22:37:37 +00:00
Brian Wellington
bb06860389
CPU detection for IRIX.
2001-01-04 02:52:13 +00:00
Brian Wellington
4502c1b020
spelling
2001-01-04 00:28:19 +00:00
Mark Andrews
4e7942dc76
648. [port] Add support for pre-RFC2133 IPv6 implementations.
2001-01-03 13:13:14 +00:00
David Lawrence
b8ebf57228
fix a rather stupid incomplete cut-n-pasting job of in the
...
ISC_PLATFORM_FIXIN6ISADDR block for UnixWare.
2001-01-01 22:02:27 +00:00
Brian Wellington
ed6d3c9660
remove sanitize cruft
2000-12-29 22:07:25 +00:00
Brian Wellington
0c710d7162
#define isc_mutex_stats to nothing
2000-12-29 19:55:37 +00:00
Brian Wellington
26d20cd51c
oops, forgot to commit this yesterday.
2000-12-29 18:19:52 +00:00
Brian Wellington
3f160155da
ISC_MUTEX_PROFILE can be set to enable basic mutex profiling. Running named
...
with -s prints the results.
2000-12-29 01:29:56 +00:00
Brian Wellington
8e047d3b74
microoptimizations to make quantize/rmsize more efficient.
2000-12-29 01:02:07 +00:00
David Lawrence
090432605e
isc_file_renameunique() set its result incorrectly if renaming failed; it used
...
the value of errno from an unlink() call, not from the rename() call.
2000-12-27 17:21:53 +00:00
Brian Wellington
ee303f481d
639. [bug] Reading entropy from the keyboard would sometimes fail.
...
[RT #591 ]
note: the entropy callback conventions should really be documented.
2000-12-27 00:11:26 +00:00
David Lawrence
801dceea23
Revert my last change. It was stupid, which I if I had been thinking clearly
...
I would have seen *before* I commited anything. So, include isc/thread.h,
isc/mutex.h and isc/condition.h even if ISC_PLATFORM_USETHREADS is not defined.
(What caused me to bother with this at all was a problem that I resolved
a few days ago by fixing configure ... though now that I think about it,
that probably means there is some other latent problem with inconsistent
definitions that could maybe be handled better. I'll look into it more
later, AFTER vacation.)
2000-12-26 21:45:08 +00:00
David Lawrence
bdcae3560b
Only include isc/thread.h, isc/mutex.h and isc/condition.h if
...
ISC_PLATFORM_USETHREADS is defined.
2000-12-26 21:12:25 +00:00
David Lawrence
8ab1d97093
sigh. "define" -> "defined". never make trivial changes without retesting.
2000-12-26 21:06:49 +00:00
David Lawrence
86b8c48576
638. [port] lib/isc/random.c needed to explicitly include
...
time.h explicitly to get a prototype for time() when
pthreads was not being used. [RT #592 ]
2000-12-26 21:02:14 +00:00
David Lawrence
125a916d1a
637. [port] Use isc_u?int64_t instead of (unsigned) long long in
...
lib/isc/print.c. Also allow lib/isc/print.c to
be compiled even if the platform does not need it.
[RT #592 ]
Also cleaned up some const issues.
2000-12-26 21:00:41 +00:00
David Lawrence
0b3427d15c
636. [port] Shut up MSVC++ about a possible loss of precision
...
in the ISC__BUFFER_PUTUINT*() macros. [RT #592 ]
This is the basically the same change made to buffer.c before the macros
were created:
revision 1.18
date: 1999/09/23 17:54:57; author: tale; state: Exp; lines: +4 -4
Shut up MSVC++ compiler warning about loss of precision when assigning
8 bits masked out of a 32 bit int to individual bytes.
Also, an #if 0 around "#define ISC_BUFFER_USEINLINE" was removed, per the
ISC coding style, and instead a comment was used to disable the definition.
2000-12-26 20:51:14 +00:00
David Lawrence
f8da2d9583
634. [bug] A log file will completely stop being written when
...
it reaches the maximum size in all cases, not just
when versioning is also enabled. [RT #570 ]
2000-12-23 19:23:48 +00:00
David Lawrence
17012a8797
632. [port] Cope with rlim_t missing on BSD/OS systems. [RT #575 ]
2000-12-23 02:46:34 +00:00
Brian Wellington
489b762926
- if pthreads are not found, build a nonthreaded version
...
- check for pthread_attr_getstacksize
2000-12-22 20:50:05 +00:00
Andreas Gustafsson
4c1fee4236
don't turn on ISC_MEM_BDEBUGRECORD by default
2000-12-22 18:30:26 +00:00
Brian Wellington
48540261f1
replace (isc_mem_debugging > 1) with (MEM_RECORD)
2000-12-22 00:26:33 +00:00
Andreas Gustafsson
2207599e64
condition.h was not installed
2000-12-21 16:14:49 +00:00
Brian Wellington
a644e87df7
Move the msgcat stuff into socket_log(), to avoid unnecessary calls to
...
isc_msgcat_get() and speed things up.
2000-12-19 20:35:37 +00:00
Andreas Gustafsson
70c91849c3
eliminated compiler warning
2000-12-19 19:29:13 +00:00
Andreas Gustafsson
0833ef954a
when code is duplicated (which it shouldn't be), it should at
...
least be duplicated consistently
2000-12-19 19:19:45 +00:00
Brian Wellington
64a84169d7
621. [port] Disable IPv6 at runtime if they are unusable. This
...
mostly affects Red Hat Linux 7.0.
2000-12-19 01:36:52 +00:00
Andreas Gustafsson
6c29053a20
614. [bug] Checks for uninitialized link fields were prone
...
to false positives, causing assertion failures.
The checks are now disabled by default and may
be re-enabled by defining ISC_LIST_CHECKINIT.
2000-12-15 00:20:55 +00:00
Andreas Gustafsson
5412d26798
entropy.c did not include header files necessary for select(),
...
causing nonthreaded builds to fail on AIX
2000-12-14 22:40:17 +00:00
David Lawrence
b74896ead5
599. [func] Added four new functions to the libisc log API to
...
support i18n messages. isc_log_iwrite(),
isc_log_ivwrite(), isc_log_iwrite1() and
isc_log_ivwrite1() were added.
(The log.h/log.c changes were just minor formatting changes.)
2000-12-12 05:29:33 +00:00
Andreas Gustafsson
fc6f5743aa
use isc_log_iwrite() for localized logging,
...
to keep backwards compatibility
2000-12-12 00:18:01 +00:00
Andreas Gustafsson
eb2d0f4d9d
isc_thread_self() is a function, not an integer [RT #551 ]
2000-12-11 19:17:29 +00:00
Andreas Gustafsson
dea478db31
isc_symexists_ policies were not referred to by their
...
true names in the header comments
2000-12-11 04:08:52 +00:00
Mark Andrews
dd2e7df916
pointer math
2000-12-09 03:20:05 +00:00
Andreas Gustafsson
10e22ebcc3
605. [func] New function isc_lex_getlasttokentext().
2000-12-09 02:05:26 +00:00
Brian Wellington
bb812feb3c
line numbers could be corrupted by very large tokens.
2000-12-09 00:41:33 +00:00
David Lawrence
e544b507b8
602. [func] Cope automatically with UnixWare's broken
...
IN6_IS_ADDR_* macros. [RT #539 ]
2000-12-08 00:55:51 +00:00
Mark Andrews
6fda157766
ISC_LINK_*UNSAFE -> ISC_LINK_INITAND*
2000-12-07 20:15:58 +00:00
David Lawrence
b161f87be8
Updated API to support i18n message arguments to isc_log_{,v}write{,1}.
...
Provided isc_log_i{,v}write{,1}, with appropriate macro substitutions,
for files that are not yet converted to the new API. When everything
is converted, the added functions will be removed.
2000-12-07 19:30:28 +00:00
Brian Wellington
1afae09da4
redundant code
2000-12-06 23:39:04 +00:00
David Lawrence
92f9189aee
move definition of check_overrun() before its first use
2000-12-06 20:34:34 +00:00
David Lawrence
f616ef2ea9
missing close parenthesis for an isc_msgcat_get() in an
...
"#if ISC_MEM_TRACKLINES" block.
2000-12-06 20:32:12 +00:00
Brian Wellington
17aac384e0
595. [port] On Linux 2.2, socket() returns EINVAL when it
...
should return EAFNOSUPPORT. Work around this.
2000-12-06 01:53:38 +00:00
David Lawrence
ee57537f1d
missing close parenthesis after an isc_mgscat_get()
2000-12-06 01:28:02 +00:00
David Lawrence
77078ddc9a
added msgs.h
2000-12-06 01:24:24 +00:00
David Lawrence
87762baad1
oops, guess you guys need this
2000-12-06 01:21:51 +00:00
David Lawrence
9cd6d409b7
first pass at using isc_msgcat_get for message strings in libisc
2000-12-06 00:30:32 +00:00
Andreas Gustafsson
6e8d5fd217
missed some #ifdef->#if changes
2000-12-01 00:52:38 +00:00
Andreas Gustafsson
c52e5c8ed1
test the various memory debug flags with #if instead of #ifdef
...
so that they can be turned off by passing -DISC_MEM_FOO=0 on the compiler
command line; removed some historical cruft
2000-12-01 00:32:02 +00:00
Andreas Gustafsson
16ef05fe1b
incremented
2000-11-30 23:06:32 +00:00
Andreas Gustafsson
25303900d1
missing semicolon
2000-11-29 01:51:54 +00:00
Andreas Gustafsson
1d90a73d6d
Make reloads work again after condition variable hack; added comments
2000-11-29 01:50:49 +00:00
Andreas Gustafsson
8e7ce54bef
Make omapi clients work on single-threaded systems by
...
means of a gross hack involving recursive invocation of the
event loop. [RT #505 ]
2000-11-29 01:27:09 +00:00
Andreas Gustafsson
1f1ff380e0
switch() was missing all break; statements, causing setting of resource
...
limits to always fail
2000-11-28 21:40:52 +00:00
Andreas Gustafsson
78aa86abc6
typos
2000-11-27 17:49:41 +00:00
Mark Andrews
07892e4443
Memory leak when ISC_MEM_TRACKLINES is defined.
2000-11-25 06:40:54 +00:00
Mark Andrews
8a0ff6c15c
576. [doc] isc_log_create() description did not match reality.
...
575. [bug] isc_log_create() was not setting internal state
correctly to reflect the default channels created.
2000-11-24 01:37:26 +00:00
Brian Wellington
bfa244d5d4
Mark callback sources as bad if the get() routine returns failure. Also
...
some other cleanup, and a reversal of the incorrect destroylock patch.
2000-11-23 01:04:00 +00:00
Brian Wellington
a452eb6b5d
a mutex wasn't being destroyed
2000-11-23 00:26:11 +00:00
Andreas Gustafsson
20e1ac3376
removed unused variable poke_needed
2000-11-22 23:48:14 +00:00
Brian Wellington
b0214977e8
Instead of storing parentheses deltas, just copy lex->paren_count and
...
restore it on ungettoken(). This is much easier (thanks, Mark).
2000-11-20 00:41:50 +00:00
Brian Wellington
cfd8d65ec1
#include <ctype.h>
2000-11-19 22:10:03 +00:00
Brian Wellington
fb1ee7bee0
isc_hex_fromtext didn't handle lowercase a-f
2000-11-19 20:58:58 +00:00
Brian Wellington
bea3d187ee
fixed another assertion failure.
2000-11-18 21:15:23 +00:00
Brian Wellington
cffe50abf6
Lots of copyright updates
2000-11-18 03:01:17 +00:00
Andreas Gustafsson
fcf28b759c
Don't log ENFILE and EMFILE as unexpected errors
2000-11-18 02:56:48 +00:00
Brian Wellington
6a9f7f6e51
fix paren handling in quoted strings again.
2000-11-18 01:02:39 +00:00
Brian Wellington
66a39bda9c
parentheses in strings were handled incorrectly.
2000-11-18 00:54:19 +00:00
Andreas Gustafsson
0d8fe6131e
treat EHOSTDOWN (if defined) the same as EHOSTUNREACH rather than as an
...
unexpected error [RT #215 ]
2000-11-17 21:04:12 +00:00
Brian Wellington
729916054d
if a string token was immediately followed by an EOF token, ungetting the
...
string token would fail.
2000-11-17 00:34:37 +00:00
Brian Wellington
308785a470
If a token is ungotten, the source is no longer at EOF.
2000-11-16 03:44:41 +00:00
Brian Wellington
09ce346fd8
ungetting eof tokens could trigger an assertion.
2000-11-16 03:03:16 +00:00
David Lawrence
78e5d07050
comment why <sys/time.h> is needed
2000-11-15 22:41:56 +00:00
Mark Andrews
edc9f47a1d
add #include <sys/time.h>
2000-11-15 03:58:53 +00:00
David Lawrence
21ec512685
some systems do not implement all of the resources of
...
the isc_resource_t enum, so the API was changed to return
ISC_R_NOTIMPLEMENTED in such cases.
2000-11-15 02:11:50 +00:00
Andreas Gustafsson
4b7018f4cc
illegal token after #endif
2000-11-15 01:31:45 +00:00
Brian Wellington
b8d6376e1b
the ungettoken changes also broke multiline records.
2000-11-15 00:42:53 +00:00
David Lawrence
7ff4d6ebca
compile unix/resource.c
2000-11-14 23:43:36 +00:00
David Lawrence
3fdfcc7977
use symbolic constant for formatting 64 bit ints
2000-11-14 23:42:29 +00:00
David Lawrence
1097943242
would have helped if the MIN/MAX for all of the signed integers were not
...
reversed.
2000-11-14 23:41:46 +00:00
David Lawrence
6c7b702df1
symbolic constant for the format string of a 64 bit long
2000-11-14 23:40:31 +00:00
David Lawrence
d653744935
isc_resource_t, isc_resourcevalue_t
2000-11-14 23:39:34 +00:00
David Lawrence
015c481e8b
new functions, isc_resource_getlimit and isc_resource_setlimit, via new
...
header file, <isc/resource.h>
2000-11-14 23:39:15 +00:00
David Lawrence
b59aac4816
new functions, isc_resource_getlimit and isc_resource_setlimit
2000-11-14 23:38:10 +00:00
David Lawrence
1ab0c9558f
map EPERM to ISC_R_NOPERM
2000-11-14 23:37:26 +00:00
David Lawrence
91676aba50
provide errno by way of errno.h
2000-11-14 23:37:10 +00:00
David Lawrence
be9a4bd82a
symbolic constants for integral maximums and signed integral minimums
2000-11-14 23:35:43 +00:00
Brian Wellington
1f2f5445ec
remove an uninitialized variable warning
2000-11-13 21:29:27 +00:00
Mark Andrews
733e928f71
552. [bug] We were not correctly detecting the end of all c-style
...
comments. [RT #455 ]
2000-11-13 04:09:40 +00:00
Brian Wellington
66f7feef55
the ungettoken changes broken line number reporting
2000-11-10 01:41:00 +00:00
Brian Wellington
066faef119
548. [func] The lexer now ungets tokens more correctly.
2000-11-09 02:23:40 +00:00
Brian Wellington
60a7fe5da1
remove uninitialized variable.
2000-11-08 18:24:37 +00:00
Brian Wellington
add4043305
The identical gettoken() routines in rdata.c, hex.c, and base64.c have
...
been replaced with isc_lex_getmastertoken().
2000-11-08 01:56:15 +00:00
Brian Wellington
19e0a2c2d1
Add isc_hex_* routines, which handle conversion to and from hex strings.
2000-11-07 20:58:08 +00:00
Andreas Gustafsson
b28d2a3d7b
the established alternate spelling of 'template' is
...
'templet', not 'templat'
2000-10-20 22:09:01 +00:00
Mark Andrews
4b6d5b2312
528. [func] The ISC_LIST_XXXX macros now perform sanity checks
...
on their arguements. ISC_LIST_XXXXUNSAFE can be use
to skip the checks however use with caution.
2000-10-20 13:35:58 +00:00
Mark Andrews
5e589b5356
Uninitalised link fixes, batch 1.
2000-10-20 02:21:58 +00:00
Mark Andrews
643f42815f
Modified list macros w/ checking currently disabled.
2000-10-20 01:57:57 +00:00