aboutsummaryrefslogtreecommitdiff
path: root/lib/libcompat/4.3
Commit message (Collapse)AuthorAgeFilesLines
* lib: Remove ancient SCCS tags.Warner Losh2023-11-274-8/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-162-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Use __SCSSID() for SCCS IDs.John Baldwin2018-06-102-9/+4
| | | | | | | | 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
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-202-1/+5
| | | | | | | | | | | | | | | | | 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-284-4/+4
| | | | | | | | | | | | 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
* 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
* 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
* Remove unneeded functions from libcompat.Ed Schouten2010-08-062-93/+0
| | | | | | | | | 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
* Trim down libcompat by removing <regexp.h>.Ed Schouten2010-03-142-40/+35
| | | | | | | | | | | | | | | | | | 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-131-0/+1
| | | | Notes: svn path=/head/; revision=205125
* K&R -> ANSIXin LI2009-06-232-8/+4
| | | | 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
* Remove California Regent's clause 3, per letterWarner Losh2007-01-095-20/+6
| | | | Notes: svn path=/head/; revision=165906
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131504
* 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-162-200/+0
| | | | | | | | | | | | 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-163-205/+0
| | | | | | | | | | | | 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
* Remove 'register' keyword.David E. O'Brien2002-03-213-3/+9
| | | | Notes: svn path=/head/; revision=92913
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-012-2/+2
| | | | Notes: svn path=/head/; revision=84306
* Remove whitespace at EOL.Dima Dorfman2001-07-154-15/+15
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-102-2/+2
| | | | Notes: svn path=/head/; revision=79531
* 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-291-1/+1
| | | | Notes: svn path=/head/; revision=70481
* Remove text saying "this is available from the compatibility library,Ben Smithurst2000-11-215-5/+12
| | | | | | | | | | | | 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
* Remove fullstops from the end of .Xr lines in SEE ALSO section.Ben Smithurst2000-11-151-1/+1
| | | | Notes: svn path=/head/; revision=68751
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-102-2/+0
| | | | Notes: svn path=/head/; revision=68575
* Return an error instead of overflowing the buffer in the case of a longKris Kennaway2000-08-041-0/+4
| | | | | | | $HOME in ruserpass() Notes: svn path=/head/; revision=64243
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* $Id$ -> $FreeBSD$Peter Wemm1999-08-285-5/+5
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-124-0/+4
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Correct typo.Joseph Koshy1999-01-271-1/+2
| | | | | | | | PR: docs/9597 Submitted by: Christoph Kukulies <kuku@FreeBSD.ORG> Notes: svn path=/head/; revision=43267
* "Fixed" prototype bugs in synopsis.Bruce Evans1997-04-131-2/+4
| | | | Notes: svn path=/head/; revision=24884
* Fixed missing #include in synopsis.Bruce Evans1997-04-131-0/+1
| | | | Notes: svn path=/head/; revision=24883
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Sort cross references.Wolfram Schneider1997-01-201-1/+1
| | | | Notes: svn path=/head/; revision=21907
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-125-0/+6
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Add a short man page for cfree(3), in order to hint people about its life in ↵Joerg Wunsch1995-11-241-0/+49
| | | | | | | libcompat. Notes: svn path=/head/; revision=12466
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8870
* The implementation of rexec() missed the function ruserpass(), so theJoerg Wunsch1995-04-112-3/+252
| | | | | | | | | | | | | | | | | | link stage fell over for any program that attempted to use rexec(). Ruserpass() remains undocumented; i could not find any documentation for it on other systems. Also added a BUGS section to the man page, stating that this function constitutes a potential security hole (as well as the underlying "exec" service). Submitted by: rgrimes Originally submitted by: agc@uts.amdahl.com (Alistair G. Crooks) Obtained from: netbsd-bugs@NetBSD.ORG Notes: svn path=/head/; revision=7764
* My libcompat cleanup.Joerg Wunsch1995-04-102-0/+7
| | | | | | | | | | | | | | | | | | o add missing man pages o make all man pages clearly refer to the libcompat thingie o add the information to the vtimes(3) and vlimit(3) man pages that nobody has reimplemented the functions by now o add the missing getpw.c o add code and man pages for cftime(3) and ascftime(3) -- i found them somewhere in old unfinished work Notes: svn path=/head/; revision=7742
* add a couple of missing #include linesPoul-Henning Kamp1995-03-192-0/+3
| | | | Notes: svn path=/head/; revision=7151
* Add sanity check for "no previous regular expression" state,Andrey A. Chernov1994-09-141-1/+4
| | | | | | | bringed by 'more' Notes: svn path=/head/; revision=2768
* Fix bug with searching "" pattern, cause 'more' always showsAndrey A. Chernov1994-09-141-1/+1
| | | | | | | next line on "/<Enter>" instead of searching next pattern Notes: svn path=/head/; revision=2764
* This is James da Silva at the University of Maryland at College Park'sRodney W. Grimes1994-05-271-0/+92
| | | | | | | regex.c code as picked up from the net. Notes: svn path=/cvs2svn/branches/UofM_at_CP/; revision=1578
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-279-0/+818
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573