summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add missing function to get device speed to the LibUSB v1.0 API.Hans Petter Selasky2011-08-162-0/+30
| | | | | | | | MFC after: 1 week Approved by: re (kib) Notes: svn path=/head/; revision=224903
* Cross-reference cap_new(2) from dup(2), as they have similar functionality.Robert Watson2011-08-141-1/+7
| | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=224864
* Updates to libprocstat(3) and procstat(1) to allow monitoring CapsicumRobert Watson2011-08-142-11/+19
| | | | | | | | | | | | | capability mode and capabilities. Right now no attempt is made to unwrap capabilities when operating on a crashdump, so further refinement is required. Approved by: re (bz) Sponsored by: Google Inc Notes: svn path=/head/; revision=224859
* Fix a pathname (s,netinet/if_ether.h,net/ethernet.h,).Hiroki Sato2011-08-081-1/+1
| | | | | | | | | PR: docs/159341 Submitted by: Garrett Cooper Approved by: re (kib) Notes: svn path=/head/; revision=224701
* Merge revision 3554 from libarchive's release/2.8 branch:Martin Matuska2011-08-073-16/+27
| | | | | | | | | | | | | | | Partial merge of 2431 from trunk: Retry writes on EINTR. This should fix the SIGINT handler in bsdtar. Note: The rest of r2431 can't be merged, since it interacts with a big write-side rearchitecture. PR: bin/149409 Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=224700
* Change lwp to int64_t as thr_pread_long() always uses a 64-bit valueMarius Strobl2011-08-071-4/+4
| | | | | | | | | | | | | | | in order to account for LP64 targets when cross-debugging on ILP32, allowing r224683 to compile on ILP32. Note that thr_p{read,write}_{long,ptr}() still incorrectly use the size of the respective types on the host rather than that on the target when accessing the target address space which still needs to be fixed. This means that r224683 alone may not be sufficient to solve the problem it's intended to fix when cross-debugging. Approved by: re (hrs) Notes: svn path=/head/; revision=224693
* Add compatibility for ISO images created with unfixed makefs thatMartin Matuska2011-08-0711-35/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | violated ECMA-119 (ISO9660): allow reserved4 to be 0x20 in PVD. This allows tar to read FreeBSD distribution ISO images created with makefs prior to NetBSD bin/45217 bugfix (up to 9.0-BETA1). In addition, merge following important bugfixes from libarchive's release/2.8 branch: Revision 2812: Merge 2811 from trunk: Don't try to verify that compression-level=0 produces larger results than the default compression, since this isn't true for all versions of liblzma. Revision 2817: Merge 2814 from trunk: Fix Issue 121 (mtree parser error) http://code.google.com/p/libarchive/issues/detail?id=121 Revision 2820: Fix issue 119. Change the file location check that a file location does not exceed volume block. New one is that a file content does not exceed volume block(end of an ISO image). It is better than previous check even if the issue did not happen. While reading an ISO image generated by an older version of mkisofs utility, a file location indicates the end the ISO image if its file size is zero and it is the last file of all files of the ISO image, so it is possible that the location value is the same as the number of the total block of the ISO image. http://code.google.com/p/libarchive/issues/detail?id=119 Revision 2955: Issue 134: Fix libarchive 2.8 crashing in archive_write_finish() when the open has failed and we're trying to write Zip format. http://code.google.com/p/libarchive/issues/detail?id=134 Revision 2958: Followup on Issue 134: 1) Port test_open_failure to libarchive 2.8 branch to test the problem reported in Issue 134. This test also shows that archive_read_open() sometimes fails to report open errors correctly. 2) Fix the bug in archive_read.c 3) Comment out the tests that close functions are invoked promptly when open fails; that's fully fixed in libarchive 3.0, but I don't think it's worth fixing here. Revision 3484: Use uintmax_t with %ju Revision 3487: Fix issue 163. Correctly allocate enough memory for a input buffer saved. http://code.google.com/p/libarchive/issues/detail?id=163 Revision 3542: Merge 2516, 2536 from trunk: Allow path table offset values of 0 and 18, which are used by some ISO writers. Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=224691
* ImplementMarius Strobl2011-08-061-5/+30
| | | | | | | | | Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224685
* Use the size of struct fpreg rather than of the pointer to it when copyingMarius Strobl2011-08-061-2/+5
| | | | | | | | | | | the FPU state. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224684
* The tid member of struct pthread actually is long so read it as such.Marius Strobl2011-08-061-8/+8
| | | | | | | | | | | | Accessing it as an int causes failure on big-endian LP64, i.e. mips64be, powerpc64 and sparc64. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224683
* Add support for PBVM addresses. In a nutshell this means:Marcel Moolenaar2011-08-061-7/+81
| | | | | | | | | | | | | | | | | | o get the physical address and size of the PBVM page table. This can be found in the bootinfo structure, of which the physical address is recorded as the ELF entry point. o translate region 4 virtual addresses to physical addresses using the PBVM page table. In _kvm_kvatop() make the distinction between physical address and core file offset a little clearer to avoid confusion. To further enhance readability, always store the translated address into pa so that it's obvious how the translation from va to pa happened. Approved by: re (blanket) Notes: svn path=/head/; revision=224680
* The result of a joint work between rrs@ and myself at the IETF:Michael Tuexen2011-08-031-0/+3
| | | | | | | | | | | | | | * Decouple the path supervision using a separate HB timer per path. * Add support for potentially failed state. * Bring back RTO.min to 1 second. * Accept packets on IP-addresses already announced via an ASCONF * While there: do some cleanups. Approved by: re@ MFC after: 2 months. Notes: svn path=/head/; revision=224641
* fix a serious bug in libproc's proc_attachAndriy Gapon2011-08-031-2/+1
| | | | | | | | | | | | | proc_attach always frees any struct proc_handle data that it allocates, but that is supposed to be done only in error conditions. PR: bin/158431 Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224632
* Get rid of MAXCPU knowledge used for internal needs only. Switch toSergey Kandaurov2011-08-016-64/+41
| | | | | | | | | | | | | | dynamic memory allocation to hold per-CPU memory types data (sized to mp_maxid for UMA, and to mp_maxcpus for malloc to match the kernel). That fixes libmemstat with arbitrary large MAXCPU values and therefore eliminates MEMSTAT_ERROR_TOOMANYCPUS error type. Reviewed by: jhb Approved by: re (kib) Notes: svn path=/head/; revision=224569
* MFprojects/hid:Alexander Motin2011-07-301-5/+7
| | | | | | | | | | | | | | | - Fix usbhidctl and usbhidaction to handle HID devices with multiple report ids, such as multimedia keyboards. - Add collection type and report id to the `usbhidctl -r` output. They are important for proper device understanding and debugging. - Fix usbhidaction tool to properly handle items having report_count more then 1. Approved by: re (kib) MFC after: 2 weeks Notes: svn path=/head/; revision=224511
* Remove incorrect attribution.George V. Neville-Neil2011-07-211-1/+1
| | | | | | | | | Approved by: re (kib) Pointed out by: brueffer Pointy hat to: gnn Notes: svn path=/head/; revision=224253
* Make both stpcpy and strcpy be assembly language implementationsGeorge V. Neville-Neil2011-07-213-20/+60
| | | | | | | | | | | | on amd64. Submitted by: Guillaume Morin (guillaume at morinfr.org) Reviewed by: kib, jhb Approved by: re (bz) MFC after: 1 month Notes: svn path=/head/; revision=224246
* Add cap_new(2) and cap_getrights(2) symbols to libc.Jonathan Anderson2011-07-203-1/+478
| | | | | | | | | | | These system calls have already been implemented in the kernel; now we hook up libc symbols so userspace can drive them. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc Notes: svn path=/head/; revision=224227
* Fix building of 32-bit compat libraries on amd64 with clang, and usingDimitry Andric2011-07-181-4/+0
| | | | | | | | | | | | | | | | | -g, by reverting r219139. The LLVM PR referenced in that revision was fixed in the mean time, and we imported a clang snapshot soon afterwards, so the temporary workaround of disabling clang's integrated assembler is no longer needed. In this particular case, using e.g. DEBUG_FLAGS=-g causes clang to output certain directives into assembly that our version of GNU as chokes on. Reported by: dougb Approved by: re (kib) Notes: svn path=/head/; revision=224201
* Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN.Bjoern A. Zeeb2011-07-181-2/+2
| | | | | | | | | | | | Provide backward compatibility defines under BURN_BRIDGES. Suggested by: jhb Reviewed by: emaste Sponsored by: Sandvine Incorporated Approved by: re (kib) Notes: svn path=/head/; revision=224199
* Disable gvmat64.S, the assembler version of longest_match for now.Xin LI2011-07-181-10/+10
| | | | | | | | | PR: kern/154073 MFC after: 3 days Approved by: re (kib) Notes: svn path=/head/; revision=224196
* - Update libarchive to 2.8.4Martin Matuska2011-07-1745-103/+5799
| | | | | | | | | | | - Add support for extracting xar and rpm archives - Add libarchive_fe subdir (common code for tar and cpio) Approved by: kientzle MFC after: 2 weeks Notes: svn path=/head/; revision=224152
*-. Upgrade our copy of llvm/clang to r135360, from upstream's trunk.Dimitry Andric2011-07-1761-128/+228
|\ \ | | | | | | | | | Notes: svn path=/head/; revision=224145
| | * Vendor import of clang trunk r135360:vendor/clang/clang-r135360Dimitry Andric2011-07-17209-9638/+25449
| | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/trunk@135360 Notes: svn path=/vendor/clang/dist/; revision=224135 svn path=/vendor/clang/clang-r135360/; revision=224136; tag=vendor/clang/clang-r135360
| | * Vendor import of clang trunk r132879:vendor/clang/clang-r132879Dimitry Andric2011-06-12168-4978/+11673
| | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/trunk@132879 Notes: svn path=/vendor/clang/dist/; revision=223015 svn path=/vendor/clang/clang-r132879/; revision=223016; tag=vendor/clang/clang-r132879
| * | Vendor import of llvm trunk r135360:vendor/llvm/llvm-r135360Dimitry Andric2011-07-17645-22623/+27962
| | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/trunk@135360 Notes: svn path=/vendor/llvm/dist/; revision=224133 svn path=/vendor/llvm/llvm-r135360/; revision=224134; tag=vendor/llvm/llvm-r135360
* | | Fixes to make the WITH_BIND_LIBS option functional with BIND 9.8.xDoug Barton2011-07-171-2/+8
| | | | | | | | | | | | Notes: svn path=/head/; revision=224129
* | | bmake and other updates necessary for the BIND 9.8.x upgrade.Doug Barton2011-07-1612-84/+455
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes a structural change regarding atomic ops. Previously they were enabled on all platforms unless we had knowledge that they did not work. However both work performed by marius@ on sparc64 and the fact that the 9.8.x branch is fussier in this area has demonstrated that this is not a safe approach. So I've modified a patch provided by marius to enable them for i386, amd64, and ia64 only. Notes: svn path=/head/; revision=224093
* | | - Add two missing functions to the LibUSB v0.1 API.Hans Petter Selasky2011-07-166-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Clamp the string length to 255 bytes when getting the interface description. - Clamp data request length to 65535 bytes when doing control requests. MFC after: 3 days Notes: svn path=/head/; revision=224085
* | | Handle the MK_BIND_XML option more intelligentlyDoug Barton2011-07-161-5/+12
| | | | | | | | | | | | Notes: svn path=/head/; revision=224076
* | | Document RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals areKonstantin Belousov2011-07-121-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | delivered, not returned. MFC after: 1 week Notes: svn path=/head/; revision=223967
* | | Mention myself in the AUTHORS section.Sergey Kandaurov2011-07-121-1/+8
| | | | | | | | | | | | | | | | | | | | | Requested by: stas Notes: svn path=/head/; revision=223964
* | | Provide a simple manual page for libprocstat(3).Sergey Kandaurov2011-07-122-2/+255
| | | | | | | | | | | | | | | | | | | | | Reviewed by: jilles, gjb Notes: svn path=/head/; revision=223953
* | | Update xz to git snapshot of v5.0 branch as of 20110711 (post-5.0.3)Martin Matuska2011-07-111-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For architectures with __NO_STRICT_ALIGNMENT define TUKLIB_FAST_UNALIGNED_ACCESS MFC after: 2 weeks Notes: svn path=/head/; revision=223935
* | | posix_spawn: If an error is detected in the child process, reap the zombie.Jilles Tjoelker2011-07-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Formerly, in this case an error was returned but the pid was also returned to the application, requiring the application to use unspecified behaviour (the returned pid in error situations) to avoid zombies. Now, reap the zombie and do not return the pid. MFC after: 2 weeks Notes: svn path=/head/; revision=223907
* | | - Removing some unneeded definitions of NULL(cruft related to 1970's C).Tai-hwa Liang2011-07-106-29/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In C90, NULL is guaranteed to be declared in <stddef.h> and also in <string.h>. Though the correct way to define NULL in FreeBSD is to include <sys/_null.h>, other parts of libstand still require <string.h> to build; therefore, we keep <string.h> in stand.h and add a note about this; - Removing no longer used 'Prototype' definition. Quote from bde@: 'Cruft related to getting incomplete struct declarations within prototypes forward-declared before the structs. It doesn't mean "prototype" but only part of a prototype-related hack. No longer used.' - Replacing iaddr_t with uintptr_t; - Removing use of long double to determine alignment. Use a fixed 16 byte alignment instead; Reviewed by: bde Obtained from: DragonFlyBSD (partially) MFC after: 1 month Notes: svn path=/head/; revision=223905
* | | style(9) cleanupKevin Lo2011-07-101-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=223904
* | | Add a HISTORY sectionKevin Lo2011-07-101-0/+5
| | | | | | | | | | | | | | | | | | | | | Requested by: arundel Notes: svn path=/head/; revision=223903
* | | Add missing "swapuse" resource limit.Edward Tomasz Napierala2011-07-091-1/+2
| | | | | | | | | | | | Notes: svn path=/head/; revision=223878
* | | - Add xdr_sizeof(3) to libcKevin Lo2011-07-094-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Document xdr_sizeof(3); from NetBSD Discussed with: kib Notes: svn path=/head/; revision=223877
* | | Fixing building bustage on 32 bits platforms when WARNS >= 2. Note thatTai-hwa Liang2011-07-082-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this fix only applies to zalloc.c, the other part of libstand such like qdivrem.c still gives compilation warnings on sparc64 tinderbox builds; therefore, WARNS level isn't changed for now. Submitted by: Garrett Cooper <yanegomi@gmail.com> Reviewed by: bde Notes: svn path=/head/; revision=223854
* | | Completely remove now unused pc_other_cpus, pc_cpumask.Attilio Rao2011-07-041-29/+2
| | | | | | | | | | | | | | | | | | | | | Tested by: pluknet Notes: svn path=/projects/largeSMP/; revision=223756
* | | MFCAttilio Rao2011-06-289-15/+21
|\ \ \ | | | | | | | | | | | | Notes: svn path=/projects/largeSMP/; revision=223645
| * | | Build Scrt.o on powerpc64. Its introduction on other platforms got lostNathan Whitehorn2011-06-271-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | during the period of time the powerpc64 port was on a project branch. Notes: svn path=/head/; revision=223599
| * | | Rewrite HISTORY: The SHA256 code first appeared in 6.0, and the SHA512Colin Percival2011-06-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | code in 9.0; neither existed in FreeBSD 4.0. Notes: svn path=/head/; revision=223582
| * | | Fix whitespace inconsistencies in libc in files copyrighted by me.Ed Schouten2011-06-265-8/+8
|/ / / | | | | | | | | | Notes: svn path=/head/; revision=223576
* | | Add missing libkvm and libutil dependencies.Sergey Kandaurov2011-06-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now libprocstat takes care of its own dependencies and does not require applications to specify them. Reviewed by: stas, jilles Notes: svn path=/head/; revision=223532
* | | - Add two new API's to libusb20 which can be used to retrive informationHans Petter Selasky2011-06-247-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | about the parent USB device: - libusb20_dev_get_parent_address - libusb20_dev_get_parent_port - Rename libusb20_compat01.c into libusb01.c MFC after: 3 days Notes: svn path=/head/; revision=223495
* | | Fixes to newer tftp code in libstand:Craig Rodrigues2011-06-241-51/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) Coding style changes. (2) If the server does not acknowledge any blocksize option, revert to the default blocksize of 512 bytes. (3) Send ACK if the first packet happens to be the last packet. (4) Do not accept blocksize greater than what was requested. (5) Drop any unwanted OACK received if a tftp transfer is already in progress. (6) Terminate incomplete transfers with a special no-error ERROR packet. Otherwise we rely on the tftp server to time out, which it does eventually, after re-sending the last packet several times and spamming the system log about it every time. This idea is borrowed from the PXE client, which does exactly that. Submitted by: Alexander Kabaev <kan@FreeBSD.org> Reviewed and Tested by: Santhanakrishnan Balraj <sbalraj at juniper dot net> Notes: svn path=/head/; revision=223488
* | | Change sparc64 to use the initial exec TLS model, too. This avoids randomMarius Strobl2011-06-211-1/+1
| | | | | | | | | | | | | | | | | | | | | assertion failures in _malloc_thread_cleanup(). Notes: svn path=/head/; revision=223369