summaryrefslogtreecommitdiffstats
path: root/lib/libcompat
Commit message (Collapse)AuthorAgeFilesLines
* Small style(9) fix: use tabs instead of spaces.ed2010-08-081-8/+8
|
* Remove unneeded functions from libcompat.ed2010-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.
* mdoc: order prologue macros consistently by Dd/Dt/Osuqs2010-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)
* Trim down libcompat by removing <regexp.h>.ed2010-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.
* Small style(9) cleanups.ed2010-03-135-10/+13
|
* Add warnings to <regexp.h> and <sys/timeb.h>.ed2010-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.
* Build lib/ with WARNS=6 by default.ed2010-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.
* K&R -> ANSIdelphij2009-06-233-10/+5
|
* Add a missing parameter to ruserpass(). According to C99 6.9.1p7rdivacky2009-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)
* Turn sgtty into a binary-only compatibility interface.ed2008-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)
* Remove California Regent's clause 3, per letterimp2007-01-0910-40/+6
|
* Expand contractions.ru2005-02-132-2/+2
|
* NODOCCOMPRESS -> NO_DOCCOMPRESSru2004-12-211-1/+1
| | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE
* Mechanically kill hard sentence breaks.ru2004-07-023-4/+7
|
* mdoc(7): Use the new feature of the .In macro.ru2003-09-082-2/+2
|
* Axe AINC.ru2003-07-011-1/+0
| | | | Submitted by: bde
* Add section number with .Xr. .Xr -> .Vt changes.charnier2003-06-081-4/+4
|
* The .Fn functioncharnier2003-03-242-6/+9
|
* Consistently mark std(in|out|err) with .Dv, because that's how theyru2002-12-041-4/+4
| | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re
* mdoc(7) police: formatting nits.ru2002-11-291-1/+1
| | | | Approved by: re
* - Remove the lsearch() and lfind() functions and their manpage fromrobert2002-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.
* - Remove the old insque() and remque() functions and their manualrobert2002-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.
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-283-20/+0
| | | | Submitted by: keramida
* mdoc(7) police: fixed the whatis entry.ru2002-05-181-1/+1
|
* Remove 'register' keyword.obrien2002-03-216-65/+81
|
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-018-9/+9
|
* mdoc(7) police: expand plain text xrefs.ru2001-08-083-3/+8
|
* mdoc(7) police:ru2001-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.
* Remove whitespace at EOL.dd2001-07-159-32/+32
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-104-4/+4
|
* MAN[1-9] -> MAN.ru2001-03-271-5/+5
|
* mdoc(7) police: prepare for mdocNG.ru2001-02-281-1/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-013-3/+3
|
* Prepare for mdoc(7)NG.ru2000-12-294-9/+7
|
* Remove text saying "this is available from the compatibility library,ben2000-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
* mdoc(7) police: Nm -> Fn where appropriate.ru2000-11-202-10/+18
|
* Remove fullstops from the end of .Xr lines in SEE ALSO section.ben2000-11-152-2/+2
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-106-6/+2
|
* Return an error instead of overflowing the buffer in the case of a longkris2000-08-041-0/+4
| | | | $HOME in ruserpass()
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-023-3/+6
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Aargh, the $FreeBSD$ check caused an inconsistent commit by rejectingbde1999-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.
* Removed vlimit.3 and vtimes.3. Removed vlimit.c and vtimes.c frombde1999-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.
* $Id$ -> $FreeBSD$peter1999-08-2819-19/+19
|
* Bad reference to exit(2) changed to exit(3).chris1999-08-141-2/+2
|
* Various cleanups.green1999-07-191-6/+6
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-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
* Correct typo.jkoshy1999-01-271-1/+2
| | | | | PR: docs/9597 Submitted by: Christoph Kukulies <kuku@FreeBSD.ORG>
* Cleanup. Make it compile on alpha.dima1998-11-101-17/+0
|
* Change ${MACHINE} into ${MACHINE_ARCH} to support MACHINE=pc98.kato1998-09-091-11/+11
|
* Move ftok() from libcompat to libc, so that it can be closer to itsjdp1998-06-103-138/+1
| | | | | | friend shmget(). PR: closes misc/6763
OpenPOWER on IntegriCloud