summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Create a small library function, check_utility_compat(3), to determinewollman2002-10-286-34/+201
| | | | | | | | whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink. Update expr(1) to use this new interface.
* Fix a case in kern_rename() where a vn_finished_write() call wasiedowse2002-10-272-4/+4
| | | | | | | | missed. This bug has been present since the vn_start_write() and vn_finished_write() calls were first added in revision 1.159. When the case is triggered, any attempts to create snapshots on the filesystem will deadlock and also prevent further write activity on that filesystem.
* In ipi_send(), perform a mf instruction prior to initiating the IPI.marcel2002-10-271-1/+1
| | | | | | | | | This guarantees that loads and stores emitted before the fence are made visible before the IPI becomes pended. Remove the mf.a instruction after initiating the IPI. There's no guarantee that the IPI becomes pended prior to subsequent reads or writes. Even if there was a guarantee, it would mostly be without any benefit.
* Serial + Parallel + Ethernet + NFS section translationgioria2002-10-271-107/+125
|
* Take care of the case for the default speed (no -s option) also.njl2002-10-271-3/+2
|
* Implement the new 1003.1-2001 pathconf() keys, including the Advisorywollman2002-10-271-11/+47
| | | | | | | Information option. Other filesystem implementations should do something similar. With advice from: mckusick, phk
* Change the way support for asynchronous I/O is indicated to applicationswollman2002-10-277-4/+44
| | | | | | | | | | to conform to 1003.1-2001. Make it possible for applications to actually tell whether or not asynchronous I/O is supported. Since FreeBSD's aio implementation works on all descriptor types, don't call down into file or vnode ops when [f]pathconf() is asked about _PC_ASYNC_IO; this avoids the need for every file and vnode op to know about it.
* As promised, downgrade the #error into a #warning.wollman2002-10-271-1/+1
|
* Update limits and configuration parameters for 1003.1/TC1/D6.wollman2002-10-275-17/+76
| | | | | | | | | | | Implement new sysconf keys. Change the implenentation of _SC_ASYNCHRONOUS_IO in preparation for the next set of changes. Move some limits which had been in <sys/syslimits.h> to <limits.h> where they belong. They had only ever been in syslimits.h to provide for the kernel implementation of the CTL_USER MIB branch, which went away with newsysctl years ago. (There is a #error in <sys/syslimits.h> which I will downgrade in the next commit.)
* Add used #include <limits.h>.wollman2002-10-273-3/+6
|
* Do not include <sys/syslimits.h> directly; it is not intended for generalwollman2002-10-276-6/+8
| | | | consumption.
* Move speed units conversion to right before it is used. This catches thenjl2002-10-271-1/+2
| | | | case when the -s option is not used.
* Don't complain about not knowing the remote file size when working indes2002-10-271-1/+1
| | | | | | | quiet mode. PR: bin/37079 Submitted by: Nicolas Rachinsky <list@rachinsky.de>
* Don peril sensitive sun glasses and change the default system call vectorjake2002-10-272-4/+37
| | | | | | | | | | | | | | | | | for sparc64 from trap #9 to trap #65. This is one of the ABI "blessed" system call vectors and is different from any other system that we might want to emulate, making the emulation easier by reducing the number of code paths that need to be shared. Compatibility with old applications is provided with COMPAT_FREEBSD4. Add defines for a few special traps that we may need to implement for compatibility with 32bit applications, and add comments on which vectors are used for what in other systems, and which are available. Pass magic flags to trap() for deprecated or unimplemented system call vectors so they will deliver SIGSYS instead of SIGILL. This piggy backs nicely with the recent sigaction(2) system call number change, and provided the rules are followed for upgrading past it, this change should not be noticed.
* Slight amendment to rev 1.34: instead of considering any short read andes2002-10-271-6/+8
| | | | | | error, only report an error if no data was read at all (unless len was 0 to start with). Otherwise, the final read of practically any transfer will end in a fatal error.
* Don't roll our own clean target, the default onemux2002-10-271-5/+0
| | | | works better.
* Merged various changes from src/sbin/fdisk/fdisk.c revisions up to 1.66.nyan2002-10-271-758/+426
|
* Introduce _fetch_writev(), which is the conn_t version of writev(2). Indes2002-10-272-7/+38
| | | | | | | | | | | | | | the SSL case, it is no different from the old _fetch_write(), but in the non-SSL case it uses writev(2) to send the entire vector as a single packet (provided it can fit in one packet). Implement _fetch_write() and _fetch_putln() in terms of _fetch_writev(). This should improve performance in the non-SSL case (by reducing protocol overhead) and solve the problem where too-smart-for-their-own-good firewalls reject FTP packets that do not end in CRLF. PR: bin/44123 Submitted by: fenner
* Centrally manage enforcement of {reboot,swapon,sysctl} using therwatson2002-10-279-117/+81
| | | | | | | mac_enforce_system toggle, rather than several separate toggles. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Eliminate two cases of undefined behaviour: total in _fetch_write() wasdes2002-10-272-0/+2
| | | | | | | | not initialized before use, and _http_growbuf() did not return a value on success. Reported by: Peter Edwards <pmedwards@eircom.net> MFC after: 2 weeks
* Whitespace and indentation cleanup.des2002-10-271-12/+12
|
* Forgot to disable alarms after fetchXGet() in previous commit.des2002-10-271-0/+2
|
* Add an ETA timer that kicks in after 30 seconds.des2002-10-271-16/+45
| | | | | | | | | | | | | | | | Re-add alarm(2) calls around the calls to fetchStat(3) and fetchXGet(3), since these calls can still time out on DNS lookups or TCP connect(2). Remove the alarm(2) calls in the main loop, since all methods properly handle transfer timeouts (as opposed to connection timeouts). Set the sigalrm flag if a timeout occurs in the main loop. Move the signal: label up a little so we still set the atime and mtime when the transfer times out or is interrupted, so that restarted transfers will work as expected (as long as the file still exists). MFC after: 2 weeks
* Back out the previous commit, and fix the bug rather than try to hide itsdes2002-10-271-10/+18
| | | | | | | symptoms: make timeouts and short transfers fatal, and set errno to an appropriate value (ETIMEDOUT for a timeout, EPIPE for a short transfer). MFC after: 2 weeks
* Fix a bunch of warnings on 64 bit platforms in themux2002-10-272-4/+5
| | | | CISS_DEBUG case by appropriately using %z and %j.
* - Comment a line which sets CISS_DEBUG by default.mux2002-10-271-1/+1
| | | | - Use -DCISS_DEBUG rather than -DCISS_DEBUG=0.
* Fix a warning when CISS_DEBUG is defined.mux2002-10-271-1/+1
|
* Correct visibility for v*wscanf(), wcstoll() and wcstoull(). These functionstjr2002-10-271-9/+16
| | | | | did not exist in ISO C Amd. 1. Add #ifdef __LONG_LONG_SUPPORTED and lint comments around wcstoll() and wcstoull().
* Fix the regexp evilness so that fdisk can (again?) find the devicephk2002-10-271-1/+1
| | | | | | root is on from the root mount path. Spotted by: imp
* Style sweep.tjr2002-10-275-40/+32
|
* Don't attempt to find the geometry with disklabel based ioctl, it justphk2002-10-271-15/+0
| | | | issues a useless warning now.
* Don't truncate on large disks.phk2002-10-271-1/+6
|
* Translation of DOS and QIC/SCSI tape sectiongioria2002-10-271-190/+216
|
* MFbed:ue2002-10-273-6/+79
| | | | | | hardware/alpha/proc-alpha.sgml: 1.44 -> 1.45 hardware/common/dev.sgml: 1.110 -> 1.111 relnotes/common/new.sgml: 1.437 -> 1.439
* MFen 1.5gioria2002-10-271-14/+8
|
* Implement mac_check_system_sysctl(), a MAC Framework entry point torwatson2002-10-2714-0/+277
| | | | | | | | | | | | | | | permit MAC policies to augment the security protections on sysctl() operations. This is not really a wonderful entry point, as we only have access to the MIB of the target sysctl entry, rather than the more useful entry name, but this is sufficient for policies like Biba that wish to use their notions of privilege or integrity to prevent inappropriate sysctl modification. Affects MAC kernels only. Since SYSCTL_LOCK isn't in sysctl.h, just kern_sysctl.c, we can't assert the SYSCTL subsystem lockin the MAC Framework. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Hook up mac_check_system_reboot(), a MAC Framework entry point thatrwatson2002-10-2714-3/+225
| | | | | | | | | permits MAC modules to augment system security decisions regarding the reboot() system call, if MAC is compiled into the kernel. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Merge from MAC tree: rename mac_check_vnode_swapon() torwatson2002-10-2714-171/+171
| | | | | | | | | | | mac_check_system_swapon(), to reflect the fact that the primary object of this change is the running kernel as a whole, rather than just the vnode. We'll drop additional checks of this class into the same check namespace, including reboot(), sysctl(), et al. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* MACHINE_ARCH is wrong here. It should be MACHINEimp2002-10-271-1/+1
| | | | Submitted by: nyan@ (Yoshihiro-san)
* Mention the need to have COMPAT_FREEBSD4 in the kernel you use for theimp2002-10-271-1/+6
| | | | upgrade.
* Remove unnecessary compatibility macro. (We were only printing, not parsing,wollman2002-10-271-1/+0
| | | | intmax_t.)
* Add new 1003.1-2001/TC1/D6 parameters. (On final recirculation ballot now,wollman2002-10-274-2/+16
| | | | | | | | so this should be officially TC1 before the New Year.) Add TrustedBSD pathconf parameters. Add compilation support for -stable (to be merged momentarily).
* Add NO_COMPAT_FREEBSD4.peter2002-10-272-0/+2
| | | | Submitted by: Sergey Mokryshev <mokr@mokr.net>
* DISTDIR is used by 'make release', lets see if this is enough to turnpeter2002-10-271-1/+1
| | | | off the execution test.
* o Add functionality to add a GPT partition,marcel2002-10-279-104/+389
| | | | | | | | | | | | o Use DCE compliant UUID functions and provide local implementations if they don't exist, o Move dumping of the map to show.c and print the partition type, o Some cleanups and rearrangements. The default GPT partition type is UFS. When no starting block or size are specified, the tool will create a partition in the first free space it find (or that fits, depending on the size).
* Don't dump core if none of the directories in /etc/manpath.config exist.kris2002-10-271-0/+3
| | | | Submitted by: terry
* Allow users to read the Early Adopter's Guide in sysinstall.bmah2002-10-272-14/+18
|
* Note the scary messages that you see when mounting / and other thingsimp2002-10-271-0/+3
| | | | | are expected and normal when you've booted a 5.0 kernel with a 4.x userland.
* Un-remove sysinstall for ia64.peter2002-10-271-1/+2
|
* Add back ia64 support that was removed in the last few revisions.peter2002-10-274-1/+31
| | | | I've cloned write_ia64_disk.c from write_i386_disk.c.
OpenPOWER on IntegriCloud