aboutsummaryrefslogtreecommitdiff
path: root/lib/librt
Commit message (Collapse)AuthorAgeFilesLines
* pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot2019-09-051-1/+0
| | | | | | | | | | | | | The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-265-4/+14
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-312-2/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add HAS_TESTS to all Makefiles that are currently using theEnji Cooper2017-08-021-0/+1
| | | | | | | | | `SUBDIR.${MK_TESTS}+= tests` idiom. This is a follow up to r321912. Notes: svn path=/projects/make-check-sandbox/; revision=321914
* Convert traditional ${MK_TESTS} conditional idiom for including testEnji Cooper2017-08-021-3/+1
| | | | | | | | | | | | | | directories to SUBDIR.${MK_TESTS} idiom This is being done to pave the way for future work (and homogenity) in ^/projects/make-check-sandbox . No functional change intended. MFC after: 1 weeks Notes: svn path=/head/; revision=321912
* Implement SIGEV_THREAD notifications for lio_listio(2)Alan Somers2017-07-212-8/+40
| | | | | | | | | | | | | Our man pages have always indicated that this was supported, but in fact the feature was never implemented for lio_listio(2). Reviewed by: jhb, kib (earlier version) MFC after: 20 days Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D11680 Notes: svn path=/head/; revision=321332
* Remove some private symbols from librtAlan Somers2017-07-202-15/+0
| | | | | | | | | | | | | | | Private functions like __aio_read and _aio_read were exposed in FBSDprivate_1.0 by r169090, even though they've never been used outside of librt. Also, remove some weak references from r156136 that have never resolved. Reviewed by: kib MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D11649 Notes: svn path=/head/; revision=321295
* Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper2017-01-201-2/+2
| | | | | | | | | | This implifies pathing in make/displayed output MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312484
* Export the mq_getfd_np() symbol from librt.so, which allows to getKonstantin Belousov2016-10-023-2/+9
| | | | | | | | | | | | | | file descriptor for the given posix mqueue. Export the timer_oshandle_np() symbol to get ktimer id for the given posix timer. Requested by: Lewis Donzis <lew@perftech.com> Reviewed by: jilles Discussed with: kan Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=306588
* Fix aio system call wrappers in librt.John Baldwin2016-07-141-7/+15
| | | | | | | | | | | | | | | - Update aio_return/waitcomplete wrappers for the ssize_t return type. - Fix the aio_return() wrapper to fail with EINVAL on a pending job. This matches the semantics of the in-kernel system call. Also, aio_return() returns errors via errno, not via the return value. Reviewed by: kib (earlier version) MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7120 Notes: svn path=/head/; revision=302860
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedEnji Cooper2016-05-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=299094
* MFHGlen Barber2016-03-101-0/+22
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296625
| * DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-091-0/+22
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* | First pass through library packaging.Glen Barber2016-02-041-0/+1
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* | First pass to fix the 'tests' packages.Glen Barber2016-02-021-0/+4
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295171
* Unbreak symbol versioning. I have no idea when it was broken, but it's beenDaniel Eischen2015-11-292-1/+2
| | | | | | | at least a few months if not a year or more. Notes: svn path=/head/; revision=291439
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-1/+0
| | | | | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andEnji Cooper2015-10-121-6/+0
| | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison Notes: svn path=/head/; revision=289172
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-274-17/+5
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-194-0/+33
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2013-09-051-3/+4
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+4
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Build/install libc, librt, libthr, and msun NetBSD test suites on allEnji Cooper2015-04-273-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | architectures MFC after: 1 week Notes: svn path=/head/; revision=282057
* | | | Convert libraries to use LIBADDBaptiste Daroussin2014-11-252-4/+2
| |_|/ |/| | | | | | | | | | | | | | | | | While here reduce a bit overlinking Notes: svn path=/head/; revision=275024
* | | Add reachover Makefiles for contrib/netbsd-tests/lib/librtEnji Cooper2014-11-164-0/+33
| |/ |/| | | | | | | | | | | | | | | | | | | | | A variant of this code has been tested on amd64/i386 for some time by EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the code will remain off until it's proven it works on virtual hardware or real hardware on other architectures Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274580
* | Convert this piece of code to use C11 atomics.Ed Schouten2013-06-301-3/+4
|/ | | | | | | | | | As mentioned before, we should at least aim to have one piece of code in both user space and kernel space that uses C11 atomics, to get some coverage. This piece of code can be migrated trivially, so it's a good candidate. Notes: svn path=/head/; revision=252412
* Register signal 33 explicitly as reserved by real-time library, andRobert Millan2012-03-262-7/+5
| | | | | | | | | | use it by its new name (SIGLIBRT) rather than internal definition in librt (SIGSERVICE). Approved by: davidxu, arch Notes: svn path=/head/; revision=233519
* Free unused allocation on error.Konstantin Belousov2011-11-181-0/+2
| | | | | | | | Reported by: slonoman2011 yandex ru MFC after: 1 week Notes: svn path=/head/; revision=227661
* Fix the 32-bit build stage on amd64 when WITH_CTF is enabled. It seemsDimitry Andric2011-02-231-1/+1
| | | | | | | | | | | | ctfconvert will corrupt object files that are compiled with -g, if it is not run with -g itself. To fix it, remove -g from CFLAGS in lib/librt/Makefile. If you need to compile this library with debug info, use DEBUG_FLAGS=-g instead, which will work correctly, even when using WITH_CTF. Notes: svn path=/head/; revision=218984
* To support stack unwinding for cancellation points, add -fexceptions flagDavid Xu2010-09-252-14/+12
| | | | | | | | | | for them, two functions _pthread_cancel_enter and _pthread_cancel_leave are added to let thread enter and leave a cancellation point, it also makes it possible that other functions can be cancellation points in libraries without having to be rewritten in libthr. Notes: svn path=/head/; revision=213153
* Fixed dependencies (make checkdpadd).Ruslan Ermilov2010-02-251-1/+2
| | | | Notes: svn path=/head/; revision=204329
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Make following functions be cancellation points:David Xu2009-11-181-4/+55
| | | | | | | | | | mq_receive mq_send mq_timereceive mq_timedsend Notes: svn path=/head/; revision=199475
* link libpthread because the librt really needs it to fully function.David Xu2009-11-181-0/+1
| | | | Notes: svn path=/head/; revision=199469
* Fix compiler warnings.David Xu2009-11-181-2/+2
| | | | Notes: svn path=/head/; revision=199465
* atomic_fetchadd_int works on unsigned quantities - changeKip Macy2008-08-151-1/+1
| | | | | | | | | sigev_generation to be unsigned MFC after: 1 month Notes: svn path=/head/; revision=181778
* Enable symbol versioning by default. Use WITHOUT_SYMVER to disable it.Daniel Eischen2007-05-131-2/+0
| | | | | | | | | | | | | Warning, after symbol versioning is enabled, going back is not easy (use WITHOUT_SYMVER at your own risk). Change the default thread library to libthr. There most likely still needs to be a version bump for at least the thread libraries. If necessary, this will happen later. Notes: svn path=/head/; revision=169524
* Don't enable symbol versioning for librt by default just yet.Daniel Eischen2007-04-291-0/+2
| | | | Notes: svn path=/head/; revision=169098
* Symbol version librt.Daniel Eischen2007-04-292-0/+71
| | | | Notes: svn path=/head/; revision=169090
* Account for recent changes in namespace.h. Use _pthread_createDaniel Eischen2006-03-291-4/+4
| | | | | | | instead of pthread_create. Notes: svn path=/head/; revision=157242
* Implement SIGEV_THREAD notification for aio_fsync.David Xu2006-03-241-18/+55
| | | | Notes: svn path=/head/; revision=157078
* No need to define NO_MAN here.Ruslan Ermilov2006-03-151-1/+0
| | | | Notes: svn path=/head/; revision=156734
* Block all signals in helper threads except those should not be blocked.David Xu2006-03-101-6/+9
| | | | Notes: svn path=/head/; revision=156529