summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-04-152-2/+5
|\
| * MFC r297475:brooks2016-04-131-1/+3
| | | | | | | | | | | | | | Document KTRFAC_FAULT and KTRFAC_FAULTEND. Obtained from: CheriBSD (9d70f563f1b033e6a9b51eaf3b145a8cbbc6617c) Sponsored by: DARPA, AFRL
| * MFC r297626:bdrewery2016-04-131-1/+2
| | | | | | | | | | Follow-up r295924: Only sync hash-based db files open for writing when closing.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-04-114-11/+24
|\ \ | |/
| * MFC r297557:ache2016-04-111-1/+1
| | | | | | | | SJIS encoding don't have single byte characters >= 224
| * MFC r287753: setuid(2): Suggest O_CLOEXEC instead of fcntl(F_SETFD).jilles2016-04-091-7/+2
| |
| * MFC r295384: semget(2): Add missing [EINVAL] conditions.jilles2016-04-081-1/+12
| | | | | | | | PR: 206927
| * MFC r296278:pfg2016-03-311-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | mbtowc(3): set errno to EILSEQ if an incomplete character is passed. According to POSIX, The mbtowc() function shall fail if: [EILSEQ] An invalid character sequence is detected. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D5496 Obtained from: OpenBSD (Ingo Schwarze)
* | Merge remote-tracking branch 'origin/stable/10' into develLuiz Otavio O Souza2016-03-301-1/+1
|\ \ | |/
| * MFC r296095:pfg2016-03-271-1/+1
| | | | | | | | | | | | | | | | rpc: fix failure to clear string by passing the wrong size to memset. Noted by NetBSD's PR/21014 Obtained from: NetBSD (CVS Rev. 1.24, 1.25)
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-03-144-8/+15
|\ \ | |/
| * MFC r295416:bdrewery2016-03-121-1/+1
| | | | | | | | Fix the gcc build after r295407.
| * MFC r268620,r294876,r294877:bdrewery2016-03-121-6/+3
| | | | | | | | | | | | | | | | | | r268620: Make generation of nslexer.c more robust. r294876: nslexer.c does not depend on nsparser.h. r294877: Replace nslexer.l->nslexer.c custom rule with a -D CFLAG.
| * MFC r295407:kib2016-03-123-2/+12
| | | | | | | | Make libc __pthread_map_stacks_exec() interposed.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-03-071-1/+5
|\ \ | |/
| * MFC:dwmalone2016-03-061-1/+5
| | | | | | | | | | | | | | | | | | r295924: Make sure that hash-based db files fsync befor closing/syncing. r295925: We no longer need O_SYNC pwd_mkd r295465: We no longer need O_SYNC on services_mkdb r295800: We no longer need O_SYNC on cap_mkdb This should improve the performance of building db files.
* | Revert "Import patch from https://reviews.freebsd.org/D5186"Renato Botelho2016-03-071-5/+1
| | | | | | | | This reverts commit 3882f7f0612f5660c6287cfa1ba025f2843a1957.
* | Import patch from https://reviews.freebsd.org/D5186Renato Botelho2016-02-151-1/+5
| | | | | | | | | | This is a new approach to fix pfSense ticket #4523. The fix we had in place works but makes the process really slow for big user databases.
* | Merge remote-tracking branch 'origin/stable/10' into develLuiz Otavio O Souza2016-02-091-1/+6
|\ \ | |/
| * MFC r294597:wblock2016-02-061-1/+6
| | | | | | | | | | | | Add a standards compliance note for strtok_r Approved by: re (marius@)
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-02-032-15/+37
|\ \ | |/
| * MFC r294691:sobomax2016-01-301-8/+16
| | | | | | | | | | | | Fix readpassphrase(3) when it's called with stdin being closed. Approved by: re (delphij)
| * MFC r294515:brooks2016-01-281-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix the implementations of PSEUDO_NOERROR and PSEUDO. The PSEUDO* macros should not declare <syscall>, only _<syscall> and __sys_<syscall>. This was causing the interposing C wrappers to be ignored due to link order. Reviewed by: kib Obtained from: CheriBSD (4e8e13c90fc6a80e1520de44a6864cfd78b3b56d) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D4097
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-02-011-1/+3
|\ \ | |/
| * MFC r294565: sem: Don't free nameinfo that is still in list when open()jilles2016-01-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | fails. This bug could be reproduced easily by calling sem_open() with O_CREAT | O_EXCL on a semaphore that is already open in the process. The struct sem_nameinfo would be freed while still in sem_list and later calls to sem_open() or sem_close() could access freed memory. PR: 206396
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-273-11/+28
|\ \ | |/
| * MFC r294694:tuexen2016-01-271-2/+7
| | | | | | | | sctp_sendx() needs to provide the assoc_id back.
| * MFC r294688:tuexen2016-01-271-0/+7
| | | | | | | | sctp_sendv() needs to fill in the association id on return.
| * MFH (r291197): markup fixesdes2016-01-261-3/+9
| |
| * Revert r279010:pfg2016-01-261-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | tdelete(3): don't delete the node we are about to return. The original change, from NetBSD, was bogus; introduced a memory leak and and broke POSIX. By reverting we actually match NetBSD's latest revision. This is a direct commit to 10 since this function was rewritten in 11-current. Reported by: Markiyan Kushnir Obtained from: NetBSD (CVS rev. 1.7, 1.8)
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-2510-15/+24
|\ \ | |/
| * MFC r294234: utimensat(2): Correct description of [EINVAL] error.jilles2016-01-211-3/+6
| |
| * MFC r293856:brooks2016-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | Avoid reading pass the end of the source buffer when it is not NUL terminated. If this buffer is adjacent to an unmapped page or a version of C with bounds checked is used this may result in a crash. PR: 206178 Submitted by: Alexander Cherepanov <cherepan@mccme.ru>
| * MFC r293855:brooks2016-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | Avoid reading pass the end of the source buffer when it is not NUL terminated. If this buffer is adjacent to an unmapped page or a version of C with bounds checked is used this may result in a crash. PR: 206177 Submitted by: Alexander Cherepanov <cherepan@mccme.ru>
| * Default __MAKE_SHELL to /bin/sh when generating aton_ether_subr.c viangie2016-01-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | `gen_ether_subr`. __MAKE_SHELL is only defined when installworld is run on stable/10, which breaks workflows dealing with source trees mounted with noexec [*] This is a direct commit to stable/10 Reported by: Mark Martinec <Mark.Martinec+freebsd@ijs.si> Sponsored by: EMC / Isilon Storage Division
| * MFC r293715:ngie2016-01-191-2/+2
| | | | | | | | | | | | | | | | | | | | Fix a mismerge from NetBSD in r162194 with `xdr_rpcb_entry_list_ptr(..)` This fixes the potential NULL pointer dereference properly, and also fixes memory leaks encountered in the process of iterating through `*rp`. Found by: Valgrind Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>
| * MFC r293705:ngie2016-01-181-2/+2
| | | | | | | | | | | | | | | | | | Similar to r293704, fix theoretical leak of netconfig(3) resources in __rpcbind_is_up(..) if getnetconfig(3) is partly successful in allocating resources, but not completely successful by moving the endnetconfig(3) call up before we return from the function if nconf == NULL. Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>
| * MFC r293704:ngie2016-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix theoretical leak of netconfig(3) resources in svcunix_create(..) In the event that the getconfig(3) call in svcunix_create is partly successful, some of the netconfig(3) resources allocated might be leaked if the call returns NULL as endnetconfig(3) wasn't called explicitly in that case. Ensure that the resources are fully cleaned up by going to the `done` label, which will call endnetconfig(3) for us. Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>
| * MFC r287619:tuexen2016-01-161-2/+0
| | | | | | | | | | | | | | | | | | Zero out a local variable also when PURIFY is not defined. This silence a warning brought up by valgrind whenever if_nametoindex is used. This was already discussed in PR 166483, but the code committed in r234329 guards the initilization with #ifdef PURIFY. Therefore, valgrind still complains. Since this code is not performance critical, always zero out the local variable to silence valgrind.
| * MFC r293783: futimens/utimensat: Use the new system calls.jilles2016-01-153-4/+10
| | | | | | | | | | | | | | | | | | Update the __FreeBSD_version check in lib/libc/sys/futimens.c and lib/libc/sys/utimensat.c. Before this, fallback code using futimes/futimesat/lutimes was used except when running on a sufficiently recent 11-current kernel. Also, update the history section in the man page.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-1313-111/+559
|\ \ | |/
| * MFC r287964:trasz2016-01-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Kernel part of reroot support - a way to change rootfs without reboot. Note that the mountlist manipulations are somewhat fragile, and not very pretty. The reason for this is to avoid changing vfs_mountroot(), which is (obviously) rather mission-critical, but not very well documented, and thus hard to test properly. It might be possible to rework it to use its own simple root mount mechanism instead of vfs_mountroot(). Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2698
| * MFC r285240:trasz2016-01-124-99/+2
| | | | | | | | | | | | | | Remove reboot.S (part of libc). It's not needed and was actually broken - returning 0 from reboot(2) resulted in SIGBUS. Sponsored by: The FreeBSD Foundation
| * MFC r277610 (by jillies):dchagin2016-01-096-0/+510
| | | | | | | | Add futimens and utimensat system calls.
| * MFC r291114: popen() requires check for fdopen() failurerpokala2016-01-091-10/+24
| | | | | | | | | | | | | | | | Move fdopen() up near other resource allocation like malloc(); do proper deallocation on failure later on in the function. Approved by: jhb Sponsored by: Panasas, Inc.
| * MFC r292047: RPC: populate local address for rendezvous transporter.stas2016-01-081-2/+16
| |
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-072-57/+0
|\ \ | |/
| * MFC r292719:ume2016-01-012-57/+0
| | | | | | | | | | Remove _gethostbynisname() and _gethostbynisaddr(). These functions used to be called from getipnodebyname().
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-12-3015-12/+5797
|\ \ | |/
| * MFC r292550, r292595:ume2015-12-291-12/+4
| | | | | | | | | | Simplify _map_v4v6_address(). We don't need to use a temporary buffer, here.
OpenPOWER on IntegriCloud