2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

4398 Commits

Author SHA1 Message Date
Andreas Gustafsson
996f4a8bc3 164. [cleanup] Added functions isc_file_fopen(), isc_file_fclose(),
isc_file_fseek(), isc_file_fread(), isc_file_fwrite(),
                        isc_file_fflush(), isc_file_ffsync(), isc_file_remove()
                        to encapsulate nonportable usage of errno and fflush().
2000-05-09 23:19:32 +00:00
Andreas Gustafsson
6a13d6f3c6 Added result codes ISC_R_FILENOTFOUND and ISC_R_FILEEXISTS 2000-05-09 23:10:34 +00:00
David Lawrence
47b26abe77 ensure proper range for argument to ctype functions 2000-05-09 22:22:25 +00:00
David Lawrence
f855bad4a1 fail if "ar" is not found, since the build will fail without it 2000-05-09 18:34:00 +00:00
Michael Sawyer
cefd68008f Host was broken in last commit; fixed here.
Add nslookup.c; non-functional and not compiled by make all.
2000-05-09 18:05:13 +00:00
David Lawrence
e893dce912 fail if "ar" is not found, since the build will fail without it 2000-05-09 17:07:30 +00:00
James Brister
c0fcd6b98b Fixed prototype error in yyparse that only HPUX noticed. 2000-05-09 16:49:50 +00:00
David Lawrence
335b5eb5d0 compile with -fullwarn on irix. 2000-05-09 16:11:37 +00:00
David Lawrence
8a47ea1dad a few lingering (mem|str)(cmp|cpy|len) missing prototypes 2000-05-09 15:02:20 +00:00
David Lawrence
d03ee55286 don't try to build getnet.o, since getnet.c no longer exists 2000-05-09 15:01:15 +00:00
David Lawrence
fc024be774 argument to tolower() cast to unsigned char 2000-05-09 12:07:32 +00:00
Mark Andrews
8b61d20120 convert TRACE -> logging: ISC_LOG_DEBUG(3) 2000-05-09 05:12:49 +00:00
Mark Andrews
17d0495c33 160. [cleanup] getnet*() are not going to be implemented at this
stage.
2000-05-09 02:21:58 +00:00
David Lawrence
5daef09d45 use EXT_CFLAGS to pass -Wno-builtin to gcc, allowing missing prototypes for
functions that have builtins to be properly noticed.
2000-05-09 01:54:35 +00:00
David Lawrence
9752cb7aa6 Provide a mechanism for passing in C flags at make's run-time:
user can define EXT_CFLAGS on either the command line or in the environment.
2000-05-09 01:49:40 +00:00
David Lawrence
681bd61239 isc/{unix,win32}/include/isc/ipv6.h moved to isc/include/isc/ipv6.h 2000-05-09 00:55:59 +00:00
David Lawrence
1601abb30a ISC_NET_(HAVESALEN|NEEDPORTT) -> ISC_PLATFORM_$1 2000-05-09 00:51:33 +00:00
David Lawrence
1a36eb1209 Silence HP/UX warnings:
cc: "mem.c", line 173: warning 714: Function "malloc_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 180: warning 714: Function "malloc_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 188: warning 714: Function "free_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 194: warning 714: Function "free_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 205: warning 714: Function "malloc_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 212: warning 714: Function "malloc_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 222: warning 714: Function "realloc_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 228: warning 714: Function "realloc_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 236: warning 714: Function "free_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 242: warning 714: Function "free_debug_func" called with no prototype or definition in scope.
cc: "mem.c", line 258: warning 714: Function "set_debug_options_func" called with no prototype or definition in scope.
cc: "mem.c", line 264: warning 714: Function "get_debug_options_func" called with no prototype or definition in scope.
2000-05-08 23:58:23 +00:00
David Lawrence
f5add515a3 Quiet HP/UX warnings:
cc: "stack.c", line 231: warning 714: Function called with no prototype or definition in scope.
cc: "stack.c", line 275: warning 714: Function "func" called with no prototype or definition in scope.
2000-05-08 23:53:48 +00:00
David Lawrence
2a8fc4e9f7 Quiet HP/UX warnings:
cc: "lhash.c", line 294: warning 714: Function "func" called with no prototype or definition in scope.
cc: "lhash.c", line 401: warning 714: Function called with no prototype or definition in scope.
cc: "lhash.c", line 422: warning 714: Function called with no prototype or definition in scope.
2000-05-08 23:50:37 +00:00
David Lawrence
acbec87f20 Quiet HP/UX warning:
cc: "algchoic.h", line 74: warning 617: Redeclaration of tag "B_AlgorithmInfoType" ignored.
cc: "algchoic.h", line 74: warning 617: Redeclaration of tag "B_AlgorithmInfoType" ignored.

by removing:

struct B_AlgorithmInfoType;

