aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Create a small library function, check_utility_compat(3), to determineGarrett Wollman2002-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. Notes: svn path=/head/; revision=106065
* Fix a case in kern_rename() where a vn_finished_write() call wasIan Dowse2002-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. Notes: svn path=/head/; revision=106064
* In ipi_send(), perform a mf instruction prior to initiating the IPI.Marcel Moolenaar2002-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. Notes: svn path=/head/; revision=106063
* Serial + Parallel + Ethernet + NFS section translationSebastien Gioria2002-10-271-107/+125
| | | | Notes: svn path=/head/; revision=106060
* Take care of the case for the default speed (no -s option) also.Nate Lawson2002-10-271-3/+2
| | | | Notes: svn path=/head/; revision=106059
* Implement the new 1003.1-2001 pathconf() keys, including the AdvisoryGarrett Wollman2002-10-271-11/+47
| | | | | | | | | | Information option. Other filesystem implementations should do something similar. With advice from: mckusick, phk Notes: svn path=/head/; revision=106058
* Change the way support for asynchronous I/O is indicated to applicationsGarrett Wollman2002-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. Notes: svn path=/head/; revision=106057
* As promised, downgrade the #error into a #warning.Garrett Wollman2002-10-271-1/+1
| | | | Notes: svn path=/head/; revision=106056
* Update limits and configuration parameters for 1003.1/TC1/D6.Garrett 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.) Notes: svn path=/head/; revision=106055
* Add used #include <limits.h>.Garrett Wollman2002-10-273-3/+6
| | | | Notes: svn path=/head/; revision=106054
* Do not include <sys/syslimits.h> directly; it is not intended for generalGarrett Wollman2002-10-276-6/+8
| | | | | | | consumption. Notes: svn path=/head/; revision=106053
* Move speed units conversion to right before it is used. This catches theNate Lawson2002-10-271-1/+2
| | | | | | | case when the -s option is not used. Notes: svn path=/head/; revision=106052
* Don't complain about not knowing the remote file size when working inDag-Erling Smørgrav2002-10-271-1/+1
| | | | | | | | | | quiet mode. PR: bin/37079 Submitted by: Nicolas Rachinsky <list@rachinsky.de> Notes: svn path=/head/; revision=106051
* Don peril sensitive sun glasses and change the default system call vectorJake Burkholder2002-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. Notes: svn path=/head/; revision=106050
* Slight amendment to rev 1.34: instead of considering any short read anDag-Erling Smørgrav2002-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. Notes: svn path=/head/; revision=106049
* Don't roll our own clean target, the default oneMaxime Henrion2002-10-271-5/+0
| | | | | | | works better. Notes: svn path=/head/; revision=106048
* Merged various changes from src/sbin/fdisk/fdisk.c revisions up to 1.66.Yoshihiro Takahashi2002-10-271-758/+426
| | | | Notes: svn path=/head/; revision=106047
* Introduce _fetch_writev(), which is the conn_t version of writev(2). InDag-Erling Smørgrav2002-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 Notes: svn path=/head/; revision=106046
* Centrally manage enforcement of {reboot,swapon,sysctl} using theRobert Watson2002-10-279-117/+81
| | | | | | | | | | mac_enforce_system toggle, rather than several separate toggles. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=106045
* Eliminate two cases of undefined behaviour: total in _fetch_write() wasDag-Erling Smørgrav2002-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 Notes: svn path=/head/; revision=106044
* Whitespace and indentation cleanup.Dag-Erling Smørgrav2002-10-271-12/+12
| | | | Notes: svn path=/head/; revision=106043
* Forgot to disable alarms after fetchXGet() in previous commit.Dag-Erling Smørgrav2002-10-271-0/+2
| | | | Notes: svn path=/head/; revision=106042
* Add an ETA timer that kicks in after 30 seconds.Dag-Erling Smørgrav2002-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 Notes: svn path=/head/; revision=106041
* Back out the previous commit, and fix the bug rather than try to hide itsDag-Erling Smørgrav2002-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 Notes: svn path=/head/; revision=106040
* Fix a bunch of warnings on 64 bit platforms in theMaxime Henrion2002-10-272-4/+5
| | | | | | | CISS_DEBUG case by appropriately using %z and %j. Notes: svn path=/head/; revision=106039
* - Comment a line which sets CISS_DEBUG by default.Maxime Henrion2002-10-271-1/+1
| | | | | | | - Use -DCISS_DEBUG rather than -DCISS_DEBUG=0. Notes: svn path=/head/; revision=106038
* Fix a warning when CISS_DEBUG is defined.Maxime Henrion2002-10-271-1/+1
| | | | Notes: svn path=/head/; revision=106037
* Correct visibility for v*wscanf(), wcstoll() and wcstoull(). These functionsTim J. Robbins2002-10-271-9/+16
| | | | | | | | did not exist in ISO C Amd. 1. Add #ifdef __LONG_LONG_SUPPORTED and lint comments around wcstoll() and wcstoull(). Notes: svn path=/head/; revision=106035
* Fix the regexp evilness so that fdisk can (again?) find the devicePoul-Henning Kamp2002-10-271-1/+1
| | | | | | | | | root is on from the root mount path. Spotted by: imp Notes: svn path=/head/; revision=106033
* Style sweep.Tim J. Robbins2002-10-275-40/+32
| | | | Notes: svn path=/head/; revision=106032
* Don't attempt to find the geometry with disklabel based ioctl, it justPoul-Henning Kamp2002-10-271-15/+0
| | | | | | | issues a useless warning now. Notes: svn path=/head/; revision=106031
* Don't truncate on large disks.Poul-Henning Kamp2002-10-271-1/+6
| | | | Notes: svn path=/head/; revision=106030
* Translation of DOS and QIC/SCSI tape sectionSebastien Gioria2002-10-271-190/+216
| | | | Notes: svn path=/head/; revision=106029
* MFbed:Udo Erdelhoff2002-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 Notes: svn path=/head/; revision=106028
* MFen 1.5Sebastien Gioria2002-10-271-14/+8
| | | | Notes: svn path=/head/; revision=106026
* Implement mac_check_system_sysctl(), a MAC Framework entry point toRobert Watson2002-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 Notes: svn path=/head/; revision=106025
* Hook up mac_check_system_reboot(), a MAC Framework entry point thatRobert Watson2002-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 Notes: svn path=/head/; revision=106024
* Merge from MAC tree: rename mac_check_vnode_swapon() toRobert Watson2002-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 Notes: svn path=/head/; revision=106023
* MACHINE_ARCH is wrong here. It should be MACHINEWarner Losh2002-10-271-1/+1
| | | | | | | Submitted by: nyan@ (Yoshihiro-san) Notes: svn path=/head/; revision=106022
* Mention the need to have COMPAT_FREEBSD4 in the kernel you use for theWarner Losh2002-10-271-1/+6
| | | | | | | upgrade. Notes: svn path=/head/; revision=106020
* Remove unnecessary compatibility macro. (We were only printing, not parsing,Garrett Wollman2002-10-271-1/+0
| | | | | | | intmax_t.) Notes: svn path=/head/; revision=106017
* Add new 1003.1-2001/TC1/D6 parameters. (On final recirculation ballot now,Garrett 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). Notes: svn path=/head/; revision=106016
* Add NO_COMPAT_FREEBSD4.Peter Wemm2002-10-272-0/+2
| | | | | | | Submitted by: Sergey Mokryshev <mokr@mokr.net> Notes: svn path=/head/; revision=106015
* DISTDIR is used by 'make release', lets see if this is enough to turnPeter Wemm2002-10-271-1/+1
| | | | | | | off the execution test. Notes: svn path=/head/; revision=106014
* o Add functionality to add a GPT partition,Marcel Moolenaar2002-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). Notes: svn path=/head/; revision=106013
* Don't dump core if none of the directories in /etc/manpath.config exist.Kris Kennaway2002-10-271-0/+3
| | | | | | | Submitted by: terry Notes: svn path=/head/; revision=106012
* Allow users to read the Early Adopter's Guide in sysinstall.Bruce A. Mah2002-10-272-14/+18
| | | | Notes: svn path=/head/; revision=106011
* Note the scary messages that you see when mounting / and other thingsWarner Losh2002-10-271-0/+3
| | | | | | | | are expected and normal when you've booted a 5.0 kernel with a 4.x userland. Notes: svn path=/head/; revision=106010
* Un-remove sysinstall for ia64.Peter Wemm2002-10-271-1/+2
| | | | Notes: svn path=/head/; revision=106009
* Add back ia64 support that was removed in the last few revisions.Peter Wemm2002-10-274-1/+31
| | | | | | | I've cloned write_ia64_disk.c from write_i386_disk.c. Notes: svn path=/head/; revision=106008