summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Updated dependenciessjg2014-05-16212-319/+508
|
* New depssjg2014-05-141-0/+14
|
* Updated dependenciessjg2014-05-10105-0/+212
|
* Merge from headsjg2014-05-0862-119/+209
|\
| * Fix the rd_event_addr prototype and slightly clarify the use of the "event"markj2014-05-081-3/+3
| | | | | | | | | | | | parameter. MFC after: 3 days
| * Handle the different event types properly in rd_event_addr(). In particular,markj2014-05-082-10/+40
| | | | | | | | | | | | | | | | with r265456 _r_debug_postinit can be used for RD_POSTINIT events. rtld(1) uses r_debug_state for dl state transitions, so we use its address for RD_DLACTIVITY events. MFC after: 2 weeks
| * msync(2) must return ENOMEM and not EINVAL when the address is outside thepho2014-05-071-5/+7
| | | | | | | | | | | | | | | | | | | | | | allowed range or when one or more pages are not mapped. This according to The Open Group Base Specifications Issue 7. Discussed with: attilio, Bruce Evans Reviewed by: alc, Garrett Cooper Reported by: ATF MFC after: 2 weeks Sponsored by: EMC / Isilon storage division
| * Sort .ALLSRC before concatenating files together. This makes sure that thedelphij2014-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | file are always built the same. (Note that Header and Localstuff must appear first and in that order, the sorting does not affect as a coincident effect). Submitted by: sjg MFC after: 3 days
| * Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-0641-37/+42
| | | | | | | | from the latter.
| * Revert r265367:pfg2014-05-051-1/+1
| | | | | | | | | | | | | | | | Use of calloc instead of malloc in regex (from OpenBSD). In this case the change makes no sense since we are using realloc() later. Reported by: ache
| * regex: Use calloc instead of malloc.pfg2014-05-051-1/+1
| | | | | | | | | | | | | | Mostly to reduce differences with OpenBSD. Obtained from: OpenBSD (CVS rev. 1.17) MFC after: 3 days
| * If the traced process stops because it received a signal, libproc needsmarkj2014-05-043-24/+30
| | | | | | | | | | | | to ensure that the signal is forwarded when proc_continue() is called. MFC after: 3 weeks
| * Fix a typo.markj2014-05-031-1/+1
| | | | | | | | MFC after: 3 days
| * Allow "a.out" as an alias for the executable if no other matching entriesmarkj2014-05-034-19/+63
| | | | | | | | | | | | | | are found. This improves compatibility with Solaris' libproc and fixes a number of failing DTrace tests that rely on this feature. MFC after: 3 weeks
| * Properly free resources in case of error.brueffer2014-05-021-8/+6
| | | | | | | | | | | | CID: 1007032 Found with: Coverity Prevent(tm) MFC after: 2 weeks
| * regex: Remove some unreachable breaks.pfg2014-05-012-7/+1
| | | | | | | | | | | | | | | | | | This is based on a much bigger cleanup done in Illumos. Reference: https://www.illumos.org/issues/2077 MFC after: 1 week
| * citrus: Avoid invalid code points.pfg2014-05-011-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | From the OpenBSD log: The UTF-8 decoder should not accept byte sequences which decode to unicode code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF. http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 http://unicode.org/faq/utf_bom.html#utf8-4 Reported by: Stefan Sperling Obtained from: OpenBSD MFC after: 5 days
| * Don't forget to remember previous element at the end of the loop.pjd2014-04-301-0/+1
| | | | | | | | | | | | Reported by: brueffer Found with: Coverity Prevent(tm) CID: 1135301
| * citrus: Avoid invalid code points.pfg2014-04-291-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | From the OpenBSD log: The UTF-8 decoder should not accept byte sequences which decode to unicode code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF. http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 http://unicode.org/faq/utf_bom.html#utf8-4 Reported by: Stefan Sperling Obtained from: OpenBSD MFC after: 5 days
| * Allow a virtual machine to be forcibly reset or powered off. This is doneneel2014-04-282-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | by adding an argument to the VM_SUSPEND ioctl that specifies how the virtual machine should be suspended, viz. VM_SUSPEND_RESET or VM_SUSPEND_POWEROFF. The disposition of VM_SUSPEND is also made available to the exit handler via the 'u.suspended' member of 'struct vm_exit'. This capability is exposed via the '--force-reset' and '--force-poweroff' arguments to /usr/sbin/bhyvectl. Discussed with: grehan@
| * Set the new floating point exception mask correctlyandrew2014-04-281-1/+1
| | | | | | | | Submitted by: Keith White <kwhite@site.uottawa.ca>
* | New/updated dependenciessjg2014-05-058-48/+591
| |
* | Merge headsjg2014-04-28122-4548/+3344
|\ \ | |/
| * r261913 broke DES passwords, because the only way they could work,des2014-04-261-77/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since they don't have an easily recognizable signature, was if they were the default. This commit rewrites crypt_set_format(3) etc to address this: - Use a pointer instead of an index to identify the default format. This pointer is initialized at compile time to point to the first first element in the list of supported formats, eliminating the need for crypt_setdefault(). Using a pointer also simplifies iterating through the list. - Associate DES with the magic string "_", which takes care of the Extended DES format. - Finally, as a special case, if the salt does not match any known magic string but matches ^[./0-9A-Za-z]{13}$, it is assumed to be a DES password and is passed on to crypt_des(). MFC after: 1 week
* | Merge headsjg2014-04-27750-47700/+16122
|\ \ | |/
| * Spell NO_PROFILE= as MK_PROFILE=no.imp2014-04-256-7/+8
| |
| * Kill last remaining NO_INSTALLLIB in tree by converting it over toimp2014-04-251-1/+1
| | | | | | | | MK_INSTALLIB=no.
| * Eliminate last vestigies of NO_MAN= in the tree. Also, removeimp2014-04-251-1/+2
| | | | | | | | ineffectual NOMAN= lines. These don't change the build at all.
| * libc/stdio: Fail fdopen() on an execute-only fd.jilles2014-04-212-3/+5
| | | | | | | | | | | | | | | | | | An execute-only fd (opened with O_EXEC) allows neither read() nor write() and is therefore incompatible with all stdio modes. Therefore, the [EINVAL] error applies. Also adjust the similar check in freopen() with a NULL path, even though this checks an fd which is already from a FILE.
| * Rename the fp{get,set}* files so they no longer conflict with the softfloatandrew2014-04-217-2/+2
| | | | | | | | | | version of these files. Keep them within this directory so they can be used to implement the armv6 version of these functions.
| * Add the deprecated fp{get,set}* functions, a few ports use them.andrew2014-04-207-0/+304
| |
| * Add a missing break in the TCP case.brueffer2014-04-171-0/+1
| | | | | | | | | | Reviewed by: bms MFC after: 1 week
| * Remove the libkse directory. It was unhooked from the build and kernelbrooks2014-04-16179-27209/+0
| | | | | | | | | | | | | | support removed in 2008 (prior to 8.0). Approved by: deischen, imp MFC after: 3 days
| * Correct sorting.brueffer2014-04-151-1/+1
| |
| * Mention Capsicum.brueffer2014-04-151-1/+7
| | | | | | | | MFC after: 1 week
| * Add support for emulating the slave PIC.tychon2014-04-141-1/+1
| | | | | | | | | | Reviewed by: grehan, jhb Approved by: grehan (co-mentor)
| * Fix err() usage in libcapsicum(3) example.gjb2014-04-141-2/+2
| | | | | | | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
| * Fix some off-by-one errors. The kve_end and rdl_eaddr fields contain themarkj2014-04-141-3/+3
| | | | | | | | | | | | | | first address after the end of the map entry and should therefore be excluded. MFC after: 2 weeks
| * realpath(): Properly fail "." or ".." components after non-directories.jilles2014-04-131-20/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | If realpath() is called on pathnames like "/dev/null/." or "/dev/null/..", it should fail with [ENOTDIR]. Pathnames like "/dev/null/" already failed as they should. Also, put the check for non-directories after lstatting the previous component instead of when the empty component (consecutive or trailing slashes) is detected, saving an lstat() call and some lines of code. PR: kern/82980 MFC after: 2 weeks
| * NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-1310-12/+12
| | | | | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
| * Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0hselasky2014-04-112-0/+5
| | | | | | | | | | | | APIs to increase the maximum bandwidth limit. MFC after: 1 week
| * Fix table alignment. EVFILT_PROCDESC is longer than the existing filters.ed2014-04-071-1/+1
| |
| * Implement kqueue(2) for procdesc(4).ed2014-04-072-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kqueue(2) already supports EVFILT_PROC. Add an EVFILT_PROCDESC that behaves the same, but operates on a procdesc(4) instead. Only implement NOTE_EXIT for now. The nice thing about NOTE_EXIT is that it also returns the exit status of the process, meaning that we can now obtain this value, even if pdwait4(2) is still unimplemented. Notes: - Simply reuse EVFILT_NETDEV for EVFILT_PROCDESC. As both of these will be used on totally different descriptor types, this should not clash. - Let procdesc_kqops_event() reuse the same structure as filt_proc(). The only difference is that procdesc_kqops_event() should also be able to deal with the case where the process was already terminated after registration. Simply test this when hint == 0. - Fix some style(9) issues in filt_proc() to keep it consistent with the newly added procdesc_kqops_event(). - Save the exit status of the process in pd->pd_xstat, as we cannot pick up the proctree_lock from within procdesc_kqops_event(). Discussed on: arch@ Reviewed by: kib@
| * Add support for UDP-Lite protocol (RFC 3828) to IPv4 and IPv6 stacks.kevlo2014-04-071-0/+5
| | | | | | | | | | | | | | | | Tested with vlc and a test suite [1]. [1] http://www.erg.abdn.ac.uk/~gerrit/udp-lite/files/udplite_linux.tar.gz Reviewed by: jhb, glebius, adrian
| * Move definitions out of rpc_com so that the linker doesn't complain abouttheraven2014-04-062-2/+5
| | | | | | | | | | | | multiple definitions. Reported by: sbruno
| * lib: Remove duplicate SUBDIR libnv.jilles2014-04-051-1/+0
| | | | | | | | | | With SUBDIR_PARALLEL, duplicates in ${SUBDIR} cause harmless but verbose warnings.
| * Accept RFC 2292 option values so that RFC 2292 compliant programs thatmarcel2014-04-051-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are unaware of RFC 3542 can construct control messages. The kernel disallows mixing RFC 2292 behaviour with RFC 3542 behaviour. Only sockets that have specifically been marked as using the RFC 2292 API can use RFC 2292 specific options. This is all good and well, but libc itself seems inconsistent with this. The root cause of this inconsistency seems to relate to the definitions of IPV6_HOPOPTS and IPV6_DSTOPTS. They are defined in RFC 2292 and re-used in RFC 3542, yet have distinct values in the kernel. It's for this reason that the kernel also has definitions for IPV6_2292HOPOPTS and IPV6_2292DSTOPTS. Not so in libc. For example: some program calls inet6_option_init() (defined by RFC 2292) with the RFC 2292 defined IPV6_HOPOPTS and IPV6_DSTOPTS. Before RFC 3542, this was translated to values of 22 and 23 (resp.) The libc implementation correctly checks that only options IPV6_HOPOPTS and IPV6_DSTOPTS are given (as per RFC 2292) but since these defines have taken on the values defined by RFC 3542 (values 49 and 50 resp,) rejects the correct option values (22 and 23) passed said program and returns -1. The precisie fix is to have inet6_option_init() and friends only accept the RFC 2292 defined IPV6_HOPOPTS & IPV6_DSTOPTS, but that breaks other code (like mld6query(8)), which seem to not be aware of RFC 3542 and how it hi-jacked the option names. So the best fix is to accept the options from both. Obtained from: Juniper Networks, Inc. MFC after: 1 week
| * The getlogin_basic() function can return a 0 status with a NULLmarcel2014-04-051-3/+8
| | | | | | | | | | | | | | | | | | pointer for the login name (result). Make sure to handle that case properly. Improve robustness by checking namelen and then nul-terminating the provided buffer to simplify subsequent logic. Obtained from: Juniper Networks, Inc. MFC after: 1 week
| * Convert from WITHOUT_SYSCALL_COMPAT to MK_SYSCALL_COMPAT.imp2014-04-0510-10/+10
| |
| * The proper way to request no man pages currently is NO_MAN=xxx. Use itimp2014-04-054-4/+4
| | | | | | | | | | in preference to the user WITHOUT_MAN knob, which should never be set in normal src Makefiles.
OpenPOWER on IntegriCloud