Andrey A. Chernov d9e3eff33a 1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):
"[EINVAL] ... The resulting file-position indicator would be set to a
negative value."

Moreover, in real life negative seek in stdio cause EOF indicator cleared
and not set again forever even if EOF returned.

2) Catch few possible off_t overflows.

Reviewed by:	arch discussion
2001-08-15 02:07:47 +00:00
..
2001-08-07 15:48:51 +00:00
2001-07-09 23:12:23 +00:00
2001-07-15 07:53:42 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-07-15 07:53:42 +00:00
1999-08-28 00:22:10 +00:00
2001-07-15 07:53:42 +00:00
2001-03-27 17:27:19 +00:00
2001-08-07 15:48:51 +00:00
2001-08-09 06:10:46 +00:00
2001-07-15 07:53:42 +00:00
2001-08-11 12:37:55 +00:00
2001-03-27 17:27:19 +00:00
2001-07-15 07:53:42 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
1999-08-28 00:22:10 +00:00
2001-07-15 07:53:42 +00:00