summaryrefslogtreecommitdiff
path: root/content/fetchers/file.c
Commit message (Collapse)AuthorAgeFilesLines
* move the file fetcher sources into a single directoryVincent Sanders2020-07-031-844/+0
|
* fetchers: Rework the about, data, file, and resource fetcher poll loopDaniel Silverstone2020-02-241-30/+12
| | | | | | | This simplifies the poll loops a little more and makes me less worried that some other corner case will bite us in the future. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* fetchers: Apply cleaner ring handling mechanic to other fetchersDaniel Silverstone2020-02-241-1/+16
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* File fetcher: Optimise HTTP header generation.Michael Drake2019-11-101-6/+8
|
* File fetcher: Avoid atoi for If-None-Match value parse.Michael Drake2019-11-091-12/+21
| | | | The file fetcher emits FETCH_NOTMODIFIED if the file is unchanged.
* create netsurf inttypes header to have portable integer formatting macrosVincent Sanders2017-01-211-0/+1
|
* document file fetcher being locale dependantVincent Sanders2016-09-101-1/+5
|
* move fetch header into public APIVincent Sanders2016-05-301-1/+1
|
* need strings.h for strncasecmp on freebsdVincent Sanders2016-04-211-0/+1
|
* Split utils header into string functions and everything elseVincent Sanders2016-04-211-10/+2
| | | | | split out the string handling API from the rest of the utils header and fix up all the fallout.
* move dir_sort_alpha function from generic utils to one specific place it is usedVincent Sanders2016-04-191-0/+43
|
* Reduce unecessary use of directory entry headersVincent Sanders2016-04-191-1/+1
| | | | | | | The config header was causing many source files to unecessarily include the dirent headers causing extra dependancies. This has been fixed by providing a utility dirent header that provides a common API across all platforms while removing the unecessary dirent header usage.
* Fix size_t printf formattingVincent Sanders2016-03-171-7/+14
| | | | | | | The printf formatting for size_t is set in c99 as %zu but in windows it is %Iu this is solved by adding and inttypes style PRI macro for size_t This also uses this macro everywhere size_t is formatted.
* Improve Doxygen documentationVincent Sanders2014-11-081-2/+7
|
* Update the core to use the split operations table headersVincent Sanders2014-10-161-2/+7
| | | | Second in the series to decouple the core API usage from the frontends.
* split version info into its own header and remove unnecessary nesurf.h includesVincent Sanders2014-10-131-1/+0
| | | | | | | | | The netsurf.h header should *only* contain the registration, core initialisation and finalisation methods. Version information is best placed in its own header. Also remove any unneeded inclusion of this header limiting it to solely the places the relevant API is required.
* clean up the fetcher factory and improve its APIVincent Sanders2014-06-191-11/+14
|
* rework path to url mapping functions to convert from and to nsurlVincent Sanders2014-05-261-9/+11
|
* remove unecessary utils/url.h includesVincent Sanders2014-05-091-1/+0
|
* add file operations table and make all frontends use it.Vincent Sanders2014-05-071-80/+106
| | | | | | | | | | | | | This rationalises the path construction and basename file operations. The default implementation is POSIX which works for all frontends except windows, riscos and amiga which have differeing path separators and rules. These implementations are significantly more robust than the previous nine implementations and also do not use unsafe strncpy or buffers with arbitrary length limits. These implementations also carry full documentation comments.
* move path_to_url and url_to_path to fetch operation tableVincent Sanders2014-01-251-2/+2
|
* Use corestring ref.Michael Drake2014-01-241-6/+2
|
* create table for fetcher operations and move all operations into itVincent Sanders2014-01-231-4/+4
|
* move filename_from_path and path_add_part into gui operation tablesVincent Sanders2014-01-161-1/+2
|
* Sort non zero-padded numerical filename parts correctly.Michael Drake2013-11-141-1/+1
|
* Can just use scandir now.Michael Drake2013-11-141-17/+1
|
* Marginally cleaner handling of scandir absence.Michael Drake2013-11-111-14/+12
|
* Dirty special casing of Windows, to handle mingw dirent.h's lack of scandir ↵Michael Drake2013-11-111-2/+20
| | | | and alphasort.
* Sort directory contents.Michael Drake2013-11-101-6/+14
|
* move options includeVincent Sanders2013-05-281-1/+1
|
* Downgrade TLS version support if it turns out the server can't cope with ↵John-Mark Bell2013-01-041-0/+1
| | | | TLSv1.1.
* Use nsurl_parent.Michael Drake2012-10-061-9/+10
|
* Avoid trying to mmap zero-length files.John-Mark Bell2012-09-191-11/+12
| | | | Remove buf size limit in mmap case: prevented processing entire file.
* alter file fetcher to use mmap where availableVincent Sanders2012-08-131-19/+100
|
* fix windows build format specifiersVincent Sanders2012-08-121-2/+2
| | | | add install target for windows - creates installer rather than actually installing
* return;John Mark Bell2011-11-271-0/+6
| | | | | | Fix bug #3442642: allow scheme-specific fetchers to have a say in whether an URL can be fetched. svn path=/trunk/netsurf/; revision=13182
* Clean up fetch callback API. Inject some long-needed type safety.John Mark Bell2011-11-081-46/+54
| | | | svn path=/trunk/netsurf/; revision=13137
* Convert fetchers to nsurl.Michael Drake2011-09-291-13/+8
| | | | svn path=/trunk/netsurf/; revision=12910
* Fetchers register with an lwc_string, rather than a string.Michael Drake2011-09-261-4/+13
| | | | svn path=/trunk/netsurf/; revision=12891
* Cope with zero-length filesJohn Mark Bell2011-09-081-3/+2
| | | | svn path=/trunk/netsurf/; revision=12777
* Fix backend fetcher poll loopsJohn Mark Bell2011-02-231-4/+5
| | | | svn path=/trunk/netsurf/; revision=11775
* add about: fetcher Vincent Sanders2011-02-151-0/+642
rename fetchers to be more sensible svn path=/trunk/netsurf/; revision=11692