summaryrefslogtreecommitdiffstats
path: root/src/core/open.c
Commit message (Collapse)AuthorAgeFilesLines
* [xfer] Always nullify interface while sending close() messageMichael Brown2009-07-061-5/+0Star
| | | | | | | | | | | | | | | Objects typically call xfer_close() as part of their response to a close() message. If the initiating object has already nullified the xfer interface then this isn't a problem, but it can lead to unexpected behaviour when the initiating object is aiming to reuse the connection and so does not nullify the interface. Fix by always temporarily nullifying the interface during xfer_close() (as was already being done by xfer_vreopen() in order to work around this specific problem). Reported-by: infernix <infernix@infernix.net> Tested-by: infernix <infernix@infernix.net>
* [legal] Add a selection of FILE_LICENCE declarationsMichael Brown2009-05-181-0/+2
| | | | | Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
* [xfer] Implement xfer_vreopen() to properly handle redirectionsMichael Brown2009-03-301-0/+28
| | | | | When handling a redirection event, we need to close the existing connection before opening the new connection.
* [tables] Redefine methods for accessing linker tablesMichael Brown2009-03-131-14/+2Star
| | | | | | | | | | | | | | | Intel's C compiler (icc) chokes on the zero-length arrays that we currently use as part of the mechanism for accessing linker table entries. Abstract away the zero-length arrays, to make a port to icc easier. Introduce macros such as for_each_table_entry() to simplify the common case of iterating over all entries in a linker table. Represent table names as #defined string constants rather than unquoted literals; this avoids visual confusion between table names and C variable or type names, and also allows us to force a compilation error in the event of incorrect table names.
* Added two lines of code that were completely missing!Michael Brown2007-07-251-2/+4
|
* Treat URIs opened via xfer_open() and friends as relative to theMichael Brown2007-06-131-5/+23
| | | | current working URI.
* Allow xfer_open() to take a struct uri as well as a URI string.Michael Brown2007-06-091-14/+28
|
* Make URI structures reference-counted.Michael Brown2007-05-281-3/+6
|
* Eliminate PF_INET; just use the AF_INET from the struct sockaddr instead.Michael Brown2007-05-261-13/+11Star
|
* Add local address to socket openers.Michael Brown2007-05-191-4/+9
|
* Prefix all the open()-family routines with xfer_, to disambiguate themMichael Brown2007-05-181-8/+8
| | | | from the normal POSIX-style open()
* Add seek()Michael Brown2007-04-291-4/+4
| | | | Dehyphenate "data-transfer".
* Preliminary support for opening data-transfer interfacesMichael Brown2007-04-281-0/+144