summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
| * Use ANSI C prototypes.rodrigc2015-09-201-69/+31
| | | | | | | | Eliminates gcc 4.9 warnings.
| * Add declaration to eliminate -Wmissing-prototypes warningrodrigc2015-09-201-0/+2
| |
| * Add declarations to netdb_private.h to eliminate -Wmissing-prototypes warnings.rodrigc2015-09-205-20/+20
| |
| * Add declarations to eliminate -Wmissing-prototypes warningsrodrigc2015-09-201-0/+10
| |
| * Define _NS_PRIVATE to make declarations visible.rodrigc2015-09-201-0/+1
| | | | | | | | This eliminates -Wmissing-prototypes warnings.
| * Add missing includes to eliminate -Wmissing-prototypes warningsrodrigc2015-09-202-0/+3
| |
| * Adding missing declarations to eliminate -Wmissing-prototypes warningsrodrigc2015-09-202-0/+6
| |
| * Add missing include to eliminate -Wmissing-prototypes warningrodrigc2015-09-201-0/+1
| |
| * Add declaration to eliminate -Wmissing-prototypes warningrodrigc2015-09-201-0/+1
| |
| * Add declarations to eliminate -Wmissing-prototypes warningsrodrigc2015-09-2018-0/+35
| |
| * Adding missing include to eliminate -Wmissing-prototypes warningrodrigc2015-09-201-0/+1
| |
| * Add declarations to eliminate -Wmissing-prototypes warningsrodrigc2015-09-203-0/+6
| |
| * Add declarations to eliminate -Wmissing-prototypes warnings.rodrigc2015-09-203-0/+15
| |
| * Add declaration to eliminate -Wmissing-prototypes warning.rodrigc2015-09-201-0/+2
| |
| * Add missing include to eliminate -Wmissing-prototypes warningsrodrigc2015-09-201-0/+2
| |
| * Add missing includes to eliminate -Wmissing-prototypes warningsrodrigc2015-09-205-0/+5
| |
| * Add PF_LOCAL support in getaddrinfo(3) and getnameinfo(3):hrs2015-09-204-78/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | - In a PF_LOCAL address, "hostname" must begins with '/' and "servname" is always NULL. All of ai_flags are ignored. - PF_UNSPEC matches PF_LOCAL. EAI_SERVICE is not returned to make AF-independent programming easier; "servname" is always ignored in PF_LOCAL. In practice, PF_INET* and PF_LOCAL are mutually-exclusive because a hostname which begins with '/' is invalid in PF_INET*. No domain name resolution is performed for a PF_LOCAL address. Differential Revision: https://reviews.freebsd.org/D3634
| * libc: Consistently call _ioctl() internally, not ioctl().jilles2015-09-191-1/+3
| |
| * There is no HP 300 support in FreeBSD anymore, so remove the obsoletedelphij2015-09-181-6/+1
| | | | | | | | | | | | | | | | BUGS section. While I'm there also bump Dd date. MFC after: 2 weeks
| * Kernel part of reroot support - a way to change rootfs without reboot.trasz2015-09-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 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(). Reviewed by: kib@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2698
| * Update META_MODE dependencies.bdrewery2015-09-171-0/+3
| |
| * Use unsigned variables in a few places.rodrigc2015-09-143-5/+6
| | | | | | | | Eliminates gcc 4.9 warnings.
| * Use ANSI C prototypes.rodrigc2015-09-149-110/+37
| | | | | | | | Eliminates gcc 4.9 warnings.
| * db/recno: Open with close-on-exec like btree and hash do.jilles2015-09-131-1/+1
| |
| * setuid(2): Suggest O_CLOEXEC instead of fcntl(F_SETFD).jilles2015-09-131-7/+2
| |
| * Remove the v_cache_min and v_cache_max sysctls. They are unused and havemarkj2015-09-111-9/+1
| | | | | | | | | | | | | | no effect. Reviewed by: alc Sponsored by: EMC / Isilon Storage Division
| * Zero out a local variable also when PURIFY is not defined.tuexen2015-09-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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. PR: 166483 Discussed with: eadler@ MFC after: 4 weeks
| * - Fix SIGSEGV when sa == NULL. NULL check in getnameinfo_inet()hrs2015-09-091-12/+8
| | | | | | | | | | | | | | | | did not work as expected. - Simplify afdl table lookup. MFC after: 3 days
| * Enable mincore_test on arm64, we now have a working pmap_mincore.andrew2015-09-081-3/+0
| | | | | | | | | | | | PR: 202307 Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
| * Make it possible to use acl_create_entry_np(3) to use first entry to antrasz2015-09-081-1/+1
| | | | | | | | | | | | | | | | empty ACL, and to append an entry to an ACL. Submitted by: sef@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Expose an interface to determine if an ACE is inherited.delphij2015-09-042-1/+3
| | | | | | | | | | | | | | Submitted by: sef Reviewed by: trasz MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3540
| * Fix acl_strip_np(3) breakage introduced in r279962.trasz2015-09-031-9/+11
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Fix the way acl_init(3) uses posix_memalign(3) - the latter doesn'ttrasz2015-09-031-1/+3
| | | | | | | | | | | | | | set errno. MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * - snprintf() returns at most size-1 of the chars printed intohrs2015-09-021-10/+6
| | | | | | | | | | | | | | | | the buffer. (n == hostlen) also means the buffer length was too short. - Use sdl->sdl_data only when (sdl->sdl_nlen > 0 && sdl->sdl_alen == 0) to prevent redundant output.
| * Fix t_spawnattr test for attributes handling by posix_spawn(3).kib2015-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Connect it to the build. The code assumed that SCHED_* constants form a contiguous set of numbers, remove the assumption by using schedulers[] array in get_different_scheduler(). This is no-op on FreeBSD, but improves code portability. The selection of different priority used the min/max priority range of the current scheduler class, instead of the priority to be changed to. The bug caused the test failure. Remove duplication of POSIX_SPAWN_SETSIGDEF flag and now unused duplications of MIN/MAX definitions. Reviewed by: jilles, pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3533
| * Use unsigned variable.rodrigc2015-09-011-1/+1
| | | | | | | | Eliminates gcc 4.9 compiler warning.
| * Use ANSI C prototypes.rodrigc2015-09-015-12/+12
| | | | | | | | Eliminates gcc 4.9 warnings.
| * Print sdl->sdl_data when sdl->sdl_nlen > 0 as link_ntoa(3) does.hrs2015-09-011-6/+18
| | | | | | | | MFC after: 1 week
| * Use correct function prototype for signal handler.rodrigc2015-09-011-2/+2
| | | | | | | | Eliminates gcc 4.9 warning.
| * Use ANSI C prototypes.rodrigc2015-09-011-21/+7
| | | | | | | | Eliminates gcc 4.9 warnings.
| * Mark unused parameters to reduce gcc 4.9 warnings.rodrigc2015-09-011-2/+2
| |
| * Use ANSI C prototypes.rodrigc2015-09-0115-395/+180
| | | | | | | | Eliminates gcc 4.9 warnings.
| * Include stdlib.h to get devname() prototype.rodrigc2015-08-311-0/+1
| | | | | | | | Eliminates -Wmissing-prototypes warnings with gcc
| * Fix a mistake in r287292. Despite correctly stating intent in thekib2015-08-301-2/+2
| | | | | | | | | | | | | | | | | | comment above, POSIX_SPAWN_SETSIGMASK and POSIX_SPAWN_SETSIGDEF handlers used libthr interposed functions instead of syscalls. Noted by: jilles Sponsored by: The FreeBSD Foundation MFC after: 6 days
| * Switch libc from using _sig{procmask,action,suspend} symbols, whichkib2015-08-2922-121/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are aliases for the syscall stubs and are plt-interposed, to the libc-private aliases of internally interposed sigprocmask() etc. Since e.g. _sigaction is not interposed by libthr, calling signal() removes thr_sighandler() from the handler slot etc. The result was breaking signal semantic and rtld locking. The added __libc_sigprocmask and other symbols are hidden, they are not exported and cannot be called through PLT. The setjmp/longjmp functions for x86 were changed to use direct calls, and since PIC_PROLOGUE only needed for functional PLT indirection on i386, it is removed as well. The PowerPC bug of calling the syscall directly in the setjmp/longjmp implementation is kept as is. Reported by: Pete French <petefrench@ingresso.co.uk> Tested by: Michiel Boland <boland37@xs4all.nl> Reviewed by: jilles (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week
| * Replace strndup with OpenBSD's implementation.delphij2015-08-261-33/+22
| | | | | | | | MFC after: 2 weeks
* | Merge from HEADbapt2015-08-2523-102/+218
|\ \ | |/
| * Make UTF-8 parsing and generation more strict.ed2015-08-251-1/+5
| | | | | | | | | | | | | | | | - in mbrtowc() we need to disallow codepoints above 0x10ffff. - In wcrtomb() we need to disallow codepoints between 0xd800 and 0xdfff. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D3399
| * Instead of doing an no-op (|= 0), actually clear the flags indelphij2015-08-241-1/+1
| | | | | | | | | | | | acl_clear_flags_np. MFC after: 2 weeks
| * Fix spelling.araujo2015-08-241-2/+1
| | | | | | | | | | | | Reviewed by: wblock, pfg Approved by: bapt (mentor) Differential Revision: D3380
OpenPOWER on IntegriCloud