Commit Graph

64012 Commits

Author SHA1 Message Date
Andrey A. Chernov
347a15b2ab When __SOPT is cleared, clear __SOFF too.
NOTE: original stdio bug.
2001-09-03 02:35:10 +00:00
Andrey A. Chernov
5e00917d95 Re-arrange my funopen(3) fix to minimize differences with original stdio code,
no functional changes.

Add fp->_offset optimization in _SAPP+_SOPT case
2001-09-03 02:24:37 +00:00
Orion Hodson
bb76bd1180 Return updated blocksize from setblocksize function. 2001-09-03 02:14:55 +00:00
Orion Hodson
61608985c7 Fix return value of cs4281chan_setblocksize. 2001-09-03 01:05:04 +00:00
Orion Hodson
256e749243 Fix return value of svchan_setblocksize.
Expand probing range.
2001-09-03 01:03:50 +00:00
Orion Hodson
167d1bcd19 Fix return value of setblocksize functions. Recording is interspersed
with silent intervals otherwise.
2001-09-03 00:45:00 +00:00
David E. O'Brien
de08586125 + Blah, there was nothing wrong in rev 1.1 talking about the i386/NOTES.
I should have diff'ed the header with the Alpha GENERIC.
+ fix style nit
+ turn on NO_MODULES for now.
2001-09-02 23:48:37 +00:00
David E. O'Brien
ee843c7fd1 Match the style of very other platform we have. 2001-09-02 23:37:45 +00:00
Robert Watson
1088a254de o Add sample syslogd_flags for "-ss" which causes syslogd not to bind
an inet socket.
2001-09-02 23:34:19 +00:00
Scott Long
61fea38293 Work around a bug where the driver's copy of the disklabel gets corrupted
and causes diskerr() to panic.
2001-09-02 23:16:40 +00:00
Scott Long
3361abb7a7 Restrict the range of linux ioctls we will accept. 2001-09-02 23:15:26 +00:00
Robert Watson
3652b4dc72 o Sync up prototypes for cap_size() and cap_copy_ext() with
sys/capability.h--this compiled fine on i386 where (int) and (ssize_t)
  are the same, but broke on Alpha where they differ.

Submitted by:		Mike Barcroft <mike@FreeBSD.org>
Obtained from:	TrustedBSD Project
2001-09-02 23:13:49 +00:00
Andrey A. Chernov
aeb7f4bac4 Internal seeks are overoptimized. They should remember fp->_offset only for
plain regular files, i.e. files with __SOPT flag set. Fix it, so ftell(stdout)
always returns the same as lseek(1, 0, 1) now.

