summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* MFC r216351:Tijl Coosemans2010-12-141-9/+30
| | | | | | | | | | | | Add a .note.ABI-tag section to ia64 startup files by linking crtbrand.c in crt1.o. On other architectures crtbrand.c is included from crt1.c, but that's not a C source code file on ia64. Instead it is compiled separately and included in crt1.o using incremental linking. Approved by: re (kensmith), kib (mentor) Notes: svn path=/stable/8/; revision=216433
* MFC r215450Andrew Thompson2010-11-281-5/+10
| | | | | | | | | | Correct description of the return values of the LibUSB v1.0 libusb_control_transfer() function. PR: usb/151851 Notes: svn path=/stable/8/; revision=215984
* MFC r215253Andrew Thompson2010-11-282-4/+11
| | | | | | | | | | | Fix LibUSB v1.0 compliancy. 1) We need to allow the USB callback to free the USB transfer itself. 2) The USB transfer buffer should only be automatically freed when freeing the USB transfer. Notes: svn path=/stable/8/; revision=215983
* MFC r213848Andrew Thompson2010-11-285-0/+39
| | | | | | | | | - Add a new API function to check the connected status of the USB handle in the LibUSB v1.0 and LibUSB v0.1 interfaces. Notes: svn path=/stable/8/; revision=215982
* Merge MIPS platform support to 8-STABLE.Jayachandran C.2010-11-2735-562/+722
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit merges the MIPS platform changes that was now stable in -CURRENT into 8-STABLE. The MIPS changesets are too many (~400) to list here. But the changesets merged in this commit that affect other platforms are summarized below: r204635 : (changes to sys/dev/hwpmc, lib/libpmc, sys/sys/pmc.h) Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. r205845: (changes to sys/modules/Makefile) Fix for building modules on mips and arm. r204031: (changes to sys/kern/link_elf_obj.c) printf fix, as part of kernel module support for MIPS. r206404: (changes to sys/arm/include/bus.h) Add BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the other platforms - for arm and mips. r206819: (changes to sys/vm/) Add VMFS_TLB_ALIGNED_SPACE option and kmem_alloc_nofault_space(), which is used to allocate kernel stack address on MIPS. r208165, r211087: (sys/kern/subr_smp.c, sys/kern/sched_ule.c) Enable ULE scheduler for MIPS, Fix for an issue in SMP when 32 cpus are enabled. r208659: (sys/{ia64/ia64,mips/mips,sun4v/sun4v}/pmap.c) Simplify the inner loop of get_pv_entry() r208794: (changes to sys/vm/) Make vm_contig_grow_cache() extern, and use it when vm_phys_alloc_contig() fails to allocate MIPS page table pages. r210327: (changes to sys/vm/) Support for MIPS page table page allocation. Add a new function 'vm_page_t vm_page_alloc_freelist(int flind, int order, int req)' to vm/vm_page.c to allocate a page from a specified freelist, and other related changes. Reviewed by: alc(vm changes only) Approved by: kib(re), alc(vm), imp(mips), jmallett(mips), gnn(mips pmc) Notes: svn path=/stable/8/; revision=215938
* MFC r215236:Xin LI2010-11-272-124/+130
| | | | | | | | | Sync with OpenBSD, primarily better signal and terminal handling. Obtained from: OpenBSD Notes: svn path=/stable/8/; revision=215934
* MFC r215133: amd64: introduce minidump version 2Andriy Gapon2010-11-261-14/+94
| | | | | | | | This should reduce size of the minidump. Compatibility with version 1 should be preserved in libkvm. Notes: svn path=/stable/8/; revision=215872
* MFC r215237: Fix bug in jn(3) and jnf(3) that led to -inf resultsUlrich Spörlein2010-11-232-2/+12
| | | | Notes: svn path=/stable/8/; revision=215757
* MFC r213700, r215187, r215515:Martin Matuska2010-11-233-9/+6
| | | | | | | | | | | | | | | | MFC r213700: Upgrade xz to git snapshot as of 20101010 MFC r215187: Update xz to release 5.0.0 MFC r215515 Remove obsoleted private symbol. Approved by: delphij (mentor) Notes: svn path=/stable/8/; revision=215737
* MFC r213853Andrew Thompson2010-11-194-22/+120
| | | | | | | | | | | | | | | | - Add missing LibUSB API functions: * libusb_strerror() * libusb_get_driver[_np]() * libusb_detach_kernel_driver[_np]() - Factor out setting of non-blocking flag inside libusb. - Add missing NULL check after libusb_get_device() call. - Correct some wrong error codes due to copy and paste error. PR: usb/150546 Submitted by: Robert Jenssen, Alexander Leidinger Notes: svn path=/stable/8/; revision=215546
* MFC r203815Andrew Thompson2010-11-1910-32/+36
| | | | | | | | Resort includes to match style(9) a bit more. No functional change is expected after this commit. Notes: svn path=/stable/8/; revision=215477
* MFC r203775Andrew Thompson2010-11-196-11/+1
| | | | | | | Remove redundand headers and use more standard ones where necessary. Notes: svn path=/stable/8/; revision=215476
* MFC r203774Andrew Thompson2010-11-191-7/+9
| | | | | | | | Use more standard way for setting nonblocking flag for a filedescriptor. This makes libusb porting a bit easier. Notes: svn path=/stable/8/; revision=215475
* MFC archive_file_count() utility function.Tim Kientzle2010-11-137-5/+42
| | | | Notes: svn path=/stable/8/; revision=215233
* Don't use basename_r().Rui Paulo2010-11-081-5/+5
| | | | Notes: svn path=/stable/8/; revision=214984
* MFC r210688 r210689 r210694 r211184 r212831 r210682 r210683 r210690 r209539Rui Paulo2010-11-0816-77/+1334
| | | | | | | | | | | | r210199 r210237 r210692 r210695 r210767 r210775 r210776 r211545 r211554 r211562 r212092 r212358 r212414 r212462 r212495 r210693 r211547 r211550 r211554 r211561 r211577 r210691 r210697 r211563 r211564 r211841 r211842 r211562 r212649 r211187 r211555: Userland DTrace MFC. This only includes the userland side of userland DTrace. Notes: svn path=/stable/8/; revision=214983
* MFC r210682, r210683, r210690:Rui Paulo2010-11-081-10/+5
| | | | | | | | | Build librtld_db. Simplify the Makefile. The i386 and amd64 sections are equal. libproc is going to be i386/amd64 only with the next update. Notes: svn path=/stable/8/; revision=214981
* MFC r210678, r210769:Rui Paulo2010-11-084-0/+581
| | | | | | | | librtld_db is an rtld debugging helper library used by userland DTrace. Notes: svn path=/stable/8/; revision=214978
* MFC 214585:Doug Barton2010-11-042-5/+22
| | | | | | | Prep for the 9.6-ESV-R2 update Notes: svn path=/stable/8/; revision=214810
* MFC r209689:Konstantin Belousov2010-11-036-3/+71
| | | | | | | | Extend the td_thrinfo_t to include siginfo for the signal that stopped the target. Notes: svn path=/stable/8/; revision=214759
* MFC r209873:Konstantin Belousov2010-11-031-4/+20
| | | | | | | Document pl_siginfo and PT_FLAG_SI for PT_LWPINFO. Notes: svn path=/stable/8/; revision=214758
* MFC r208513:Konstantin Belousov2010-11-031-3/+58
| | | | | | | | Improve the documentation for PT_LWPINFO. Note that some features are not implemented on MIPS and ARM. Notes: svn path=/stable/8/; revision=214757
* MFC 214434:Jamie Gritton2010-11-031-10/+4
| | | | | | | | Find a jail's type as part of jailparam_init rather than waiting until it's absolutely necessary. Notes: svn path=/stable/8/; revision=214747
* MFC r212906:Edward Tomasz Napierala2010-11-011-6/+26
| | | | | | | | | | First step at adopting FreeBSD to support PSARC/2010/029. This makes acl_is_trivial_np(3) properly recognize the new trivial ACLs. From the user point of view, that means "ls -l" no longer shows plus signs for all the files when running ZFS v28. Notes: svn path=/stable/8/; revision=214626
* MFC r212376:Edward Tomasz Napierala2010-11-011-0/+9
| | | | | | | | | | | | Add minor optimization. It's less strict than its kernel counterpart due to upcoming ACL changes required by the new ZFS. MFC r212379: Fix previous commit. Notes: svn path=/stable/8/; revision=214624
* MFC r213453: When no protocol entry is found, getproto*_r(3)Hajimu UMEMOTO2010-10-303-3/+3
| | | | | | | should return zero. Notes: svn path=/stable/8/; revision=214548
* MFC r213403: Clear errno for each method dispatch.Hajimu UMEMOTO2010-10-301-0/+2
| | | | Notes: svn path=/stable/8/; revision=214547
* MFC: 209760Randall Stewart2010-10-261-0/+5
| | | | | | | | | If a user calls sctp_sendx() with a NULL sinfo we will crash. Instead we should provide our own temp structure to use internally. Notes: svn path=/stable/8/; revision=214391
* MFC r214147:Benedict Reuschling2010-10-261-2/+1
| | | | | | | | | | | Sync with OpenBSD rev. 1.13: strtonum does not require limits.h Obtained from: OpenBSD Discussed with: ru@ Notes: svn path=/stable/8/; revision=214379
* MFC r213241, r213257:David Xu2010-10-265-192/+165
| | | | | | | | | | | | In current code, statically initialized and destroyed object have same null value, the code can not distinguish between them, to fix the problem, now a destroyed object is assigned to a non-null value, and it will be rejected by some pthread functions. PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP is changed to number 1, so that adaptive mutex can be statically initialized correctly. Notes: svn path=/stable/8/; revision=214371
* MFC r213235 by emaste:Attilio Rao2010-10-251-1/+1
| | | | | | | | | Increase maximum network timeout from 20s to 120s. Sponsored by: Sandvine Incorporated Notes: svn path=/stable/8/; revision=214361
* MFC r213326: libc: Remove the i386 assembler version of strlen(3).Jilles Tjoelker2010-10-192-55/+1
| | | | | | | | | | | | | | On anything modern, the C version, which processes a word at a time, is much faster. The Intel optimization manual explicitly warns against using REP prefixes with SCAS or CMPS, which is exactly what the assembler version does. A simple test on a Phenom II showed the C version, compiled with -O2, to be about twice as fast determining the length of 100000 strings between 0 and 255 bytes long. Notes: svn path=/stable/8/; revision=214086
* MFC of r207830Edwin Groothuis2010-10-191-0/+8
| | | | | | | | | | | | | | | | | strptime(3) confused July with June with the fr_FR locale. When parsing the month "juillet" (abbr "jul"), %B recognized it as "juin" (abbr "jui") because the full name of the month names is checked at the same time as the abbrevation. The new behaviour checks the full names first before checking the abbrevation names. PR: kern/141939 Submitted by: Denis Chatelain <denis@tikuts.com> Notes: svn path=/stable/8/; revision=214079
* MFC r213451:Ed Maste2010-10-191-4/+10
| | | | | | | | Handle null return from XML_ParserCreate and fix a few memory leaks on error conditions. Notes: svn path=/stable/8/; revision=214055
* MFC r213476:Konstantin Belousov2010-10-132-1/+11
| | | | | | | | | | | Add cross-references to lrand48(3) and arc4random(3) from rand(3) and random(3). MFC r213477: Missed space. Notes: svn path=/stable/8/; revision=213773
* MFC 205021:John Baldwin2010-10-1212-39/+22
| | | | | | | | | | | | - Use an initializer macro to initialize fields in 'fake' FILE objects used by *sprintf(), etc. - Explicitly initialize _fl_mutex to PTHREAD_MUTEX_INITIALIZER for all FILE objects. This is currently a nop on FreeBSD, but is import for other platforms (or in the future) where PTHREAD_MUTEX_INITIALIZER is not simply zero. Notes: svn path=/stable/8/; revision=213720
* MFC 213402:George V. Neville-Neil2010-10-112-33/+33
| | | | | | | Fix punctuation and grammar, mostly by ending sentences with a period. Notes: svn path=/stable/8/; revision=213692
* MFC r212373:Kai Wang2010-10-101-11/+6
| | | | | | | | | | | | | | | | libelf is overly strict about the type and alignment of Elf_Data objects inside one ELF section, which prevents the creation of a ELF section with mixed data types. For example, gcc LTO use libelf to create a .gnu_lto_XXX section that contains integers and a string table, which doesn't work with our libelf implementation. The changes made in this commit include: * Allow Elf_Data type to be different than section type. * Relax Elf_Data alignment check. * Align each Elf_Data by their own alignment instead of section alignment. Notes: svn path=/stable/8/; revision=213670
* - Add liblzma support to libarchive and usr.bin/tarMartin Matuska2010-10-101-6/+10
| | | | | | | | | | | | - Do not link usr.bin/ar to liblzma if building bootstrap-tools and the local system doesn't include liblzma (fixes world build on FreeBSD 7.x) This is a direct commit. Approved by: delphij (mentor) Notes: svn path=/stable/8/; revision=213667
* MFC r203958: %U was macroized in mdoc(7), escape.Ruslan Ermilov2010-10-063-3/+3
| | | | Notes: svn path=/stable/8/; revision=213473
* MFC r202454,202457,202458,202586,207842,207844,208099:Xin LI2010-10-064-1/+55
| | | | | | | | Expose stripesize and stripeoffset via kernel sysctl as well as userland library and the geom(8) utility. Notes: svn path=/stable/8/; revision=213467
* MFC Revision: 213042Maksim Yevmenkin2010-09-291-0/+4
| | | | | | | | | | | Add the following Linux BlueZ compatibility macros: htobs(), htobl(), btohs() and btohl() PR: kern/136386 Submitted by: Monty Hall < kungfu_disciple at sbcglobal dot net > Notes: svn path=/stable/8/; revision=213276
* Revert r213002.Rui Paulo2010-09-264-33/+13
| | | | Notes: svn path=/stable/8/; revision=213184
* MFC r211393 (des):Xin LI2010-09-241-1/+1
| | | | | | | | | | | | In setusercontext(), do not apply user settings unless running as the user in question (usually but not necessarily because we were called with LOGIN_SETUSER). This plugs a hole where users could raise their resource limits and expand their CPU mask. Approved by: des Notes: svn path=/stable/8/; revision=213144
* MFC r197804 (rwatson):Rui Paulo2010-09-224-13/+33
| | | | | | | | | | | | | Add basename_r(3) to complement basename(3). basename_r(3) which accepts a caller-allocated buffer of at least MAXPATHLEN, rather than using a global buffer. Note about semantics: while this interface is not POSIXy, there's another major platform that uses it (Android) and the semantics between the two platforms are pretty much the same. Notes: svn path=/stable/8/; revision=213002
* MFC r212224:Fabien Thomas2010-09-161-4/+4
| | | | | | | | Fix invalid class removal when IAF is not the last class. Keep IAF class with 0 PMC and change the alias in libpmc to IAP. Notes: svn path=/stable/8/; revision=212740
* MFC: r212125, r212126Rick Macklem2010-09-161-2/+742
| | | | | | | | | | | | | | | Modify lib/libstand/nfs.c to use NFSv3 instead of NFSv2. This allows the nfs_getrootfh() function to return the correct file handle size to pxe.c for pxeboot. It also results in NFSv2 no longer being used by default anywhere in FreeBSD. If built with OLD_NFSV2 defined, the old code that predated this patch will be built and NFSv2 will be used. pxe.c is also modified to use this version of nfs_getrootfh() so that pxeboot will use NFSv3 and work for non-FreeBSD as well as FreeBSD NFS servers. Notes: svn path=/stable/8/; revision=212717
* MFC 212269.Glen Barber2010-09-131-1/+3
| | | | | | | | | Add ECONNRESET to connect(2). Approved by: keramida (mentor) Notes: svn path=/stable/8/; revision=212564
* MFC r211748:Konstantin Belousov2010-09-073-4/+22
| | | | | | | | | Move the __stack_chk_fail_local@FBSD_1.0 compat symbol definition into the separate .o for libc_pic.a. This prevents rtld from making the symbol global. Notes: svn path=/stable/8/; revision=212290
* MFC r211743:Konstantin Belousov2010-09-071-57/+0
| | | | | | | Remove unused source. Notes: svn path=/stable/8/; revision=212289