]>
git.ipfire.org Git - thirdparty/libbsd.git/log
Guillem Jover [Fri, 17 Dec 2010 09:50:56 +0000 (10:50 +0100)]
Add getpeereid function
Aurelien Jarno [Fri, 30 Jul 2010 06:00:41 +0000 (08:00 +0200)]
Add reallocf function
Guillem Jover [Sun, 31 Jan 2010 13:13:24 +0000 (14:13 +0100)]
build: Use proper user variables during build
To compile we need to use CPPFLAGS and CFLAGS, to link CFLAGS and
LDFLAGS. Rename MK_CFLAGS to MK_CPPFLAGS as those are only relevant
at compilation time.
Reported-by: Eric Smith <eric@brouhaha.com>
Guillem Jover [Sat, 30 Jan 2010 21:43:29 +0000 (22:43 +0100)]
build: Use new AR variable instead of hardcoded command
Guillem Jover [Sat, 30 Jan 2010 21:42:00 +0000 (22:42 +0100)]
build: Refactor COMPILER and LINK commands into new variables
Guillem Jover [Sat, 30 Jan 2010 21:40:01 +0000 (22:40 +0100)]
build: Use CCLD instead of hardcoded gcc for linking
Guillem Jover [Sat, 30 Jan 2010 21:39:18 +0000 (22:39 +0100)]
build: By default set CC to gcc
Eric Smith [Sat, 30 Jan 2010 21:13:18 +0000 (22:13 +0100)]
build: Install shared library with 755 permission
The Makefile should install the shared library with 755 permission
rather than 644. That's standard practice, and required when building
RPMs on Fedora to get a debuginfo package.
Guillem Jover [Sat, 30 Jan 2010 21:00:18 +0000 (22:00 +0100)]
Fix setprogname to strip leading paths from progname
Guillem Jover [Thu, 21 Jan 2010 13:34:55 +0000 (14:34 +0100)]
Make setprogname and getprogname arguments and return value const
This is more correct as the strings are not going to be changed, and it
matches the function signatures on other BSDs.
Suggested-by: Aurelien Jarno <aurel32@debian.org>
Guillem Jover [Sun, 10 Jan 2010 11:04:03 +0000 (12:04 +0100)]
Release libbsd 0.2.0
Guillem Jover [Sun, 10 Jan 2010 10:02:13 +0000 (11:02 +0100)]
Reformat code to KNF
Guillem Jover [Sun, 10 Jan 2010 00:41:27 +0000 (01:41 +0100)]
Add vis and unvis man pages
Taken from OpenBSD.
Guillem Jover [Sun, 10 Jan 2010 00:37:18 +0000 (01:37 +0100)]
Add dehumanize_number man page link
Guillem Jover [Sun, 10 Jan 2010 00:35:27 +0000 (01:35 +0100)]
Update vis and unvis modules from OpenBSD
Guillem Jover [Sun, 10 Jan 2010 00:33:07 +0000 (01:33 +0100)]
Update strlcat and strlcpy from OpenBSD
Guillem Jover [Sat, 9 Jan 2010 23:57:07 +0000 (00:57 +0100)]
Add arc4random_buf and arc4random_uniform functions
Update arc4random module from FreeBSD.
Guillem Jover [Sat, 9 Jan 2010 23:37:03 +0000 (00:37 +0100)]
Replace setproctitle dummy macro with a function stub
This way we can replace it later on with a real implementation so that
applications can immediately benefit from it w/o the need to recompile
them.
Guillem Jover [Sat, 9 Jan 2010 23:10:21 +0000 (00:10 +0100)]
Add pidfile functions
Taken from FreeBSD.
Remove MAXPATHLEN from ‘struct pidfh’ and allocate pf_path dynamically,
as some systems do not have such limits. Use dev_t instead of __dev_t.
Replace EDOOFUS with EINVAL.
Guillem Jover [Sat, 9 Jan 2010 22:49:32 +0000 (23:49 +0100)]
Add flopen function
Taken from FreeBSD.
Guillem Jover [Sat, 9 Jan 2010 19:17:16 +0000 (20:17 +0100)]
Move man pages to the same directory as the source code
This matches BSD style source tree, and makes it easier to see what's
missing.
Guillem Jover [Sun, 13 Dec 2009 00:52:03 +0000 (01:52 +0100)]
build: Untangle the package version from the soversion
Add a new script to generate the package version from git. Use that for
the pkg-config file and the tarball name.
Guillem Jover [Sat, 12 Dec 2009 00:46:25 +0000 (01:46 +0100)]
build: Make dist use files from git plus few autogenerated ones
To avoid forgetting to include files, we'll use “git ls-files” and will
include few precious autogenerated files that cannot be generated later
on w/o git. This includes mainly the ChangeLog.
Guillem Jover [Sat, 9 Jan 2010 18:56:45 +0000 (19:56 +0100)]
build: Do not duplicate generated filenames in several variables
Guillem Jover [Fri, 11 Dec 2009 22:24:31 +0000 (23:24 +0100)]
Move fmtcheck and fgetln declarations to <bsd/stdio.h>
This is were they are located on the BSDs.
Guillem Jover [Fri, 11 Dec 2009 22:21:14 +0000 (23:21 +0100)]
Move setmode and getmode declarations to <bsd/unistd.h>
This is were they are located on the BSDs.
Guillem Jover [Fri, 11 Dec 2009 22:13:42 +0000 (23:13 +0100)]
Mark inclusion of <time.h> from <bsd/bsd.h> deprecated
This will be removed at some point in the future.
Guillem Jover [Fri, 11 Dec 2009 22:12:26 +0000 (23:12 +0100)]
Move arc4random declarations to <bsd/stdlib.h>
This is were they are located on the BSDs.
Guillem Jover [Fri, 11 Dec 2009 22:06:27 +0000 (23:06 +0100)]
Deprecate <bsd/inet.h>
The only function declared in that header file was inet_net_pton, which
is already provided by glibc. Will be removed on the next SONAME bump.
Guillem Jover [Fri, 11 Dec 2009 22:01:02 +0000 (23:01 +0100)]
Remove traces of fgetwln, it was never included
This function was exposed in the header file and the versioning symbol
file, but the actual code was never here.
Guillem Jover [Fri, 11 Dec 2009 22:26:44 +0000 (23:26 +0100)]
Define NetBSD version 5.0 for .Nx to avoid groff warning
This is a temporary workaround, the proper fix is to get groff to know
newest BSD versions.
Guillem Jover [Fri, 11 Dec 2009 20:31:48 +0000 (21:31 +0100)]
Correct library name in man pages
Thorsten Glaser [Thu, 10 Dec 2009 17:07:25 +0000 (18:07 +0100)]
Expand on API guarantee for fgetln
OpenBSD has begun using the API guarantee that *len is not 0 if
the fgetln(3) return value is not NULL; document this explicitly
in the manpage and add a comment to the function implementation
that this doesn’t need to be checked because getdelim/getline have
similar guarantees.
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser [Thu, 10 Dec 2009 20:02:30 +0000 (21:02 +0100)]
Make RCS macros take arguments
This was breaking code actually using those macros.
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser [Thu, 10 Dec 2009 20:00:45 +0000 (21:00 +0100)]
Track bug IDs for __unused collision
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Guillem Jover [Fri, 23 Oct 2009 22:19:47 +0000 (00:19 +0200)]
Add readpassphrase function
Taken from OpenBSD.
Guillem Jover [Fri, 23 Oct 2009 22:17:57 +0000 (00:17 +0200)]
Add dehumanize_number function
Taken from NetBSD.
Guillem Jover [Fri, 23 Oct 2009 22:15:57 +0000 (00:15 +0200)]
Add strnvis and strnunvis functions
Taken from OpenBSD.
Guillem Jover [Fri, 23 Oct 2009 21:31:07 +0000 (23:31 +0200)]
Move <bsd/ip_icmp.h> to <bsd/netinet/ip_icmp.h>
This maps more closely the location of the real header. For
transitional purposes keep a <bsd/ip_icmp.h> that warns and includes
<bsd/netinet/ip_icmp.h>.
Guillem Jover [Sun, 11 Oct 2009 23:43:02 +0000 (01:43 +0200)]
Add new <bsd/sys/tree.h> header
Guillem Jover [Sun, 11 Oct 2009 23:47:54 +0000 (01:47 +0200)]
Move <bsd/queue.h> to <bsd/sys/queue.h>
This maps more closely the location of the real header. For
transitional purposes keep a <bsd/queue.h> that warns and includes
<bsd/sys/queue.h>.
Guillem Jover [Fri, 23 Oct 2009 21:04:42 +0000 (23:04 +0200)]
Move <bsd/cdefs.h> to <bsd/sys/cdefs.h>
This maps more closely the location of the real header. For
transitional purposes keep a <bsd/cdefs.h> that warns and includes
<bsd/sys/cdefs.h>.
Guillem Jover [Sun, 11 Oct 2009 23:43:52 +0000 (01:43 +0200)]
Update <sys/queue.h>
Taken from FreeBSD.
Guillem Jover [Sun, 11 Oct 2009 19:07:53 +0000 (21:07 +0200)]
Add strtonum function
Taken from FreeBSD.
Guillem Jover [Fri, 23 Oct 2009 23:06:09 +0000 (01:06 +0200)]
Do not append a slash after DESTDIR
Guillem Jover [Sun, 11 Oct 2009 18:54:23 +0000 (20:54 +0200)]
Update git web interface URL
FreeDesktop.Org switched from gitweb to cgit.
Guillem Jover [Sun, 30 Aug 2009 10:18:11 +0000 (12:18 +0200)]
Release libbsd 0.1.6
Hirokazu Takata [Sun, 30 Aug 2009 10:16:01 +0000 (12:16 +0200)]
Fix typos in M32R local-elf.h endian definitions
Guillem Jover [Fri, 17 Jul 2009 11:37:38 +0000 (13:37 +0200)]
Release libbsd 0.1.5
Guillem Jover [Fri, 17 Jul 2009 11:35:37 +0000 (13:35 +0200)]
Add __pure2 dummy macro
Guillem Jover [Fri, 17 Jul 2009 11:34:30 +0000 (13:34 +0200)]
Add more dummy id macros
Nobuhiro Iwamatsu [Fri, 17 Jul 2009 10:50:07 +0000 (12:50 +0200)]
Fix typos in AVR32 and SH local-elf.h endian definitions
Guillem Jover [Fri, 29 May 2009 00:48:00 +0000 (02:48 +0200)]
Release libbsd 0.1.4
Guillem Jover [Fri, 29 May 2009 00:45:54 +0000 (02:45 +0200)]
Define N_SYMSIZE in case the system does not do it
Fixes build failures on some non-Linux ports.
Based-on-patch-by: Petr Salinger <Petr.Salinger@seznam.cz>
Guillem Jover [Fri, 29 May 2009 00:28:49 +0000 (02:28 +0200)]
Create a relative symlink for .so if libdir and usrlibdir are the same
Guillem Jover [Mon, 25 May 2009 08:02:26 +0000 (10:02 +0200)]
Change @libdir@ in the pkg-config file to be $(usrlibdir)
The variable in the .pc file points to the directory where the .so
symlink is present, which is never going to be something like /lib,
but something like /usr/lib.
Guillem Jover [Mon, 25 May 2009 07:57:14 +0000 (09:57 +0200)]
Preserve the variables unexpanded in the pkg-config file
Guillem Jover [Mon, 25 May 2009 07:37:39 +0000 (09:37 +0200)]
Release libbsd 0.1.3
Guillem Jover [Mon, 25 May 2009 07:25:13 +0000 (09:25 +0200)]
Export public functions as extern C
Guillem Jover [Mon, 25 May 2009 07:12:45 +0000 (09:12 +0200)]
Add missing <stdarg.h> include in <bsd/err.h>
Guillem Jover [Mon, 25 May 2009 06:56:34 +0000 (08:56 +0200)]
Add new __RCSID macro
Define it to nothing, so that source imported from BSDs can be easily
compiled w/o needing to modify them.
Guillem Jover [Mon, 25 May 2009 04:57:50 +0000 (06:57 +0200)]
Release libbsd 0.1.2
Guillem Jover [Mon, 25 May 2009 04:57:03 +0000 (06:57 +0200)]
Install humanize_number(3) man page
Guillem Jover [Mon, 25 May 2009 04:41:42 +0000 (06:41 +0200)]
Use N_SYMSIZE instead of directly accessing ‘struct exec’
On Linux alpha ‘struct exec’ does not have an a_syms member, and the
N_SYMSIZE is mapped to 0.
Gerardo Exequiel Pozzi [Fri, 22 May 2009 23:44:35 +0000 (20:44 -0300)]
Add some man page links
Add man page links for strlcat, getmode and arc4random_*.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Guillem Jover [Mon, 25 May 2009 04:23:01 +0000 (06:23 +0200)]
Use the correct path when including a.out.h
Reported-by: Aurélien Jarno <aurelien@aurel32.net>
Guillem Jover [Mon, 25 May 2009 04:22:22 +0000 (06:22 +0200)]
Add man/md5.3bsd to .gitignore
Guillem Jover [Thu, 21 May 2009 03:04:09 +0000 (05:04 +0200)]
Fix typos (‘ELFDATA2MSG’ → ‘ELFDATA2MSB’)
Guillem Jover [Wed, 20 May 2009 03:14:32 +0000 (05:14 +0200)]
Release libbsd 0.1.1
Guillem Jover [Wed, 20 May 2009 03:13:31 +0000 (05:13 +0200)]
Install nlist header and man page
Guillem Jover [Wed, 20 May 2009 02:20:21 +0000 (04:20 +0200)]
Use UTF-8 copyright symbols for non-imported files
Guillem Jover [Wed, 20 May 2009 02:11:57 +0000 (04:11 +0200)]
Add nlist function
Guillem Jover [Fri, 15 May 2009 19:40:45 +0000 (21:40 +0200)]
Add strmode function
Guillem Jover [Fri, 15 May 2009 19:26:09 +0000 (21:26 +0200)]
Fix buffer leaks in fgetln
Cache the size and the buffer allocated by getline as static variables.
Guillem Jover [Fri, 15 May 2009 19:23:03 +0000 (21:23 +0200)]
Change fgetln to return the correct length value
Set len to 0 on error conditions to mimmic FreeBSD behaviour, and return
the amount of read characters on success, instead of the allocated size
by getline.
Reported-by: Jief L. <jief1.l@gmail.com>
Guillem Jover [Sat, 26 Jul 2008 19:42:39 +0000 (22:42 +0300)]
Do not include .gitignore in the dist tarball
Guillem Jover [Sat, 26 Jul 2008 19:39:29 +0000 (22:39 +0300)]
Install md5.3 as md5.3bsd
This man page is pretty common in other source projects, so we use a
suffix to distinguish it.
Guillem Jover [Sat, 26 Jul 2008 19:36:14 +0000 (22:36 +0300)]
Add a TODO list
Guillem Jover [Sat, 26 Jul 2008 19:35:31 +0000 (22:35 +0300)]
Add a new header file to expose inet_net_pton prototype
Guillem Jover [Sat, 26 Jul 2008 19:25:22 +0000 (22:25 +0300)]
Add a micro version part
Guillem Jover [Sat, 12 Jul 2008 05:00:17 +0000 (08:00 +0300)]
Unify description
Guillem Jover [Sat, 12 Jul 2008 04:59:14 +0000 (07:59 +0300)]
Move LIB_PKGCONFIG dependency to the libs target
Guillem Jover [Sat, 12 Jul 2008 04:55:57 +0000 (07:55 +0300)]
Use sigprocmask instead of _sigprocmask
Guillem Jover [Sat, 12 Jul 2008 04:53:03 +0000 (07:53 +0300)]
Define default CFLAGS overridable by the environment
Guillem Jover [Sat, 12 Jul 2008 04:48:10 +0000 (07:48 +0300)]
Switch remaining variables to single expanded ones
Guillem Jover [Sat, 12 Jul 2008 04:46:53 +0000 (07:46 +0300)]
Remove useless comment header
Guillem Jover [Sat, 12 Jul 2008 04:46:37 +0000 (07:46 +0300)]
Move each groups of related files to their own line
Guillem Jover [Sat, 12 Jul 2008 04:41:07 +0000 (07:41 +0300)]
Make action targets PHONY
Guillem Jover [Sat, 12 Jul 2008 04:37:13 +0000 (07:37 +0300)]
New README file
Guillem Jover [Sat, 12 Jul 2008 04:31:59 +0000 (07:31 +0300)]
Automatically generate libbsd.pc from libbsd.pc.in
Guillem Jover [Sat, 12 Jul 2008 04:29:24 +0000 (07:29 +0300)]
Add new path variables
Guillem Jover [Sat, 12 Jul 2008 04:00:19 +0000 (07:00 +0300)]
Automatically generate the ChangeLog on 'make dist'
Guillem Jover [Sat, 12 Jul 2008 03:46:18 +0000 (06:46 +0300)]
Define a LIB_PKGCONFIG variable
Guillem Jover [Sat, 12 Jul 2008 03:41:10 +0000 (06:41 +0300)]
Move filename related variables to the beginning of the file
Switch them to single expanded varibles.
Guillem Jover [Sat, 12 Jul 2008 03:35:45 +0000 (06:35 +0300)]
Define a LIB_VERSION variable
Guillem Jover [Wed, 9 Jul 2008 06:25:34 +0000 (09:25 +0300)]
Create an armored detached signature on 'make dist'
Guillem Jover [Wed, 9 Jul 2008 06:07:58 +0000 (09:07 +0300)]
Remove link_addr and link_ntoa symbols from the version script
Guillem Jover [Wed, 9 Jul 2008 06:07:03 +0000 (09:07 +0300)]
Add new setmode and getmode functions from FreeBSD
Guillem Jover [Wed, 9 Jul 2008 06:04:51 +0000 (09:04 +0300)]
Include the rest of the header files
Guillem Jover [Wed, 9 Jul 2008 06:04:27 +0000 (09:04 +0300)]
Disable __bounded__ __attribute__