aboutsummaryrefslogtreecommitdiff
path: root/lib/libcompat
Commit message (Collapse)AuthorAgeFilesLines
* ftime appeared in 7th Edition Unix to replace gtime.Warner Losh2018-10-281-5/+4
| | | | | | | Note that the timezone and dst entries are always returned as 0. Notes: svn path=/head/; revision=339832
* Use __SCSSID() for SCCS IDs.John Baldwin2018-06-105-16/+8
| | | | | | | | While here, fix $FreeBSD$ ID in ftime.c to use __FBSDID instead of a static array. Notes: svn path=/head/; revision=334911
* libcompat: Use %hu for unsigned shorts.Pedro F. Giffuni2018-02-101-1/+1
| | | | | | | Obtained from: DragonFlyBSD (git 82e1476a) Notes: svn path=/head/; revision=329102
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-1/+3
| | | | | | | | | | | | | | | 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
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-203-1/+7
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. 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. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-286-6/+6
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper2017-01-201-1/+1
| | | | | | | | | | This simplifies pathing in make/displayed output MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312502
* Fix Coverity CID 978183 Resource leak in rexec().Don Lewis2016-05-251-0/+1
| | | | | | | | | | | Close the socket if connect() fails to avoid leaking it. Reported by: Coverity CID: 978183 MFC after: 1 week Notes: svn path=/head/; revision=300664
* rexec(3): use NULL instead of zero for pointers.Pedro F. Giffuni2016-04-181-5/+5
| | | | Notes: svn path=/head/; revision=298207
* First pass through library packaging.Glen Barber2016-02-041-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge sync of headSimon J. Gerraty2015-05-271-4/+4
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * 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
* | rexec(3): prevent uninitialized access to "port" variable.Pedro F. Giffuni2015-02-161-4/+4
|/ | | | | | | CID: 1018716 (and clang static checker) Notes: svn path=/head/; revision=278867
* Small style(9) fix: use tabs instead of spaces.Ed Schouten2010-08-081-8/+8
| | | | Notes: svn path=/head/; revision=211061
* Remove unneeded functions from libcompat.Ed Schouten2010-08-068-439/+4
| | | | | | | | | Erwin fired up a ports build a couple of weeks ago and it seems the following functions are not used by any of the 20k ports we have, which makes me believe they don't have any purpose. Just remove them. Notes: svn path=/head/; revision=210958
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-04-142-2/+2
| | | | | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors) Notes: svn path=/head/; revision=206622
* Trim down libcompat by removing <regexp.h>.Ed Schouten2010-03-1410-1930/+39
| | | | | | | | | | | | | | | | | | Erwin ran an exp-run with libcompat and <regexp.h> removed. It turns out the regexp library is almost entirely unused. In fact, it looks like it is sometimes used by accident. Because these function names clash with libc's <regex.h>, some application use both <regex.h> and libcompat, which means they link against the wrong regex library. This commit removes the regexp library and reimplements re_comp() and re_exec() using <regex.h>. It seems the grammar of the regular expressions accepted by these functions is similar to POSIX EREs. After this commit, 1 low-profile port will be broken, but the maintainer already has a patch for it sitting in his mailbox. Notes: svn path=/head/; revision=205146
* Small style(9) cleanups.Ed Schouten2010-03-135-10/+13
| | | | Notes: svn path=/head/; revision=205125
* Add warnings to <regexp.h> and <sys/timeb.h>.Ed Schouten2010-03-091-1/+1
| | | | | | | | | | | | These header files only provide functionality that can be used in combination with libcompat. In order to prevent people from including them without any actual use (which happens a lot with <sys/timeb.h>), put a warning here to make people more aware. This means we have to lower WARNS for libcompat, which is no big deal. Notes: svn path=/head/; revision=204926
* 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
* K&R -> ANSIXin LI2009-06-233-10/+5
| | | | Notes: svn path=/head/; revision=194793
* Add a missing parameter to ruserpass(). According to C99 6.9.1p7Roman Divacky2009-02-261-2/+4
| | | | | | | | | | K&R function is not a prototype but this is a bad style. GCC accepts this other compilers warn or reject this. Approved by: kib (mentor) Notes: svn path=/head/; revision=189077
* Turn sgtty into a binary-only compatibility interface.Ed Schouten2008-06-144-201/+2
| | | | | | | | | | | | | | | | | | | sgtty was the original interface to configure terminal attributes on my UNIX-like operating systems. It has been deprecated by the POSIX termios interface, which is implemented in almost any modern system. An advantage of turning this into a binary compatibility interface, is that we can now eventually remove the COMPAT_43TTY switch from kernel configurations. This removes many ioctl()'s from the TTY layer. While there, increase the __FreeBSD_version, which may be useful for the people working on the Ports tree. Reviewed by: kib Approved by: philip (mentor) Notes: svn path=/head/; revision=179784
* Remove California Regent's clause 3, per letterWarner Losh2007-01-0910-40/+6
| | | | Notes: svn path=/head/; revision=165906
* Expand contractions.Ruslan Ermilov2005-02-132-2/+2
| | | | Notes: svn path=/head/; revision=141851
* NODOCCOMPRESS -> NO_DOCCOMPRESSRuslan Ermilov2004-12-211-1/+1
| | | | | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE Notes: svn path=/head/; revision=139106
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-023-4/+7
| | | | Notes: svn path=/head/; revision=131504
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-082-2/+2
| | | | Notes: svn path=/head/; revision=119893
* Axe AINC.Ruslan Ermilov2003-07-011-1/+0
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=117120
* Add section number with .Xr. .Xr -> .Vt changes.Philippe Charnier2003-06-081-4/+4
| | | | Notes: svn path=/head/; revision=116026
* The .Fn functionPhilippe Charnier2003-03-242-6/+9
| | | | Notes: svn path=/head/; revision=112541
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-041-4/+4
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* mdoc(7) police: formatting nits.Ruslan Ermilov2002-11-291-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107387
* - Remove the lsearch() and lfind() functions and their manpage fromRobert Drehmel2002-10-163-203/+2
| | | | | | | | | | | | the compatibility library libcompat. - Add new implementations of lsearch() and lfind() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and add them to the makefile. - Add function prototypes for lsearch() and lfind() to the search.h header. Notes: svn path=/head/; revision=105250
* - Remove the old insque() and remque() functions and their manualRobert Drehmel2002-10-164-208/+1
| | | | | | | | | | | | page from the compatibility library. - Add new implementations of insque() and remque() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and connect them to the build. - Add the prototypes of insque() and remque() to the search.h header. Notes: svn path=/head/; revision=105245
* Assume __STDC__, remove non-__STDC__ code.Alfred Perlstein2002-05-283-20/+0
| | | | | | | Submitted by: keramida Notes: svn path=/head/; revision=97407
* mdoc(7) police: fixed the whatis entry.Ruslan Ermilov2002-05-181-1/+1
| | | | Notes: svn path=/head/; revision=96862
* Remove 'register' keyword.David E. O'Brien2002-03-216-65/+81
| | | | Notes: svn path=/head/; revision=92913
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-018-9/+9
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police: expand plain text xrefs.Ruslan Ermilov2001-08-083-3/+8
| | | | Notes: svn path=/head/; revision=81285
* mdoc(7) police:Ruslan Ermilov2001-08-071-4/+2
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Remove whitespace at EOL.Dima Dorfman2001-07-159-32/+32
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-104-4/+4
| | | | Notes: svn path=/head/; revision=79531
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-5/+5
| | | | Notes: svn path=/head/; revision=74870
* mdoc(7) police: prepare for mdocNG.Ruslan Ermilov2001-02-281-1/+1
| | | | Notes: svn path=/head/; revision=73223
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-013-3/+3
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-294-9/+7
| | | | Notes: svn path=/head/; revision=70481
* Remove text saying "this is available from the compatibility library,Ben Smithurst2000-11-2111-12/+24
| | | | | | | | | | | | libcompat" in favour of a .Sh LIBRARY section using the .Lb macro. Also add .Bf -symbolic around the text saying "this is obsolete" in re_comp.3. PR: 22675 Submitted by: Mike Meyer <mwm@mired.org> Reviewed by: sheldonh Notes: svn path=/head/; revision=68994