summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add the full module path name to the kld_file_stat structurejb2007-10-221-0/+5
| | | | | | | | | | | | | | for kldstat(2). This allows libdtrace to determine the exact file from which a kernel module was loaded without having to guess. The kldstat(2) API is versioned with the size of the kld_file_stat structure, so this change creates version 2. Add the pathname to the verbose output of kldstat(8) too. MFC: 3 days
* Consistently use the word 'flag' to refer to ELF_F_* constants.jkoshy2007-10-225-19/+19
| | | | MFC after: 1 day
* - Given that we tell the compiler that struct ip is packed and 32-bitmarius2007-10-211-4/+4
| | | | | | | | | | | | | | | | | aligned, GCC 4.2.1 also generates code for sendudp() that assumes this alignment. GCC 4.2.1 however doesn't 32-bit align wbuf, causing the loader to crash due to an unaligned access of wbuf in sendudp() when netbooting sparc64. Solve this by specifying wbuf as packed and 32-bit aligned, too. As for lastdata and readudp() this currently is no issue when compiled with GCC 4.2.1, though give lastdata the same treatment as wbuf for consistency and possibility of being affected in the future. [1] - Sprinkle const on a lookup table. Reported by: marcel [1] Submitted by: yongari [1] Reviewed by: marcel [1] MFC after: 5 days
* Remove references to the 'e_phnum' field of the ELF header. Instead,jkoshy2007-10-212-14/+9
| | | | | | point the reader to the elf_getphnum() function. MFC after: 1 day
* Refer the reader to the elf_update(3) manual page for more informationjkoshy2007-10-211-2/+5
| | | | | | on application control of ELF object layout. MFC after: 1 day
* - Convert NO_INSTALLLIB option to a new syntax: makefiles shouldru2007-10-202-1/+2
| | | | | | | | | | | test MK_INSTALLLIB, users can set WITHOUT_INSTALLLIB. The old NO_INSTALLLIB is still supported as several makefiles set it. - While here, fix an install when instructed not to install libs (usr.bin/lex/lib/Makefile). PR: bin/114200 Submitted by: Henrik Brix Andersen
* Install getaudit_addr(2) and setaudit_addr(2) links to getaudit(2) andrwatson2007-10-191-1/+3
| | | | | | | | setaudit(2). MFC after: 3 days Submitted by: csjp Obtained from: TrustedBSD Project
* Remove out of date notes, the atoi code is thread-safe and async-canceldavidxu2007-10-191-4/+0
| | | | | | safe. Discussed with: desichen
* Unbreak arm build by removing duplicate symbols.cognet2007-10-181-8/+0
|
* The fork symbols aren't MD, they already live in sys/.yar2007-10-181-3/+0
| | | | | Found by: version_gen.awk Tested by: md5(1) (libc.so hasn't changed at all)
* Fix build from errors exposed with recent version_gen.awk commit.grehan2007-10-181-2/+1
| | | | | Not quite sure if this is 100% correct: awaiting review. But quieten tinderbox in the meantime.
* - Correctly define CACHED_SOCKET_PATH as /var/run/nscd after cached totmclaugh2007-10-171-1/+1
| | | | | | nscd renaming. Approved by: mux
* VM_METER is long deprecated.ru2007-10-161-2/+2
|
* Rescue parts of the sensorsd commit that are still relevant:ru2007-10-161-6/+9
| | | | | | - HW_FLOATINGPOINT renamed to HW_FLOATINGPT. - Documented HW_REALMEM. - Sorted as per <sys/sysctl.h>.
* Use macro THR_CLEANUP_PUSH/POP, they are cheaper than pthread_cleanup_push/pop.davidxu2007-10-161-2/+4
|
* Reverse the logic of UP and SMP.davidxu2007-10-161-1/+1
| | | | Submitted by: jasone
* Update for libpcap 0.9.8 importmlaier2007-10-162-3/+28
|
* Backout sensors framework.netchild2007-10-151-36/+6
| | | | | Requested by: phk Discussed on: cvs-all
* Optimize for size on pc98. It enables to boot a kernel again.nyan2007-10-151-0/+3
| | | | | | | | I don't know what's wrong (loader, boot2 or others), but this change is effective. Tested by: NAKAJI Hiroyuki MFC after: 3 days
* Add comment explaining __mb_sb_limit trick here.ache2007-10-151-0/+5
|
* Fix mdoc in last commit.ru2007-10-141-13/+15
|
* Import OpenBSD's sysctl hardware sensors framework.netchild2007-10-141-6/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit includes the following core components: * sample configuration file for sensorsd * rc(8) script and glue code for sensorsd(8) * sysctl(3) doc fixes for CTL_HW tree * sysctl(3) documentation for hardware sensors * sysctl(8) documentation for hardware sensors * support for the sensor structure for sysctl(8) * rc.conf(5) documentation for starting sensorsd(8) * sensor_attach(9) et al documentation * /sys/kern/kern_sensors.c o sensor_attach(9) API for drivers to register ksensors o sensor_task_register(9) API for the update task o sysctl(3) glue code o hw.sensors shadow tree for sysctl(8) internal magic * <sys/sensors.h> * HW_SENSORS definition for <sys/sysctl.h> * sensors display for systat(1), including documentation * sensorsd(8) and all applicable documentation The userland part of the framework is entirely source-code compatible with OpenBSD 4.1, 4.2 and -current as of today. All sensor readings can be viewed with `sysctl hw.sensors`, monitored in semi-realtime with `systat -sensors` and also logged with `sensorsd`. Submitted by: Constantine A. Murenin <cnst@FreeBSD.org> Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith Obtained from: OpenBSD (parts)
* The problem is: currently our single byte ctype(3) functions are brokenache2007-10-1312-21/+57
| | | | | | | | | | | | | | | | | | | | | | | | | for wide characters locales in the argument range >= 0x80 - they may return false positives. Example 1: for UTF-8 locale we currently have: iswspace(0xA0)==1 and isspace(0xA0)==1 (because iswspace() and isspace() are the same code) but must have iswspace(0xA0)==1 and isspace(0xA0)==0 (because there is no such character and all others in the range 0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte range because our internal wchar_t representation for UTF-8 is UCS-4). Example 2: for all wide character locales isalpha(arg) when arg > 0xFF may return false positives (must be 0). (because iswalpha() and isalpha() are the same code) This change address this issue separating single byte and wide ctype and also fix iswascii() (currently iswascii() is broken for arguments > 0xFF). This change is 100% binary compatible with old binaries. Reviewied by: i18n@
* Remove symbols that should not be exported.deischen2007-10-131-29/+0
| | | | | Submitted by: das MFC after re@ approval
* MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd arecognet2007-10-133-9/+9
| | | | | | available, use _ARM_ARCH_5/_ARM_ARCH_5E instead. MFC After: 3 days
* Minor mdoc cleanup: Every sentence should start on its own line.simon2007-10-131-1/+2
|
* When pidfile is already locked and has zero length, do not returnkib2007-10-122-1/+19
| | | | | | | | | | | | | | success and zero pid from pidfile_read(). Return EAGAIN instead. Sleep up to three times for 5 ms while waiting for pidfile to be written. mount(8) does the kill(mountpid, SIGHUP). If mountd pidfile is truncated, that would result in the SIGHUP delivered to the mount' process group instead of the mountd. Found and analyzed by: Peter Holm Tested by: Peter Holm, kris Reviewed by: pjd MFC after: 1 week
* Correct the cpio writers to not accept data for non-regular files.kientzle2007-10-123-3/+41
| | | | | | | | | In particular, the previous code led to archives that had non-empty bodies following directory entries. Not a fatal problem, as bsdtar and GNU cpio are both happy to just skip this bogus data, but it still shouldn't be there. MFC after: 3 days
* Correct the return values of the final zero-length block at EOF.kientzle2007-10-121-0/+7
| | | | | | | | Return EOF immediately if an entry in a ZIP archive has no body. In particular, the latter issue was causing bsdtar to emit spurious warnings when extracting directory entries from ZIP archives. MFC after: 3 days
* For 7.0 make the shared lib "version" '3'.obrien2007-10-101-1/+1
| | | | Approved by: re(kensmith)
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalobrien2007-10-092-4/+2
| | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith)
* Repo copy libpthreads to libkse.obrien2007-10-09177-26833/+0
| | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith)
* Repo copy libpthreads to libkse.obrien2007-10-0911-71/+18
| | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith)
* Always install libpthread.* symlinks if at least one ofru2007-10-011-2/+3
| | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
* Always install libpthread.* symlinks if at least one ofru2007-10-012-4/+6
| | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
* Fixed "make checkdpadd" (missing library dependencies).ru2007-10-011-0/+1
| | | | Approved by: re (kensmith)
* Adjust history.obrien2007-09-284-4/+11
| | | | Approved by: re(ken)
* Add fts_set_clientptr(3), fts_get_clientptr(3) and fts_get_stream(3) manscf2007-09-281-1/+2
| | | | | | | | page links to fts(3). Approved by: wes Approved by: re (hrs) MFC after: 5 days
* Assorted spelling, punctuation and mdoc fixes.brueffer2007-09-255-36/+39
| | | | Approved by: re (blanket)
* The precision for a string argument in a call to warnx() needs to be castscf2007-09-221-1/+2
| | | | | | | | | to an int to remove the warning from using a size_t variable on 64-bit platforms. Submitted by: Xin LI <delphij@FreeBSD.org> Approved by: wes Approved by: re (kensmith)
* Translate partitions of type "PART" to chunks of the same typemarcel2007-09-211-4/+15
| | | | | | | | as they would have been translated from partitions of type "GPT". This fixes sysinstall, now that geom_part has taken over from geom_gpt. Approved by: re (kensmith)
* On PowerPC, geom_part has taken over the partitioning from geom_apple.marcel2007-09-211-2/+7
| | | | | | | Translate partitions of type "PART" to chunks of type "apple" on PowerPC. This fixes sysinstall. Approved by: re (kensmith)
* Add FreeBSD history.obrien2007-09-211-1/+3
| | | | Approved by: re(ken)
* Fix the archive_write_data() function so it always returnskientzle2007-09-212-4/+86
| | | | | | | | | | | | | number of bytes written, even when used to write files to disk. Extend the test suite to verify the correct return values for archive_write_data() and archive_write_data_block(). Thanks to: Bruce Mah, for stepping in promptly to back out the earlier broken version of this fix Thanks to: Colin Percival, for pointing out the correct fix MFC after: 5 days Approved by: re (ksmith) Pointy hat: \me
* - When using kvm use the new conversion method to derive swtime.jeff2007-09-211-3/+16
| | | | Approved by: re
* Fix some improper handling of malloc failuresmatteo2007-09-205-30/+53
| | | | | | | PR: bin/83344 , kern/81987 Reviewed by: alfred Approved by: re (kensmith) MFC after: 1 week
* - Fix description to say "receive" instead of "send"gabor2007-09-201-2/+2
| | | | | | PR: docs/115466 Submitted by: Bruce Cran <bruce@cran.org.uk> Approved by: re (bmah)
* Fill in a missing 'e'kientzle2007-09-191-1/+1
| | | | | | Thanks to: Kai Wang, for pointing this out Approved by: re (bmah) MFC after: 3 days
* Revert the last commit to libarchive. It introduced some regresssions,bmah2007-09-182-33/+5
| | | | | | | | | | | most noticably the incorrect extraction of files by bsdtar. This commit reverts: src/lib/libarchive/archive_write_disk.c 1.15 src/lib/libarchive/test/test_write_disk.c 1.4 Approved by: re (implicitly)
* Correct the return value from archive_write_data()kientzle2007-09-182-5/+33
| | | | | | | | | | | (when used to restore files to disk) to match: * The documentation * The return values of this function when used to write files into an archive. Approved by: re (bmah) Pointy hat: \me MFC after: 5 days
OpenPOWER on IntegriCloud