diff options
| author | Toomas Soome <tsoome@me.com> | 2017-06-29 10:23:51 +0300 |
|---|---|---|
| committer | Robert Mustacchi <rm@joyent.com> | 2017-06-29 20:36:50 +0000 |
| commit | 1f2db76761b7bc2a0aa953a41cb1585a54b35666 (patch) | |
| tree | 283d6a415e198a6cfd133b909c80a96cba4a5e89 | |
| parent | 8808b6ca868080736fca7df57b963793e6024266 (diff) | |
| download | illumos-joyent-1f2db76761b7bc2a0aa953a41cb1585a54b35666.tar.gz | |
8440 loader: Don't bother to set target for SEEK_END
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Reviewed by: Dillon Amburgey <dillona@dillona.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Approved by: Robert Mustacchi <rm@joyent.com>
| -rw-r--r-- | usr/src/boot/lib/libstand/bzipfs.c | 3 | ||||
| -rw-r--r-- | usr/src/boot/lib/libstand/gzipfs.c | 3 | ||||
| -rw-r--r-- | usr/src/boot/lib/libstand/lseek.c | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/usr/src/boot/lib/libstand/bzipfs.c b/usr/src/boot/lib/libstand/bzipfs.c index b0176080da..d99014ade7 100644 --- a/usr/src/boot/lib/libstand/bzipfs.c +++ b/usr/src/boot/lib/libstand/bzipfs.c @@ -26,7 +26,6 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); #ifndef REGRESSION #include "stand.h" @@ -320,8 +319,6 @@ bzf_seek(struct open_file *f, off_t offset, int where) case SEEK_CUR: target = offset + bzf->bzf_bzstream.total_out_lo32; break; - case SEEK_END: - target = -1; default: errno = EINVAL; return(-1); diff --git a/usr/src/boot/lib/libstand/gzipfs.c b/usr/src/boot/lib/libstand/gzipfs.c index 1db7ad095b..6cc752bf0e 100644 --- a/usr/src/boot/lib/libstand/gzipfs.c +++ b/usr/src/boot/lib/libstand/gzipfs.c @@ -25,7 +25,6 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); #include "stand.h" @@ -301,8 +300,6 @@ zf_seek(struct open_file *f, off_t offset, int where) case SEEK_CUR: target = offset + zf->zf_zstream.total_out; break; - case SEEK_END: - target = -1; default: errno = EINVAL; return(-1); diff --git a/usr/src/boot/lib/libstand/lseek.c b/usr/src/boot/lib/libstand/lseek.c index f656d59865..0f7ec327b3 100644 --- a/usr/src/boot/lib/libstand/lseek.c +++ b/usr/src/boot/lib/libstand/lseek.c @@ -61,8 +61,6 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include "stand.h" off_t @@ -87,7 +85,6 @@ lseek(int fd, off_t offset, int where) case SEEK_CUR: f->f_offset += offset; break; - case SEEK_END: default: errno = EOFFSET; return (-1); |
