summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* man page -> manual pagebrueffer2005-02-271-1/+1
|
* Added the convenience "distribution" target which calls theru2005-02-271-2/+1
| | | | | | target of the same name from src/etc/Makefile with a proper environment, suitable to be used during upgrades and cross- builds.
* Move the AC line checking code into its own function, reducing thenjl2005-02-271-40/+55
| | | | | ifdef __i386__ stuff for APM. Tested as working correctly on i386 and compile-tested on sparc64.
* Unbreak !i386 platforms. Only i386 has APM, so don't try to fallbackmarcel2005-02-271-1/+11
| | | | on APM on other platforms.
* Change the default levels for adaptive mode to 80% and 90%. On a systemnjl2005-02-262-4/+4
| | | | | | with moderate IO going on, system usage can hover around 65-77% even though it would benefit from higher performance. Typically, only truly idle systems pass the 90% mark so only demote then.
* Remove SRCS line since it isn't needed for single-source programs.njl2005-02-261-1/+0
| | | | Pointed out by: ru
* Hook powerd up to the build.njl2005-02-261-0/+1
|
* Import powerd(8), a utility for managing power consumption. Currently, itnjl2005-02-263-0/+526
| | | | | just uses cpufreq(4) but in the future it should also do things like spin down disks. This is based on the work by Colin Percival (called "estctrl").
* Add a HISTORY section.trhodes2005-02-241-1/+8
| | | | PR: 75282
* MFS5: Minor style(9) tweak.delphij2005-02-221-1/+1
|
* Fix the same problem that was fixed in rev. 1.6 and got reintroducedru2005-02-191-0/+5
| | | | | | in rev. 1.8 -- make btxld(8) a cross-tool for i386 and now amd64. Tested on: alpha (which has a different idea of __LDPGSZ)
* Fix a small bug in firmcvt: outfile must be strdup()ed.wpaul2005-02-191-1/+11
| | | | | | Also, add conditional code to allow different invokations for objcopy depending on whether we're compiled on an i386 arch or amd64 arch, so that we can produce x86-64 object files on amd64.
* Fix a small style problem and add a __packed pragma for safety.scottl2005-02-171-1/+1
|
* Generate locale-agnostic configuration date.ru2005-02-161-1/+1
|
* Re-staticize a few functions I un-staticized for debugging purposeswpaul2005-02-161-2/+2
| | | | | on amd64 and accidentally forgot to put back. (Have I mentioned that gdb on amd64 needs work? It does. Boy howdy.)
* Add support for Windows/x86-64 binaries to Project Evil.wpaul2005-02-161-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ville-Pertti Keinonen (will at exomi dot comohmygodnospampleasekthx) deserves a big thanks for submitting initial patches to make it work. I have mangled his contributions appropriately. The main gotcha with Windows/x86-64 is that Microsoft uses a different calling convention than everyone else. The standard ABI requires using 6 registers for argument passing, with other arguments on the stack. Microsoft uses only 4 registers, and requires the caller to leave room on the stack for the register arguments incase the callee needs to spill them. Unlike x86, where Microsoft uses a mix of _cdecl, _stdcall and _fastcall, all routines on Windows/x86-64 uses the same convention. This unfortunately means that all the functions we export to the driver require an intermediate translation wrapper. Similarly, we have to wrap all calls back into the driver binary itself. The original patches provided macros to wrap every single routine at compile time, providing a secondary jump table with a customized wrapper for each exported routine. I decided to use a different approach: the call wrapper for each function is created from a template at runtime, and the routine to jump to is patched into the wrapper as it is created. The subr_pe module has been modified to patch in the wrapped function instead of the original. (On x86, the wrapping routine is a no-op.) There are some minor API differences that had to be accounted for: - KeAcquireSpinLock() is a real function on amd64, not a macro wrapper around KfAcquireSpinLock() - NdisFreeBuffer() is actually IoFreeMdl(). I had to change the whole NDIS_BUFFER API a bit to accomodate this. Bugs fixed along the way: - IoAllocateMdl() always returned NULL - kern_windrv.c:windrv_unload() wasn't releasing private driver object extensions correctly (found thanks to memguard) This has only been tested with the driver for the Broadcom 802.11g chipset, which was the only Windows/x86-64 driver I could find.
* Be concerned about huge callback numbers by truncating them rather thanbrian2005-02-151-5/+9
| | | | | | scribbling past the end of our buffer. Problem spotted by: Damien COUDERC couderc at openbsd dot org
* Be more careful when doing el_parse() - only do it when el isdelphij2005-02-151-1/+1
| | | | | | | | | | properly initialized, that happens when lpc is called from a tty. Without this change, it's possible to get SIGSEGV simply doing: echo "..:" | lpc Reported by: Wojciech A. Koszek <dunstan at freebsd czest pl> PR: 77462 (patch rewritten by myself) MFC After: 1 week
* Expand contractions.ru2005-02-152-2/+2
|
* Fix most cases where the address of an int is passed to a function expecting astefanf2005-02-141-1/+2
| | | | socklen_t * argument.
* Note addition of MCFG support.njl2005-02-141-1/+2
|
* Fix parsing of '0' and non-alphanumerics in steps. Previously, andelphij2005-02-141-1/+3
| | | | | | | | | | entry having stepping value of zero can cause crontab to hang there, and if the main crontab is being changed in this way, then cron(8) will keep spining. Obtained from: OpenBSD [src/usr.sbin/cron/entry.c,v 1.17] PR: 68683 (my own, but forgot to commit it...) MFC After: 1 week
* Add support for parsing MCFG tables.scottl2005-02-142-0/+36
|
* o Add handling of an IPv4-mapped IPv6 address.maxim2005-02-141-4/+5
| | | | | | | | | | | | | o Use SYSCTL_IN() macro instead of direct call of copyin(9). Submitted by: ume o Move sysctl_drop() implementation to sys/netinet/tcp_subr.c where most of tcp sysctls live. o There are net.inet[6].tcp[6].getcred sysctls already, no needs in a separate struct tcp_ident_mapping. Suggested by: ume
* Expand contractions.ru2005-02-1314-70/+70
|
* who's -> whoseru2005-02-131-1/+1
|
* Expand *n't contractions.ru2005-02-1348-104/+104
|
* Line up license text.ru2005-02-133-37/+37
|
* Bump the version number for the addition of devices / nodevices.des2005-02-101-1/+1
|
* Fully document (no)?(device|option)s?.des2005-02-101-17/+23
| | | | This page should probably be repocopied to src/usr.sbin/config/.
* Full modernize cleanup:delphij2005-02-103-37/+20
| | | | | | | | - De-__P() - constify where appropriate - ANSI functions instead of K&R Pointed out by: stefanf
* "device" and "nodevice" lines can actually specify more than one devicedes2005-02-101-0/+2
| | | | | | (separated by commas), so add "devices" and "nodevices" as aliases. MFC after: 2 weeks
* The variable `ROOTKEY' has internal linkage in keyserv.c, don't declare it asstefanf2005-02-101-3/+0
| | | | extern here.
* The variable `arglist' has internal linkage in pw.c, don't declare it as externstefanf2005-02-101-1/+1
| | | | here.
* Turn K&R functions into prototypes.stefanf2005-02-101-12/+6
|
* Code cleanup:delphij2005-02-102-3/+2
| | | | | - Prefer modern declaration of functions - WARNS?= 4 -> 6
* Fixed the misplaced $FreeBSD$.ru2005-02-0918-20/+25
|
* - Reduce the number of netgraph messages when listingru2005-02-091-11/+35
| | | | | | | | | | nodes from (N + 1) to 1, where N is the number of nodes in the system. - Implement "ls -l" which runs the "show" command for each node. In collaboration with: glebius
* Properly initialise the variable `deny'.stefanf2005-02-091-1/+1
|
* Pass -C to rpcgen.stefanf2005-02-091-3/+3
|
* Use CFLAGS+=.stefanf2005-02-091-1/+1
|
* Add a new sysctl, "security.jail.chflags_allowed", which controls thecperciva2005-02-081-0/+9
| | | | | | | | | | | | | behaviour of chflags within a jail. If set to 0 (the default), then a jailed root user is treated as an unprivileged user; if set to 1, then a jailed root user is treated the same as an unjailed root user. This is necessary to allow "make installworld" to work inside a jail, since it attempts to manipulate the system immutable flag on certain files. Discussed with: csjp, rwatson MFC after: 2 weeks
* Next step on the road to IRPs: create and use an imitation of thewpaul2005-02-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows DRIVER_OBJECT and DEVICE_OBJECT mechanism so that we can simulate driver stacking. In Windows, each loaded driver image is attached to a DRIVER_OBJECT structure. Windows uses the registry to match up a given vendor/device ID combination with a corresponding DRIVER_OBJECT. When a driver image is first loaded, its DriverEntry() routine is invoked, which sets up the AddDevice() function pointer in the DRIVER_OBJECT and creates a dispatch table (based on IRP major codes). When a Windows bus driver detects a new device, it creates a Physical Device Object (PDO) for it. This is a DEVICE_OBJECT structure, with semantics analagous to that of a device_t in FreeBSD. The Windows PNP manager will invoke the driver's AddDevice() function and pass it pointers to the DRIVER_OBJECT and the PDO. The AddDevice() function then creates a new DRIVER_OBJECT structure of its own. This is known as the Functional Device Object (FDO) and corresponds roughly to a private softc instance. The driver uses IoAttachDeviceToDeviceStack() to add this device object to the driver stack for this PDO. Subsequent drivers (called filter drivers in Windows-speak) can be loaded which add themselves to the stack. When someone issues an IRP to a device, it travel along the stack passing through several possible filter drivers until it reaches the functional driver (which actually knows how to talk to the hardware) at which point it will be completed. This is how Windows achieves driver layering. Project Evil now simulates most of this. if_ndis now has a modevent handler which will use MOD_LOAD and MOD_UNLOAD events to drive the creation and destruction of DRIVER_OBJECTs. (The load event also does the relocation/dynalinking of the image.) We don't have a registry, so the DRIVER_OBJECTS are stored in a linked list for now. Eventually, the list entry will contain the vendor/device ID list extracted from the .INF file. When ndis_probe() is called and detectes a supported device, it will create a PDO for the device instance and attach it to the DRIVER_OBJECT just as in Windows. ndis_attach() will then call our NdisAddDevice() handler to create the FDO. The NDIS miniport block is now a device extension hung off the FDO, just as it is in Windows. The miniport characteristics table is now an extension hung off the DRIVER_OBJECT as well (the characteristics are the same for all devices handled by a given driver, so they don't need to be per-instance.) We also do an IoAttachDeviceToDeviceStack() to put the FDO on the stack for the PDO. There are a couple of fake bus drivers created for the PCI and pccard buses. Eventually, there will be one for USB, which will actually accept USB IRP.s Things should still work just as before, only now we do things in the proper order and maintain the correct framework to support passing IRPs between drivers. Various changes: - corrected the comments about IRQL handling in subr_hal.c to more accurately reflect reality - update ndiscvt to make the drv_data symbol in ndis_driver_data.h a global so that if_ndis_pci.o and/or if_ndis_pccard.o can see it. - Obtain the softc pointer from the miniport block by referencing the PDO rather than a private pointer of our own (nmb_ifp is no longer used) - implement IoAttachDeviceToDeviceStack(), IoDetachDevice(), IoGetAttachedDevice(), IoAllocateDriverObjectExtension(), IoGetDriverObjectExtension(), IoCreateDevice(), IoDeleteDevice(), IoAllocateIrp(), IoReuseIrp(), IoMakeAssociatedIrp(), IoFreeIrp(), IoInitializeIrp() - fix a few mistakes in the driver_object and device_object definitions - add a new module, kern_windrv.c, to handle the driver registration and relocation/dynalinkign duties (which don't really belong in kern_ndis.c). - made ndis_block and ndis_chars in the ndis_softc stucture pointers and modified all references to it - fixed NdisMRegisterMiniport() and NdisInitializeWrapper() so they work correctly with the new driver_object mechanism - changed ndis_attach() to call NdisAddDevice() instead of ndis_load_driver() (which is now deprecated) - used ExAllocatePoolWithTag()/ExFreePool() in lookaside list routines instead of kludged up alloc/free routines - added kern_windrv.c to sys/modules/ndis/Makefile and files.i386.
* Use the correct length when copying trailing data!!brian2005-02-081-1/+1
| | | | | | PR: 77104 Submitted by: Martin Birgmeier martin at email dot aon dot at MFC after: 3 days
* Remove /stand when we are done with it.obrien2005-02-072-0/+6
| | | | Submitted by: Ryan Sommers <ryans@gamersimpact.com>
* Remove code, inherited from ipacctctl, which sets socket to non-blockingglebius2005-02-061-9/+1
| | | | mode, since this introduces problems on SMP.
* Remove the useless "version" number output.obrien2005-02-061-5/+1
| | | | We don't give a version number each userland binary.
* o Implement net.inet.tcp.drop sysctl and userland part, tcpdrop(8)maxim2005-02-064-0/+161
| | | | | | | | | | | | utility: The tcpdrop command drops the TCP connection specified by the local address laddr, port lport and the foreign address faddr, port fport. Obtained from: OpenBSD Reviewed by: rwatson (locking), ru (man page), -current MFC after: 1 month
* Backout rev. 1.17 per ru@ request: there are net.graph.recvspace andmaxim2005-02-041-4/+2
| | | | net.graph.maxdgram sysctls.
* - Use svc_getrpccaller() rather than svc_getcaller() for usingkuriyama2005-02-031-20/+16
| | | | | | | | xt_rtaddr member of SVCXPRT structure. This allows to use IPv6 address stored in "struct sockaddr_storage" in "struct netbuf". - Output the reason of getnameinfo() error. Reviewed by: alfred
OpenPOWER on IntegriCloud