Guillem Jover
e13b1a337a
Import strtoi() and strtou() functions from NetBSD
2018-05-21 04:47:28 +02:00
Guillem Jover
a4dd754c8d
man: Ship and install libbsd(7)
...
Fixes: https://bugs.freedesktop.org/101543
2017-06-24 16:08:27 +02:00
Guillem Jover
0071b97958
Import <sys/time.h> for some of its macros
...
Fixes: https://bugs.freedesktop.org/94320
2017-06-19 03:17:21 +02:00
Guillem Jover
ab5db68bae
build: Add missing \ at end of line
...
Fixes: commit 934b7a0ccbdc60313102f153eadc2f46853a505b
2017-06-19 03:03:23 +02:00
Guillem Jover
6a5a515820
man: Add missing man pages
...
This adds man pages for byteorder(3), errc(3) and fpurge(3), including
all their aliases.
2017-06-09 05:40:28 +02:00
Guillem Jover
934b7a0ccb
man: Add missing aliases
2017-06-07 05:07:55 +02:00
Guillem Jover
f20e6972b3
man: Move all man pages to section 3bsd
...
This should guarantee that even if the system provides or will provide
native implementations of these functions, we will not have file
conflicts.
2017-06-06 04:37:56 +02:00
Guillem Jover
f3b115540c
man: Rename funopen.3 to funopen.3bsd to avoid clash with funtools
...
The funtools project ships a man page with the same, name. And although
it mith probably make more sense to rename the man page there, as BSD
systems will certainly not do so, this is the easiest and fastest way
to avoid a file conflict.
2015-11-30 23:48:50 +01:00
Guillem Jover
45443583df
Add explicit_bzero() function from OpenBSD
2015-09-24 05:47:58 +02:00
Guillem Jover
a6fe103c1b
Add new man page for reallocarray(3)
...
Import man page from OpenBSD.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85622
2015-09-23 07:14:24 +02:00
Guillem Jover
36aca8c06e
Add stringlist module from NetBSD
2014-07-17 05:11:00 +02:00
Guillem Jover
e8f9300355
Add getbsize() function
...
Import code from DragonFlyBSD and man page from FreeBSD.
2014-07-15 10:57:42 +02:00
Guillem Jover
f41fdcf186
Add funopen() function
...
This is a wrapper over the glibc fopencookie() function.
We diverge from the FreeBSD, OpenBSD and DragonFlyBSD declarations,
because seekfn() there wrongly uses fpos_t, assuming it's an integral
type, and any code using that on a system where fpos_t is a struct
(such as GNU-based systems or NetBSD) will fail to build. In which case,
as the code has to be modified anyway, we might just as well use the
correct declaration.
2013-10-21 05:35:44 +02:00
Guillem Jover
a97ce513e0
Add new fgetwln() function
...
Man page taken from FreeBSD.
2013-05-27 02:49:28 +02:00
Strake
ee0489eb2b
Add new fparseln() function
...
Taken from NetBSD.
[guillem@hadrons.org:
- Import from NetBSD instead of FreeBSD to get a 3-clause BSD license,
instead of a 4-clause one.
- Define compatibility macros.
- Change library from libc to libbsd and header in man page.
- Add copyright information to COPYING.
- Add symbol to map file. ]
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2013-05-27 02:47:32 +02:00
Guillem Jover
1be0bdb2c9
Add new strnstr() function
...
Taken from FreeBSD.
2013-05-27 02:12:43 +02:00
Guillem Jover
ff0d700df0
Add new wcslcat() and wcslcpy() functions
...
Taken from FreeBSD.
2013-05-27 02:11:59 +02:00
Guillem Jover
1b5b1cd52a
Move mdX.3 man page to section 3bsd
...
This makes sure there will be no collisions on systems where a mdX.3
provided by a third party is already present.
2012-05-29 04:51:45 +02:00
Guillem Jover
7cfa7e4304
Add new man page for tree(3)
...
Taken from FreeBSD.
2012-05-29 04:51:34 +02:00
Guillem Jover
08139dd50e
Add new man pages for bitstring(3) and queue(3)
...
Taken from FreeBSD.
2012-05-29 04:51:16 +02:00
Guillem Jover
d90ce079f7
Add new man pages for getprogname(3) and setprogname(3)
...
Taken from FreeBSD.
2012-05-29 04:51:16 +02:00
Guillem Jover
c1d086c224
Add new man page for setproctitle(3)
...
Taken from FreeBSD.
2012-05-29 04:51:16 +02:00
Robert Millan
6434858314
Add new expand_number() function
...
Taken from FreeBSD.
[guillem@hadrons.org:
- Include <stdint.h> in <bsd/libutil.h>. ]
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2012-05-29 04:50:55 +02:00
Guillem Jover
943939d0e5
Add new closefrom() function
...
Code taken from sudo, man page from FreeBSD.
2012-05-29 04:36:23 +02:00
Guillem Jover
dcaa93d984
build: Switch to autotools
2012-05-29 04:35:55 +02:00