summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-27syncStuart Henderson
2016-01-27Add /etc/examples/pkg.conf, generated from mirrors.dat over in www/.Stuart Henderson
Positive feedback and/or OKs from benno millert jcs aja jasper
2016-01-27Allow pkg.conf's installpath to be set to a bare hostname (no /), whichStuart Henderson
implies http://hostname/pub/OpenBSD/[snapshots-or-version]/packages/[arch]. This could be handled at a different location in the code to support PKG_PATH but this approach is pretty simple and I have something else to make use of it. ok espie@ for now.
2016-01-27No need to copy dmpe_name to a buffer before printing it.Kenneth R Westerback
2016-01-27Clear out some repetitive and pointless verbiage. Shuffle otherKenneth R Westerback
verbiage around to make things clearer.
2016-01-27fyx typo. s,dynanic,dynamic,Gleydson Soares
OK reyk
2016-01-27Tweak some verbiage.Kenneth R Westerback
2016-01-27make sure to check malloc(3) return pointer against NULL.Gleydson Soares
OK krw@
2016-01-27Tighten up next reference calculation, printing fixesMike Belopuhov
2016-01-27tweak previous; ok krwJason McIntyre
2016-01-27Convert min + uiomovei to ulmin + uiomove.Stefan Kempf
From Martin Natano.
2016-01-27On-disk partition name/types/processorid may or may not be NULKenneth R Westerback
terminated after all. So add an extra byte for a NUL in the in-memory struct's.
2016-01-27- sort optionsJason McIntyre
- add -q to usage()
2016-01-27Remove some lies and pointless verbiage. Tweak HISTORY.Kenneth R Westerback
2016-01-27missing fclose(3). (silence cppcheck warnings).Gleydson Soares
OK mmcc@
2016-01-27Reimplement Grant Table metadata linking and enable dynamic allocationMike Belopuhov
Instead of pre-allocating maximum number of Grant Table frames allotted by the hypervisor we switch over to allocating them dynamically when the need arises. At the same time we no longer link metadata entries representing individual Grant Table frames as a list and use a table instead to speed up reference lookups when establishing and removing mappings.
2016-01-27xen_bus_dma_init turned out to be unnecessaryMike Belopuhov
2016-01-27shorten a few long linesMike Belopuhov
2016-01-27We do not support logical_block != physical_block. Remove logical_blockKenneth R Westerback
field and left over code that checks for logical != physical. Removes confusion with dmpe fields lblock_start and lblocks, which have nothing to do with block sizes! lblock_start is the block offset within the partition where the data actually starts. and lblocks is the number of blocks of data within the partition. Both are in units of *physical blocks*, a.k.a. disk sectors.
2016-01-27appease mandoc lint, no difference in outputJasper Lievisse Adriaanse
ok reyk@
2016-01-27Two more for the attic.Kenneth R Westerback
2016-01-27Check block 0 signature, physical block size and physical block count whenKenneth R Westerback
reading partition map. Check for unmapped physical blocks and overlapping partitions when reading partition map. No need for duplicate checks in validate_map(), so remove validate.c from build and 'v' command from code and docs.
2016-01-27- optarg and optind are declared by unistd.h, so remove them...Gleydson Soares
- use strtonum rather than atoi - zap case '?' in getopt(3) switch - use _exit(2) in signal handler - use __progname in usage() instead of hardcoded name OK tb@ mestre@
2016-01-27Include sys/ioccom.h since _IO* is used.Antoine Jacoutot
Based on the number and type of other system headers which pull in ioccom.h, and the fact that videoio.h isn't involved in any massive chain of includes in the kernel, I think it's reasonable and makes porting simpler. -- sthen@ from Brad very reasonable feinerer@, ok sthen@
2016-01-27Check imsg data length before use.Sunil Nimmagadda
Ok jung@ gilles@ eric@
2016-01-27Use "VIS_SAFE | VIS_CSTYLE" instead of "VIS_OCTAL" as the value canReyk Floeter
contain text files with whitespace, newlines and carriage returns.
2016-01-27Add hostctl(8), a tool to access key-value stores on the host,Reyk Floeter
currently for hypervisor information stores on pvbus(4). As discussed with deraadt@, the generic name is used to potentially extend it for other use cases where the host or machine firmware provides a key-value store, hypervisors or things like openprom. Not enabled yet. OK mikeb@
2016-01-27Removes the abstraction layer to support multiple executable binaries.Martin Pieuchot
Simplifies the API to manipulate symbols now that all our architectures are ELF. ok tb@
2016-01-27syncReyk Floeter
2016-01-27Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.Reyk Floeter
Needed for the key-value interface that has been added to pvbus(4). OK mikeb@
2016-01-27Add a key-value interface to pvbus(4) that allows to get or set valuesReyk Floeter
in the underlying information store of the host from the OpenBSD-VM's userspace. OpenBSD did not provide access to these stores before, mostly because we did not want to add a custom tool and interface for each hypervisor. The pvbus(4) interface provides backends for xen(4)'s XenStore and vmt(4)'s VMware Tools "guestinfo". These information stores are fairly different, XenStore is a "filesystem" while vmt is a RPC, and the key-value abstraction limits them a bit but provides the most wanted functionality. Discussed with many OK mikeb@
2016-01-27Replace the malloc spinlock with a mutex. This lock is held over system callsMark Kettenis
which run for many cycles and may even sleep. This leads to other threads spinning for a long time waiting on the lock. Using a mutex means those threads go to sleep and get woken up when the lock is released, which results in a lot less CPU usage. More work is needed to improve the performance of threaded code that suffers from malloc lock contention, but this diff makes ports like Firefox significantly more usable. Tested by many. ok mpi@, guenther@, tedu@, jca@
2016-01-27send events to filters in a simple loop, rather than using theEric Faurot
query-chaining machinery. ok jung@ gilles@
2016-01-27Remove unused db_sifting().Martin Pieuchot
2016-01-27change old $FreeBSD version string in comment so it doesn't become anDamien Miller
RCS ident downstream; requested by des AT des.no
2016-01-27white space tweaks. no functional change.David Gwynne
2016-01-27deprecate SSL_OP_SINGLE_DH_USEBob Beck
ok jsing@
2016-01-27Properly initialize sin_family.Jeremie Courreges-Anglas
2016-01-27make the debug messages a bit more useful hereDamien Miller
2016-01-27Nope. Missed a couple of '{}' that could go.Kenneth R Westerback
2016-01-27Nuke another (and I hope final) batch of superfluous '{}' around singleKenneth R Westerback
statements.
2016-01-26Rework and simplify string argument parsing. All string arguments are atKenneth R Westerback
most DPISTRLEN (32) characters so there is no need for fancy dynamic growing strings. Use a DPISTRLEN long buffer and bail if it fills up. Rename get_string() to get_dpistr() and get_string_argument() to get_dpstr_argument() to emphasize they will return strings that fit in DPISTRLEN. Rework & simplify a pair of their consumers - do_rename_partition() and do_change_type() - to be more obviously identitical to each other bar the displayed verbiage.
2016-01-26spacingRobert Peichaer
OK krw@
2016-01-26- state keys imported by if_pfsync trip refcnt != ~0 AssertAlexandr Nedvedicky
OK mpi@
2016-01-26dpme_name and dpme_type are NUL-terminated in Apple code, so useKenneth R Westerback
strlcpy() to fill them. They are also supposed to be NUL-padded so zap previous contents before copying in possibly shorter new values.
2016-01-26Remove needless zeroing. Anonymously mapped memory is always zeroed.mmcc
ok tb@
2016-01-26typosmmcc
2016-01-26Use an unsigned int rather than an int when iterating through all 32mmcc
bits in the form: for (i = 1; i; i <<= 1) This avoids undefined operations when shifting into and out of the highest-order bit. ok millert@
2016-01-26ensure the backup file has the same mtime as the original file, this is in lineJasper Lievisse Adriaanse
with emacs' behaviour. from Harald Dunkel via Han Boetes ok lum@
2016-01-26remove a useless macrommcc
ok nicm@