because balgmeth.h already defines that struct tag.
(So does balg.h, but that isn't causing warnings.)
2000-05-08 23:41:59 +00:00
David Lawrence
8b9ad57c12 Comment about unavoidable HP/UX compiler warning:
warning 541: Integer overflow during conversion.
when their own SIO* macros are used in ioctl calls.
2000-05-08 23:36:19 +00:00
Michael Sawyer
f17b62a64b Added +bufsize (EDNS0) option to dig
Added 1.2.3.4-> 4.3.2.1.in-addr.arpa translation to host
Added +defname, +aaonly, +cmd, +nostats, +qr flags to dig
Reviewed (and changed) result codes of dig.
2000-05-08 22:51:08 +00:00
David Lawrence
0c5a46afed comment about why unistd.h is required 2000-05-08 21:10:35 +00:00
James Brister
4c5651ee04 Message for config file redefinition change. 2000-05-08 20:31:55 +00:00
James Brister
7730b2c1db Redefining config file items is now an error.
Error messages changed to 'cannot redefine xxx'
2000-05-08 20:31:13 +00:00
David Lawrence
5d49890aca isc/net.h required for ntohl on some platforms 2000-05-08 20:18:35 +00:00
David Lawrence
f675434978 return rather than exit from main() to shut up HP/UX 2000-05-08 20:12:46 +00:00
David Lawrence
8e591e2046 "do { ... } while (1)" to shut up HP/UX 2000-05-08 20:07:58 +00:00
David Lawrence
edf7c005be return(1) rather than exit(1) from main() to shut up HP/UX 2000-05-08 20:06:05 +00:00
Michael Graff
ab7c671292 add <stdlib.h> for mkstemp on NetBSD 2000-05-08 20:05:27 +00:00
David Lawrence
8764af86f7 /*
* Compilers that use an older prototype for recvfrom() will
	 * warn about the type of the sixth parameter, fromlen.  It
	 * is now standardized as unsigned, specifically as socklen_t.
	 */

(... but the code itself still uses unsigned int.  This comment was added
because HP/UX is complaining now even as other compilers stopped complaining
when it was changed from signed int to unsigned int.)
2000-05-08 19:53:50 +00:00
James Brister
131c2e2e9d No longer validate category names upon config file parsing. 2000-05-08 19:52:03 +00:00
David Lawrence
7bb0f11636 stdlib.h needed on HP/UX for abs() 2000-05-08 19:30:10 +00:00
David Lawrence
6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +00:00
David Lawrence
64574939c4 Removed useless third parameter to MPINIT macro which was always true,
because it was causing HP/UX to barf up eight lines of:

cc: "adb.c", line 2219: warning 509: Condition always evaluates to true: If clause will always be executed.
2000-05-08 18:47:02 +00:00
James Brister
e06abf2270 Update for unistd.h and conflog.c changes. 2000-05-08 18:45:12 +00:00
James Brister
a466582ff0 Copy functions were not assigning result to output parameter. Now they are. 2000-05-08 18:42:38 +00:00
James Brister
3cb5571edf Include unistd.h so FreeBSD doesn't complain about getopt() prototype
missing.
2000-05-08 18:37:58 +00:00
David Lawrence
454e318ef6 include string.h for memcpy; gcc fails to warn about its absence, but hp doesn't 2000-05-08 18:37:22 +00:00
David Lawrence
28beeb7067 fromlen changed from int to unsigned int 2000-05-08 17:57:01 +00:00
David Lawrence
5990bedbac changed authlen from signed int to unsigned int in omapi_message_send 2000-05-08 16:32:23 +00:00
David Lawrence
6e3a8256ee need <sys/time.h> on some platforms 2000-05-08 16:30:49 +00:00
David Lawrence
8abddcd3f2 rdata.c needs to include string.h before memcpy is used.
since rdata.c is including string.h, the individual rdata files do not need to.
2000-05-08 16:12:30 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
David Lawrence
595babf627 Many changes that I'm sure probably no one cares about enough to
discuss, since I think I'm the only one who has ever run this
or probably ever will.

Still far from perfect, of course.  It's just an auxiliary tool that
whose output needs human interpretation.

But basically ...
   see whether a public header will compile stand-alone.
   recommend ISC_MAGIC_VALID where appropriate.
   use "print" consistent throughout, instead of print/warn.
   ignore a couple of special files.
   fixed some conditions that caused premature termination of checking
2000-05-08 14:15:44 +00:00
David Lawrence
d5b840e737 check redundant/useless header file inclusion in source modules 2000-05-08 14:08:46 +00:00
David Lawrence
41da7fdc55 "no references to to memory" -> "no references to memory"
Wrapped a line that was exactly 80 columns.
CVe: ----------------------------------------------------------------------
2000-05-08 13:58:47 +00:00
David Lawrence
81e92fbafa Some files are co-copyright with Network Associates 2000-05-08 13:52:42 +00:00
David Lawrence
0e5b8234ba don't build sdig by default, now that a full-featured dig is available 2000-05-08 13:35:02 +00:00