Brian Wellington
1dc5c713eb
removed unused variable
2000-10-19 01:10:24 +00:00
Mark Andrews
3030ea490c
If the rename failed in isc_file_renameunique() unlink the temporary file.
2000-10-07 06:55:01 +00:00
Mark Andrews
9282d220f4
New functions isc_file_template(), isc_file_renameunique().
...
isc_file_template() allows the caller to specify the prefix unlike
isc_file_mktemplate(). The later is now written using isc_file_template().
2000-10-03 05:45:39 +00:00
Andreas Gustafsson
b7e031d517
435. [bug] dns_zone_dump() overwrote existing zone files
...
rather than writing to a temporary file and
renaming. This could lead to empty or partial
zone files being left around in certain error
conditions involving the initial transfer of a
slave zone, interfering with subsequent server
startup. [RT #282 ]
2000-09-08 21:47:03 +00:00
Andreas Gustafsson
7ec4367f3d
434. [func] New function isc_file_isabsolute().
2000-09-08 18:37:28 +00:00
David Lawrence
40f53fa8d9
Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
...
own CVS tree will help minimize CVS conflicts. Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
David Lawrence
2298aec5a1
test for high bit being set in isc_file_settime needed to use an
...
unsigned long long constant to work correctly on platforms that have
a 64 bit timeval.tv_sec and 32 bit ints.
2000-06-26 21:33:57 +00:00
David Lawrence
9c3531d72a
add RCS id string
2000-06-22 22:00:42 +00:00
David Lawrence
826c281a05
Solaris 5.6 gives this warning about a left shift to set the high bit:
...
warning: integer overflow detected: op "<<"
unless the operand is unsigned/
2000-05-24 21:36:01 +00:00
David Lawrence
77685300d9
cast isc_time_seconds to long when assigning to a timeval.tv_sec, and explain
...
why this is an ok thing to do. shuts up the irix compiler.
2000-05-24 02:36:49 +00:00
David Lawrence
bc12a0c0d0
Ensure proper range of isc_time_seconds() assigning to timeval.tv_sec,
...
and cast isc_time_nanoseconds to shut up the IRIX compiler.
2000-05-18 17:12:14 +00:00
Brian Wellington
a823dfa663
sys/time.h needed for struct timeval
2000-05-16 21:05:03 +00:00
Mark Andrews
5273184ae1
Add isc_file_settime() set access and modification times.
2000-05-16 02:13:08 +00:00
David Lawrence
d8e34837cd
isc_file_{stdiofunc} -> isc_stdio_*
2000-05-11 16:14:05 +00:00
David Lawrence
0c73b546ec
Moved posix_result from file.c to errno2result.[ch], for use by multiple
...
source files. We may want to generalize this as part of the libisc API,
but with a better name.
2000-05-11 15:09:30 +00:00
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
David Lawrence
0c5a46afed
comment about why unistd.h is required
2000-05-08 21:10:35 +00:00
Michael Graff
ab7c671292
add <stdlib.h> for mkstemp on NetBSD
2000-05-08 20:05:27 +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
6b7257f756
include config.h
2000-04-28 02:08:20 +00:00
Bob Halley
364a82f7c2
include isc/util.h
2000-04-28 01:12:23 +00:00
David Lawrence
a890fbefa3
C++ reserves the word "template"; use "templet" as the parameter to
...
isc_file_openunique
2000-04-26 00:45:24 +00:00
David Lawrence
2c34cafc1c
include <isc/time.h>
2000-04-25 22:04:26 +00:00
David Lawrence
8b7304a34c
73. [func] New "file" API in libisc, including new function
...
isc_file_getmodtime, isc_mktemplate renamed to
isc_file_mktemplate and isc_ufile renamed to
isc_file_openunique. By no means an exhaustive API,
it is just what's needed for now.
2000-04-24 21:36:10 +00:00