aboutsummaryrefslogtreecommitdiff
path: root/lib/libcompat
Commit message (Collapse)AuthorAgeFilesLines
* 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
* mdoc(7) police: Nm -> Fn where appropriate.Ruslan Ermilov2000-11-202-10/+18
| | | | Notes: svn path=/head/; revision=68946
* Remove fullstops from the end of .Xr lines in SEE ALSO section.Ben Smithurst2000-11-152-2/+2
| | | | Notes: svn path=/head/; revision=68751
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-106-6/+2
| | | | 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-023-3/+6
| | | | | | | | 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
* Aargh, the $FreeBSD$ check caused an inconsistent commit by rejectingBruce Evans1999-12-221-2/+3
| | | | | | | | | | | | | | this makefile update which should have been together with the file removal. Removed vlimit.3 and vtimes.3. Removed vlimit.c and vtimes.c from the "MISSING" list. These were old variants of get/setrlimit() and getrusage(), respectively, and were never implemented in FreeBSD. vlimit.3 referred to <sys/vlimit.h> which was removed recently. vtimes.3 referred to <sys/vtimes.h> which never existed in FreeBSD. Notes: svn path=/head/; revision=54999
* Removed vlimit.3 and vtimes.3. Removed vlimit.c and vtimes.c fromBruce Evans1999-12-222-270/+0
| | | | | | | | | | the "MISSING" list. These were old variants of get/setrlimit() and getrusage(), respectively, and were never implemented in FreeBSD. vlimit.3 referred to <sys/vlimit.h> which was removed recently. vtimes.3 referred to <sys/vtimes.h> which never existed in FreeBSD. Notes: svn path=/head/; revision=54998
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2819-19/+19
| | | | Notes: svn path=/head/; revision=50476
* Bad reference to exit(2) changed to exit(3).Chris Costello1999-08-141-2/+2
| | | | Notes: svn path=/head/; revision=49759
* Various cleanups.Brian Feldman1999-07-191-6/+6
| | | | Notes: svn path=/head/; revision=48904
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-1210-0/+10
| | | | | | | | | | | | | | | | | | | | 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
* Cleanup. Make it compile on alpha.Dima Ruban1998-11-101-17/+0
| | | | Notes: svn path=/head/; revision=41045
* Change ${MACHINE} into ${MACHINE_ARCH} to support MACHINE=pc98.KATO Takenori1998-09-091-11/+11
| | | | Notes: svn path=/head/; revision=38996
* Move ftok() from libcompat to libc, so that it can be closer to itsJohn Polstra1998-06-103-138/+1
| | | | | | | | | friend shmget(). PR: closes misc/6763 Notes: svn path=/head/; revision=36859