path: root/lib/libfile.c
Commit message (Expand)AuthorAgeFilesLines
* treewide: replace errno_str() with %m printf format specifierAhmad Fatoum2022-10-111-3/+3
* read_file: Pass NULL for the size parameter if the return value is not usedAlexander Shiyan2022-06-101-2/+1
* libfile: implement new pread_fullAhmad Fatoum2022-03-281-0/+25
* libfile: null-terminate read_file of wchar_t bufferAhmad Fatoum2021-12-131-1/+2
* libfile: Add copy_fd()Sascha Hauer2021-06-231-0/+23
* copy_file: fix progress bar for files larger than 2GAhmad Fatoum2021-02-191-1/+1
* libfile: copy_file: Fix ftruncate called on device filesSascha Hauer2020-08-181-5/+5
* libfile: copy_file: explicitly truncate to final sizeSascha Hauer2020-07-051-5/+11
* libfile: copy_file: Fix calling discard_rangeSascha Hauer2020-07-051-5/+6
* treewide: remove references to CREDITSUwe Kleine-König2020-04-271-3/+0
* copy_file: call discard_range on destination fileSascha Hauer2020-02-141-0/+2
* libfile: copy_file: fix error handlingRobert Karszniewicz2019-10-231-5/+12
* libfile: Document that read_file() returns a terminated bufferSascha Hauer2019-10-141-1/+3
* libfile: fix typosMichael Tretter2019-09-061-2/+2
* libfile: have write_full return a descriptive error codeAhmad Fatoum2019-08-301-2/+3
* libfile: Do not return 0 from write_full()Andrey Smirnov2019-05-281-2/+10
* libfile: Simplify read_full()Andrey Smirnov2019-05-281-4/+2
* Merge branch 'for-next/misc'Sascha Hauer2019-04-091-12/+6
| * libfile: Make use of write_full() in copy_file()Andrey Smirnov2019-03-131-12/+6
* | libfile: Make failure path of open_and_lseek() consistentAndrey Smirnov2019-03-111-14/+12
* libfile: Fix incorrect lseek check in open_and_lseek()Andrey Smirnov2019-02-061-2/+1
* libfile: Error out if out of memory in read_file_2()Andrey Smirnov2018-10-161-1/+5
* libfile: Introduce pwrite_full()Andrey Smirnov2018-08-311-0/+24
* libfile: open_and_lseek: enlarge small files enough to make lseek possibleUwe Kleine-König2018-08-101-0/+18
* libfile: open_and_lseek: don't imply O_RDONLYUwe Kleine-König2018-08-101-1/+1
* libfile: implement new helper write_file_flash()Uwe Kleine-König2018-06-081-0/+33
* Merge branch 'for-next/tftp-workaround'Sascha Hauer2018-02-081-0/+55
| * libfile: implement a function to cache a fileSascha Hauer2018-01-251-1/+29
| * libfile: implement make_tempSascha Hauer2018-01-251-0/+27
* | libfile: Make write_file buffer constSascha Hauer2018-01-311-1/+1
* lib: libfile: Fix copying files to a non existing destinationTeresa Remmet2017-01-171-4/+5
* libfile: copy_file: Only open regular files with O_TRUNCTeresa Remmet2017-01-111-6/+16
* libfile: Change write_full to be have const bufMarkus Pargmann2016-07-081-1/+1
* string: Fix (v)asprintf prototypesSascha Hauer2016-04-151-3/+3
* libfile: move open_and_lseek() to libfileSascha Hauer2016-04-151-0/+32
* lib: libfile: Do not ignore errors in close()Andrey Smirnov2015-08-191-3/+3
* read_file_2(): drop unnecessary 'else'Alexander Smirnov2015-07-021-2/+2
* libfile: Add copy_recursiveSascha Hauer2014-11-061-0/+40
* libfile: add compare_file functionSascha Hauer2014-10-091-0/+71
* read_file_2: Fix return valueTeresa Gámez2014-09-251-1/+3
* read_file: introduce read_file_2Sascha Hauer2014-08-071-14/+57
* move file helper functions to separate fileSascha Hauer2014-08-071-0/+288