]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[xfer] Generalise metadata "whence" field to "flags" field
authorMichael Brown <mcb30@ipxe.org>
Fri, 2 Jul 2010 11:12:16 +0000 (12:12 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 3 Sep 2010 20:21:14 +0000 (21:21 +0100)
commit364b92521ad19051083db605de3b8a058374e096
tree14d3d80d6f7563fc12be91826e03534818ce0cd2
parentb0eacbd42166982e675e3467393a2e63fdb99111
[xfer] Generalise metadata "whence" field to "flags" field

iPXE has never supported SEEK_END; the usage of "whence" offers only
the options of SEEK_SET and SEEK_CUR and so is effectively a boolean
flag.  Further flags will be required to support additional metadata
required by the Fibre Channel network model, so repurpose the "whence"
field as a generic "flags" field.

xfer_seek() has always been used with SEEK_SET, so remove the "whence"
field altogether from its argument list.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/interface/pxe/pxe_tftp.c
src/core/downloader.c
src/core/posix_io.c
src/core/xfer.c
src/include/ipxe/xfer.h
src/net/tcp/http.c
src/net/udp/slam.c
src/net/udp/tftp.c