aboutsummaryrefslogtreecommitdiffstats
path: root/fileio.c
Commit message (Collapse)AuthorAgeFilesLines
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* Use new0() function instead of new() followed by memset().Wayne Davison2007-09-031-2/+1
|
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* - Do less seeking when writing a sparse file.Wayne Davison2007-05-261-21/+29
| | | | | - Don't rewrite the last byte of a file in sparse mode when the file didn't end with a null char.
* Further modifications to the copyright comment section.Wayne Davison2007-02-041-4/+3
|
* Only sparse_files > 0 now indicates option is enabled.Wayne Davison2006-12-281-1/+1
|
* Use an explicit cast when a value gets stored in a smaller var.Wayne Davison2006-11-211-2/+2
|
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-20/+20
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Fixed the value of map->p_fd_offset when a read() fails or isWayne Davison2006-04-081-1/+1
| | | | abbreviated.
* If we get less data than expected from a read() in map_ptr(), weWayne Davison2005-09-211-22/+27
| | | | need to try to keep reading to see if we get an error or more data.
* Improved do_lseek()'s failure message.Wayne Davison2005-02-271-2/+5
|
* - Changed the map_size parameter to map_file() to be an int32 namedWayne Davison2005-01-171-18/+20
| | | | | | | | | | "read_size". - Changed some int vars in map_ptr() needed to be int32 vars. - All callers expect map_ptr() to return back the full "len" bytes, so we never shorten this value, even near EOF--the read will just get zero-padded, as needed. - Die with an error if someone calls map_ptr() with a len < 0, or if read_size is computed as a value < 0.
* - Use an int32 for the each block-size variable.Wayne Davison2005-01-011-12/+8
| | | | | - Renamed the local block_size arg to blk_size (to avoid confusion with the global block_size variable).
* - Changed the calling syntax for map_file() so that it takes bothWayne Davison2004-08-031-12/+11
| | | | | | a (possibly approximate) window size and an optional block size (which is used to round-up the window size if it is non-zero). - Don't set window_start behind the supplied offset in map_ptr().
* - Added a new block_size arg to map_file(). Use it to set theWayne Davison2004-07-201-8/+8
| | | | | new def_window_size member variable. - Got rid of max_map_size global (we use def_window_size now).
* Added a max_map_size variable, initialized to MAX_MAP_SIZE.Wayne Davison2004-07-161-1/+3
|
* Make wf_writeBufSize based on a multiple of WRITE_SIZE insteadWayne Davison2004-07-161-5/+6
| | | | of the unrelated MAX_MAP_SIZE.
* Use memset() to initialize a new map_struct.Wayne Davison2004-05-111-10/+5
|
* Some whitespace tweaks.Wayne Davison2004-01-051-15/+15
|
* Improved flush_write_file().Wayne Davison2004-01-021-8/+17
|
* Applying my updated version of Craig Barratt's buffered I/O patch.Wayne Davison2004-01-021-1/+31
|
* Merged in the security fixes from 2.5.7.Wayne Davison2003-12-061-2/+2
|
* Detect and report when open or opendir succeed but read andJ.W. Schultz2003-09-161-2/+12
| | | | | | readdir fail caused by network filesystems issues and truncated files. Thanks to David Norwood and Michael Brown
* Changed write file to cope with partial writes by loopingJ.W. Schultz2003-05-221-8/+11
| | | | | until complete or errno is set. (John Van Essen)
* More signedness fixes; should be harmless.Martin Pool2002-01-251-4/+6
|
* Signedness security patch from Sebastian Krahmer <krahmer@suse.de> --Martin Pool2002-01-231-2/+2
| | | | | | | in some cases we were not sufficiently careful about reading integers from the network. Also, make sure log messages are always nul-terminated.
* no longer use mmap() in rsync because of the risk of a SIGBUS whenAndrew Tridgell1998-12-301-89/+84
| | | | | | | another program (such as a mailer) truncates a file. To offset the speed loss I have rewritten the map_ptr() code to make much better use of read().
* patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to addAndrew Tridgell1998-11-031-2/+2
| | | | different exit codes for different conditions.
* heaps of cleanup in the io code.Andrew Tridgell1998-05-271-0/+218
we no longer use non-blocking IO, instead it uses select a lot more, being careful to always allow for reading whenever a valid read fd is available and chcking timeouts. also split the file io calls into fileio.c