NOTE: this bug was in original stdio code
2001-09-02 21:22:00 +00:00
Nick Hibma
ed1038315a Add quirk entry for FujiFilm camera.
Submitted by:		Guido van Rooij <guido@gvr.org>
2001-09-02 20:44:49 +00:00
David E. O'Brien
6874428a19 Use the native mount and nfs_prot headers.
Also generate nfs_prot_x.c in ANSI-C mode.
2001-09-02 20:37:36 +00:00
Julian Elischer
969d60014f add another prototype and a couple of stopgaps for the in_protosw variant. 2001-09-02 20:36:19 +00:00
David E. O'Brien
fce5abd394 TODO is no longer part of Amd, and we do not need, nor use clnt_sperrno.c. 2001-09-02 20:15:46 +00:00
David E. O'Brien
6bf7267c1a Teak -- we were being a little over agressive. 2001-09-02 20:15:13 +00:00
David E. O'Brien
a6ece77961 This commit was generated by cvs2svn to compensate for changes in r82819,
which included commits to RCS files with non-trunk default branches.
2001-09-02 20:14:08 +00:00
David E. O'Brien
fee4c7e3e7 Virgin import of AMD (am-utils) v6.0.7 2001-09-02 20:14:08 +00:00
Andrey A. Chernov
778d840e50 Fix bug in off_t overflow checking: if fp->_offset overflows, just remove
__SOFF flag (i.e. we don't have offset) instead of returning EOVERFLOW.
It allows again continious reading from non-stop stream.
2001-09-02 19:52:09 +00:00
David E. O'Brien
890bbd6bda Update for version 6.0.7. 2001-09-02 19:50:47 +00:00
David E. O'Brien
2411b5a2bd We can use the stock defintion of "MOUNT_NFS3" now. 2001-09-02 19:47:53 +00:00
David E. O'Brien
7fa5ad1d30 Reduce diff from vendor source. 2001-09-02 19:35:47 +00:00
David E. O'Brien
187b9bd766 Update for 6.0.7. 2001-09-02 19:32:45 +00:00
David E. O'Brien
937ee2af7c We are returning to the stock (6.0.7) file now.
+ The bufov vulnerability was fixed in the vendor sources.
+ The vendor sources are now POSIX [me harder] compliant.
2001-09-02 19:31:00 +00:00
Andrey A. Chernov
1633b4aa85 Remove MLINKS seek.2 to lseek.2, we don't have seek.2 syscall 2001-09-02 19:28:41 +00:00
David E. O'Brien
461b368fa4 We are returning to the stock (6.0.7) file now.
+ The bufov vulnerability was fixed in the vendor sources.
+ The vendor sources are now POSIX [me harder] compliant.
+ The db vs. dbm files issue was fixed in the vendor sources.
2001-09-02 19:28:19 +00:00
Andrey A. Chernov
bf351925f7 Typo seek(2) -> lseek(2) 2001-09-02 19:24:07 +00:00
David E. O'Brien
d113f55341 We are returning to the stock (6.0.7) file now.
The security issues were fixed in the vendor sources.
2001-09-02 19:14:18 +00:00
Andrey A. Chernov
924888f977 Move all stdio internal flags processing and setting out of __sread(),
__swrite() and __sseek() to higher level. According to funopen(3) they all
are just wrappers to something like standard read(2), write(2) and
lseek(2), i.e. must not touch stdio internals because they are replaceable
with any other functions knows nothing about stdio internals. See example
of funopen(3) usage in sendmail sources f.e.

NOTE: this is original stdio bug, not result of my range checkin added.
2001-09-02 19:10:10 +00:00
Jordan K. Hubbard
9c552a1fd7 Use sh to execute scripts and just check that the script is readable.
I guess I pooched the permissions on the scripts before committing them
since they're not executable and now it's too late to change (I think -
I suppose you could chmod the ,v files and it might inheirit but I don't
feel like asking the repomeisters to try that).

Noticed by:	Dirk Froemberg <dirk@freebsd.org>
2001-09-02 19:05:27 +00:00
David E. O'Brien
0b99cf978d Merge rev 1.2 (use our native headers for NFSv3), 1.9 (fs header movment)
into Amd 6.0.7.
2001-09-02 19:04:09 +00:00
David E. O'Brien
b5959ffd1f We are returning to the stock (6.0.7) file now.
+ The bufov vulnerability was fixed in the vendor sources.
+ The vendor sources are now POSIX [me harder] compliant.
2001-09-02 18:46:35 +00:00
David E. O'Brien
ff425a14f2 Merge our rev 1.2,3 (use or native files for NFSv3 support)
changes into Amd 6.0.7.
2001-09-02 18:39:17 +00:00
David E. O'Brien
d013412cfa We are returning to the stock (6.0.7) file now.
I don't recall why the rev 1.2 hack is needed.  It looks like Amd was
already using our local headers.  I no longer have a FreeBSD 2.x box to
test this on, and this will never be MFC'ed to RELENG_2_2.  So lets just
decrease the maintenance effort.
2001-09-02 18:26:32 +00:00
David E. O'Brien
c0d59ba0ab We are returning to the stock (6.0.7) file now.
+ The rev 1.4 addition was taken from a snapshot previous to 6.0.7, so
  it is included in 6.0.7.
+ The vendor sources are now POSIX [me harder] compliant.
2001-09-02 18:22:46 +00:00
David E. O'Brien
0186c009b0 We are returning to the stock (6.0.7) file now.
My "nfsv2" mount option hack was added to the vendor sources.
2001-09-02 18:20:22 +00:00
David E. O'Brien
acf76d74f1 We are returning to the stock (6.0.7) file now.
The vendor sources are now POSIX [me harder] compliant.
2001-09-02 18:17:08 +00:00
David E. O'Brien
31062d74c5 We are returning to the stock (6.0.7) file now.
The bufov vulnerability was fixed in the vendor sources.
2001-09-02 18:15:24 +00:00
David E. O'Brien
8cc613df48 Merge rev 1.7 (mount directory change) into Am-utils 6.0.7. 2001-09-02 18:13:17 +00:00
Sheldon Hearn
1cc9f0bb31 Extend the functionality offered by the -o option into a new option
-O, which limits the impact of the write-only restriction to guest
users.

*) The existing manual page's SYNOPSIS and option listing in the
   DESCRIPTION are already horribly disordered.  No attempt has been
   made to fix this.

*) The existing source's getopt() optstring and option handling switch
   are already horribly disordered.  No attempt has been made to fix
   this.

Discussed with: nik, -audit
2001-09-02 17:24:19 +00:00
David E. O'Brien
d39ff6a040 Virgin import of AMD (am-utils) v6.0.7 2001-09-02 17:19:13 +00:00
David E. O'Brien
1c39b362fb This commit was generated by cvs2svn to compensate for changes in r82794,
which included commits to RCS files with non-trunk default branches.
2001-09-02 17:19:13 +00:00
Andrey A. Chernov
af8c32621d File positions are off_t nowdays, not long, so:
fseek -> fseeko
    ftell -> ftello

    NOTE: fseek/ftell not works for >long offsets per POSIX:

    [EOVERFLOW] For fseek( ), the resulting file offset would be a value which
    cannot be represented correctly in an object of type long.

    [EOVERFLOW] For ftell ( ), the current file offset cannot be represented
    correctly in an object of type long.
2001-09-02 14:40:51 +00:00
Andrey A. Chernov
e4a7111409 long -> off_t
long -> time_t
%ld -> %qd
fseek -> fseeko

NOTE: that fseek not works for >long offsets per POSIX:

[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
2001-09-02 14:18:28 +00:00
Takeshi Shibagaki
5f5e1ff3b1 Always turned on 8bit access card support for the fe driver
both i386/pc98, so options FE_8BIT_SUPPORT was deleted.

Reviewed by: nyan
2001-09-02 13:05:00 +00:00
Peter Wemm
772121fd11 The !RESTARTABLE_PANICS code has some loose ends. 2001-09-02 12:24:38 +00:00
Peter Wemm
ef4181d98e For ia64, set the default elf brand to be FreeBSD. This is temporarily
necessary only for as long as we're using a linux toolchain.
2001-09-02 12:23:08 +00:00
Peter Wemm
02de199140 Sync with i386 / alpha. Whitespace unindent / style prep for kse. 2001-09-02 10:07:09 +00:00