aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
*-. Upgrade our copy of llvm/clang to trunk r178860, in preparation of theDimitry Andric2013-04-1260-139/+247
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upcoming 3.3 release (branching and freezing expected in a few weeks). Preliminary release notes can be found at the usual location: <http://llvm.org/docs/ReleaseNotes.html> An MFC is planned once the actual 3.3 release is finished. Notes: svn path=/head/; revision=249423
| | * Vendor import of clang trunk r178860:vendor/clang/clang-trunk-r178860Dimitry Andric2013-04-08468-30139/+56083
| | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/trunk@178860 Notes: svn path=/vendor/clang/dist/; revision=249261 svn path=/vendor/clang/clang-trunk-r178860/; revision=249262; tag=vendor/clang/clang-trunk-r178860
| * | Vendor import of llvm trunk r178860:vendor/llvm/llvm-trunk-r178860Dimitry Andric2013-04-081330-73958/+136718
| | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/trunk@178860 Notes: svn path=/vendor/llvm/dist/; revision=249259 svn path=/vendor/llvm/llvm-trunk-r178860/; revision=249260; tag=vendor/llvm/llvm-trunk-r178860
* | | Spelling correctionEd Maste2013-04-112-2/+2
| | | | | | | | | | | | Notes: svn path=/head/; revision=249381
* | | Add sbuf_start_section and sbuf_end_section to the libsbuf symbol map.Mikolaj Golub2013-04-112-0/+8
| | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=249378
* | | Remove EOL whitespace.Joel Dahl2013-04-111-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=249361
* | | Remove unused atomic headerEd Maste2013-04-111-1/+0
| | | | | | | | | | | | Notes: svn path=/head/; revision=249360
* | | Fix typo.Gleb Smirnoff2013-04-111-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=249358
* | | Include types.h for C99 uintXX_t types.Gleb Smirnoff2013-04-111-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=249355
* | | o Provide function kvm_read_zpcpu() to access UMA_ZONE_PCPU allocations.Gleb Smirnoff2013-04-104-7/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | o Provide function kvm_counter_u64_fetch() to fetch valut of a counter(9). Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=249344
* | | Remove the number of addresses restriction from sctp_connectx().Michael Tuexen2013-04-101-202/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused code. While there, do some cleanup of the code. MFC after: 1 week Notes: svn path=/head/; revision=249333
* | | swapcontext wrapper can not be implemented in C, the stack pointer saved inDavid Xu2013-04-101-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | the context becomes invalid when the function returns, same as setjmp, it must be implemented in assemble language, see discussions in PR misc/177624. Notes: svn path=/head/; revision=249323
* | | Fix declaration vs. definition inconsistency. No functional change.Jung-uk Kim2013-04-051-3/+3
| | | | | | | | | | | | Notes: svn path=/head/; revision=249177
* | | Correct the returned message lengths for timeval and bintime controlGeorge V. Neville-Neil2013-04-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | messages (SO_BINTIME, SO_TIMEVAL). Obtained from: phk Notes: svn path=/head/; revision=249166
* | | Replace access to /dev/random with the kernel pseudo-random numberXin LI2013-04-024-55/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source sysctl(KERN_ARND) and remove the fallback code. Obtained from: OpenBSD Reviewed by: secteam MFC after: 1 month Notes: svn path=/head/; revision=249035
* | | Fix return type of extattr_set_* and fix rmextattr(8) utility.Matthew D Fleming2013-04-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extattr_set_{fd,file,link} is logically a write(2)-like operation and should return ssize_t, just like extattr_get_*. Also, the user-space utility was using an int for the return value of extattr_get_* and extattr_list_*, both of which return an ssize_t. MFC after: 1 week Notes: svn path=/head/; revision=248995
* | | wordexp(): Remove wrong IFS usage.Jilles Tjoelker2013-04-011-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Words in shell script are separated by spaces or tabs independent of the value of IFS. The value of IFS is only relevant for the result of substitutions. Therefore, there should be a space between 'wordexp' and the words to be expanded, not an IFS character. Paranoia might dictate that the shell ignore IFS from the environment (even though our sh currently uses it), so do not depend on it in the new test case. Notes: svn path=/head/; revision=248987
* | | Remove EOL whitespace.Joel Dahl2013-03-292-156/+156
| | | | | | | | | | | | Notes: svn path=/head/; revision=248871
* | | Update hwpmc to support Haswell class processors.Sean Bruno2013-03-284-0/+1276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0x3C: /* Per Intel document 325462-045US 01/2013. */ Add manpage to document all the goodness that is available in this processor model. Submitted by: hiren panchasara <hiren.panchasara@gmail.com> Reviewed by: jimharris, sbruno Obtained from: Yahoo! Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=248842
* | | btowc(3), isblank(3): Correct prototypes for _l variants.Jilles Tjoelker2013-03-272-3/+3
| | | | | | | | | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=248803
* | | Update to 9.8.4-P2Erwin Lansing2013-03-275-7/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed the check for regex.h in configure in order to disable regex syntax checking, as it exposes BIND to a critical flaw in libregex on some platforms. [RT #32688] Security: CVE-2013-2266 Approved by: delphij (mentor) Sponsored by: DK Hostmaster A/S Notes: svn path=/head/; revision=248788
* | | | Add missing spaceBryan Venteicher2013-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=248783
* | | | accept(2): Mention inheritance of O_ASYNC and signal destination.Jilles Tjoelker2013-03-261-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While almost nobody uses O_ASYNC, and rightly so, the inheritance of the related properties across accept() is a portability issue like the inheritance of O_NONBLOCK. Notes: svn path=/head/; revision=248774
* | | | Compile contrib/tzcode/stdtime/localtime.c with -fwrapv, since it reliesDimitry Andric2013-03-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on signed integer overflow wrapping. Otherwise mktime(3) and timegm(3) can hang, in case the timestamp passed in struct tm is not representable in a time_t. Specifically, any timestamp after 2038-01-19 03:14:07, in combination with a 32-bit time_t. Note that it would be better to change the code to not rely on undefined behaviour, but it is contributed code, and it is not entirely trivial to fix the issue properly. MFC after: 3 days Notes: svn path=/head/; revision=248672
* | | | libdwarf: anonymous types are expected to have empty type names...Andriy Gapon2013-03-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or no type attributes at all. This is according to DWARF specification. MFC after: 13 days Notes: svn path=/head/; revision=248641
* | | | MFV r248590,248594:Martin Matuska2013-03-223-11/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.1.2 Some of new features: - support for lrzip and grzip compression - support for writing tar v7 format - b64encode and uuencode filters - support for __MACOSX directory in Zip archives - support for lzop compresion (external utility) Notes: svn path=/head/; revision=248616
* | | | Document chflagsat(2).Pawel Jakub Dawidek2013-03-213-3/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: jilles Notes: svn path=/head/; revision=248601
* | | | Implement chflagsat(2) system call, similar to fchmodat(2), but operates onPawel Jakub Dawidek2013-03-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | file flags. Reviewed by: kib, jilles Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=248599
* | | | - Make 'flags' argument to chflags(2), fchflags(2) and lchflags(2) of typePawel Jakub Dawidek2013-03-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | u_long. Before this change it was of type int for syscalls, but prototypes in sys/stat.h and documentation for chflags(2) and fchflags(2) (but not for lchflags(2)) stated that it was u_long. Now some related functions use u_long type for flags (strtofflags(3), fflagstostr(3)). - Make path argument of type 'const char *' for consistency. Discussed on: arch Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=248597
* | | | Allow O_CLOEXEC in posix_openpt() flags.Jilles Tjoelker2013-03-211-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: kern/162374 Reviewed by: ed Notes: svn path=/head/; revision=248593
* | | | Implement SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC.Jilles Tjoelker2013-03-193-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows creating file descriptors with close-on-exec set in some situations. SOCK_CLOEXEC and SOCK_NONBLOCK can be OR'ed in socket() and socketpair()'s type parameter, and MSG_CMSG_CLOEXEC to recvmsg() makes file descriptors (SCM_RIGHTS) atomically close-on-exec. The numerical values for SOCK_CLOEXEC and SOCK_NONBLOCK are as in NetBSD. MSG_CMSG_CLOEXEC is the first free bit for MSG_*. The SOCK_* flags are not passed to MAC because this may cause incorrect failures and can be done later via fcntl() anyway. On the other hand, audit is expected to cope with the new flags. For MSG_CMSG_CLOEXEC, unp_externalize() is extended to take a flags argument. Reviewed by: kib Notes: svn path=/head/; revision=248534
* | | | There are actually two different cases when mlock(2) returnsGleb Smirnoff2013-03-191-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ENOMEM. Clarify this, taking text from SUS. Reviewed by: kib Notes: svn path=/head/; revision=248489
* | | | Simplify the assignment of memory to virtual machines by requiring a singleNeel Natu2013-03-182-21/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command line option "-m <memsize in MB>" to specify the memory size. Prior to this change the user needed to explicitly specify the amount of memory allocated below 4G (-m <lowmem>) and the amount above 4G (-M <highmem>). The "-M" option is no longer supported by 'bhyveload' and 'bhyve'. The start of the PCI hole is fixed at 3GB and cannot be directly changed using command line options. However it is still possible to change this in special circumstances via the 'vm_set_lowmem_limit()' API provided by libvmmapi. Submitted by: Dinakar Medavaram (initial version) Reviewed by: grehan Obtained from: NetApp Notes: svn path=/head/; revision=248477
* | | | Add restrict keyword to realpath manpage.Kevin Lo2013-03-181-1/+1
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=248453
* | | | Add a note to the HISTORY section about lchflags(2) being introduced inPawel Jakub Dawidek2013-03-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD 5.0. Notes: svn path=/head/; revision=248391
* | | | Make this more compilable.Gleb Smirnoff2013-03-151-8/+7
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=248314
* | | | Update to the latest (un)vis(3) sources from NetBSD. This addsBrooks Davis2013-03-142-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multibyte support[0] and the new functions strenvisx and strsenvisx. Add MLINKS for vis(3) functions add by this and the initial import from NetBSD[1]. PR: bin/166364, bin/175418 Submitted by: "J.R. Oldroyd" <fbsd@opal.com>[0] stefanf[1] Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=248302
* | | | When pidptr was passed as NULL to pidfile_open(3), we were returningPawel Jakub Dawidek2013-03-141-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EAGAIN/EWOULDBLOCK when another daemon was running and had the pidfile open. We should return EEXIST in that case, fix it. Reported by: Dirk Engling <erdgeist@erdgeist.org> Reviewed by: jhb, Dirk Engling <erdgeist@erdgeist.org> MFC after: 1 week Notes: svn path=/head/; revision=248281
* | | | libc: Avoid SIGPIPE when nscd closes the connection unexpectedly.Jilles Tjoelker2013-03-131-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is almost always a bug if nscd closes the connection unexpectedly but programs should not be killed with SIGPIPE for it. Reviewed by: bushman Tested by: Jan Beich MFC after: 1 week Notes: svn path=/head/; revision=248252
* | | | Link getcontextx(3) to getcontext(3).Sergey Kandaurov2013-03-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: kib MFC after: 1 week Notes: svn path=/head/; revision=248251
* | | | Add the getcontextx prototype to SYNOPSIS.Sergey Kandaurov2013-03-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: kib MFC after: 1 week Notes: svn path=/head/; revision=248250
* | | | - Make the FreeBSD's USB library compile under Linux.Hans Petter Selasky2013-03-1314-30/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix a compile warning where the return value of a call to a write() function was ignored. - Remove redundant include files from userland USB header files. - Add some now needed include files to various C-files. Notes: svn path=/head/; revision=248236
* | | | Fix for quite a special case when userland emulates a netgraph node, andGleb Smirnoff2013-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | userland can reply to a message with NGM_HASREPLY bit set. In this case we should not wait for a response to a responce. PR: 176771 Submitted by: Keith Reynolds <keith.reynolds tidalscale.com> Notes: svn path=/head/; revision=248159
* | | | commit correct tested fix for gr_util.cDiane Bruce2013-03-091-46/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: theraven Notes: svn path=/head/; revision=248102
* | | | Garbage collect NWFS and NCP bits which are now completely disconnectedAttilio Rao2013-03-0918-4292/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the tree since few months. This patch is not targeted for MFC. Notes: svn path=/head/; revision=248097
* | | | Cleanup gr_add() so it does not leak memDiane Bruce2013-03-072-53/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of ongoing work on sbin/pw M libutil.h M gr_util.c Approved by: theraven Notes: svn path=/head/; revision=247919
* | | | Add __clzsi2 and ctzsi2. They are required on ARMv4 and ARMv5 to implementAndrew Turner2013-03-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | a number of builtin functions. Notes: svn path=/head/; revision=247912
* | | | Create a symlink from strchrnul.3 to strchr.3.Niclas Zeising2013-03-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was forgotten in the initial commit of strchrnul() Approved by: theraven Notes: svn path=/head/; revision=247899
* | | | Add a stub manpage modeled over the libexpat one to explain to users not to useBaptiste Daroussin2013-03-052-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this library outside of base. Requested by: simon Notes: svn path=/head/; revision=247840
* | | | Import libyaml as libbsdyml (private brand name)Baptiste Daroussin2013-03-043-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LibYAML is a YAML 1.1 parser and emitter under MIT license which will soon be used by the pkg boostrap (usr.bin/pkg) and bhyve Reviewed by: roberto, antoine Notes: svn path=/head/; revision=247779