freebsd-skq/lib
Konstantin Belousov ca5e4fe970 Invalidate the cache for the named posix semaphore when opened and
actual file storing the semaphore object is different from the file
created on the first open.  Store the file st_dev and st_ino members
of the struct stat in the semaphore structure on open, and compare
them with the attributes of the opened file to detect unlink and
re-creation.

This fixes an issue of sem_unlink(3) failing to flush the named entry
in the semaphore list for the current or remote process, making
sem_unlink(3) not correctly operating if the unlinked semaphore is
still opened.

Reported by:	Joris Giovannangeli <joris@giovannangeli.fr>
PR:	standards/189353
Reviewed by:	jilles (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2014-05-10 19:08:07 +00:00
..
atf Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
clang Eliminate EARLY_BUILD flag. It is redundant and means MK_CLANG_FULL=no 2014-05-10 16:38:03 +00:00
csu
libalias
libarchive Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libauditd NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
libbegemot
libblocksruntime
libbluetooth
libbsdstat libbsdstat: fix warnings, set WARNS 2014-03-11 01:10:44 +00:00
libbsm
libbsnmp Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libbz2
libc Invalidate the cache for the named posix semaphore when opened and 2014-05-10 19:08:07 +00:00
libc_nonshared Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libc++ Import libc++ 3.4 release. This contains a lot of bugfixes, and some 2014-01-30 07:44:22 +00:00
libcalendar
libcam
libcapsicum Don't forget to remember previous element at the end of the loop. 2014-04-30 09:58:28 +00:00
libcasper Update most userspace consumers of capability.h to use capsicum.h instead. 2014-03-16 11:04:44 +00:00
libcom_err
libcompat
libcompiler_rt Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libcrypt Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libcxxrt Add missing C++11 typeinfos to the libcxxrt version script. 2014-01-11 19:02:17 +00:00
libdevinfo
libdevstat Fix a typo. 2013-12-25 19:38:16 +00:00
libdwarf Bump SHLIB_MAJOR for libdwarf as ABI/API has changed. 2014-01-21 21:11:07 +00:00
libedit Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
libefi
libelf Bump SHLIB_MAJOR for libelf. 2014-01-21 21:13:13 +00:00
libexecinfo
libexpat
libfetch Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libgeom
libgpib
libgssapi
libiconv Split the last gcc-specific flags off into CFLAGS.gcc. This also 2014-01-05 21:03:49 +00:00
libiconv_modules Spell NO_PROFILE= as MK_PROFILE=no. 2014-04-25 19:25:26 +00:00
libipsec Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libjail
libkiconv Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libkvm Add a new ARM TARGET_ARCH, armv6hf. This is considered experimental. 2014-03-23 12:49:25 +00:00
libldns
liblzma
libmagic Sort .ALLSRC before concatenating files together. This makes sure that the 2014-05-06 21:30:58 +00:00
libmandoc Merge mdocml v1.12.3 into head 2014-02-01 09:27:57 +00:00
libmd Dereference nonexistent md2(3) manual. 2014-03-28 04:19:06 +00:00
libmemstat Expose real size of UMA allocations via libmemstat(3). 2014-02-10 20:09:10 +00:00
libmilter Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libmp
libnandfs
libnetbsd
libnetgraph make sure that rbuf is aligned by making a union w/ the structure we 2014-01-07 23:01:05 +00:00
libngatm
libnv libnv: Don't lose big-endian flag when receiving a message. 2014-04-01 21:30:54 +00:00
libopie
libpam Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libpcap Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libpjdlog
libpmc Update hwpmc to support core events for Atom Silvermont microarchitecture. 2014-03-20 20:51:08 +00:00
libproc Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libprocstat Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libradius Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
librpcsec_gss Spell NO_PROFILE= as MK_PROFILE=no. 2014-04-25 19:25:26 +00:00
librpcsvc Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
librt
librtld_db Fix the rd_event_addr prototype and slightly clarify the use of the "event" 2014-05-08 03:33:54 +00:00
libsbuf
libsdp
libsm Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libsmb Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libsmdb
libsmutil
libstand Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libstdbuf
libstdthreads
libtacplus
libtelnet Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libthr Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libthread_db
libucl Update to 20140321 2014-03-22 17:28:14 +00:00
libufs
libugidfw
libulog Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libunbound
libusb Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0 2014-04-11 14:11:55 +00:00
libusbhid
libutil Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libvgl
libvmmapi Allow a virtual machine to be forcibly reset or powered off. This is done 2014-04-28 22:06:40 +00:00
libwrap Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
liby
libypclnt
libz Add a manual page for zopen(3) provided by our libz.so. 2014-03-06 00:25:21 +00:00
msun Only build the vfp/softfp switching code on armv6 as we don't support vfp 2014-03-16 09:40:05 +00:00
ncurses Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
tests
Makefile Sprinkle a few more .WAITs into the mix after csu, libc, msun and the 2014-05-10 16:39:00 +00:00
Makefile.inc