|
c984dacd
|
2012-11-27T14:24:13
|
|
Implement sendmail semantics for setproctitle()
Prefix the title with "progname: ", and skip it if the format string
starts with '-' (which gets skipped on output too).
|
|
35785f8d
|
2012-11-25T21:10:53
|
|
Modify setproctitle() to conform to project coding style
Use local getprogname()/setprogname() instead of reimplementing them
locally. Use clearenv() if available, not just on glibc. Use bool
instead of _Bool. Use paranthesis on sizeof. Fold the SPT_MIN macro
into spt_min(). Make spt_init() static. Avoid unnecessary gotos.
|
|
f8d52ead
|
2012-11-23T18:33:23
|
|
Add x32 support to nlist()
|
|
2a0260d0
|
2012-11-28T11:09:02
|
|
Add a setproctitle() implementation
Taken from libnostd.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
|
|
cf683a27
|
2012-11-23T18:32:35
|
|
Add arm64 (aka aarch64) to nlist()
|
|
a97ce513
|
2012-11-23T21:19:45
|
|
Add new fgetwln() function
Man page taken from FreeBSD.
|
|
ee0489eb
|
2012-08-07T08:44:30
|
|
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>
|
|
cb7bc0d8
|
2012-11-25T22:09:43
|
|
Add file buffer pool support to fgetln()
This avoids buffer overwrites during concurrent or intermixed calls to
fgetln() when using more than one different stream (currently 32), which
the original interface supports natively by using an internal buffer
from the FILE structure. Although this workaround is rudimentary, it
should cover most of the theoretically problematic cases.
|
|
1be0bdb2
|
2012-11-25T21:13:38
|
|
Add new strnstr() function
Taken from FreeBSD.
|
|
ff0d700d
|
2012-11-23T17:16:43
|
|
Add new wcslcat() and wcslcpy() functions
Taken from FreeBSD.
|
|
918a4dba
|
2012-06-27T09:15:15
|
|
Release libbsd 0.4.2
|
|
14524b54
|
2012-06-03T07:39:42
|
|
build: Set default compiler variables from configure
This centralizes the setting so there's no duplication anymore,
makes sure the user supplied variables are never overridden, and
are only set when using gcc.
Reported-by: Samuli Suominen <ssuominen@gentoo.org>
|
|
c21d788f
|
2012-06-01T08:20:37
|
|
Release libbsd 0.4.1
|
|
fdcae577
|
2012-06-01T08:17:42
|
|
build: Set runtimelibdir to libdir
This makes sure the install-exec-hook under src works as expected even
when no runtimelibdir was specified, otherwise the symlinks end up
pointing to non-existing targets.
Reported-by: Ryan Mullen <rmmullen@gmail.com>
|
|
e9e4a60d
|
2012-06-01T08:15:00
|
|
build: Use MKDIR_P variable instead of literal «mkdir -p»
|
|
309c82a0
|
2012-05-29T04:38:07
|
|
Release libbsd 0.4.0
|
|
cd67cb14
|
2012-05-29T07:17:46
|
|
Use implicit <md5.h> from overlay instead explicit <bsd/md5.h>
This was assuming an installed <bsd/md5.h> on the system, due to the
build system not including -Iinclude/ anymore.
Regression introduced in commit 901ed630fc64fca828e031bc8fa6780db9f05db1.
|
|
e7f39760
|
2012-03-23T10:31:42
|
|
Add email address to my name
|
|
75299746
|
2012-01-03T08:58:01
|
|
Base getprogname() on program_invocation_short_name presence instead of glibc
|
|
d5d91869
|
2012-01-03T09:08:35
|
|
Base fpurge() implementation on __fpurge presence instead of glibc
|
|
f8e80630
|
2012-01-03T08:40:18
|
|
Base fgetln() implementation on getline presence instead of glibc
|
|
64348583
|
2011-12-31T04:30:48
|
|
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>
|
|
943939d0
|
2011-12-31T08:39:44
|
|
Add new closefrom() function
Code taken from sudo, man page from FreeBSD.
|
|
3d614131
|
2011-12-31T06:01:27
|
|
Base errc() and warnc() on vwarnc() and verrc() respectively
|
|
87232260
|
2011-07-06T16:29:26
|
|
Use system __progname variable in progname module if available
|
|
b5cc17d6
|
2011-07-05T23:27:31
|
|
Use getexecname() if available for getprogname()
This function is present on Solaris.
|
|
980f04f7
|
2012-01-03T08:58:52
|
|
build: Do not define already defined _GNU_SOURCE
The macro is defined by configure on config.h which is now implicitly
included by all source files.
|
|
8d2f12d7
|
2012-01-03T08:45:05
|
|
build: Include <config.h> through -include for all source files
|
|
88004b30
|
2011-12-31T07:31:47
|
|
build: Set -Wno-unused-parameter to default CFLAGS
|
|
dcaa93d9
|
2010-12-17T11:13:04
|
|
build: Switch to autotools
|
|
0aa777f4
|
2011-12-31T07:35:52
|
|
Move .pc and .map files to src/
|
|
540ab03b
|
2011-12-31T06:50:40
|
|
Move man pages to man/
|
|
2fb7200d
|
2011-10-23T19:27:44
|
|
Fix typos in source comments
Found by codespell.
|
|
4a6303ba
|
2011-06-08T02:10:38
|
|
Constify bsd_getopt(3) arguments
This matches the standard declaration for getopt(3).
|
|
b891772a
|
2011-05-29T02:49:14
|
|
Remove blank lines at EOF
|
|
9d042171
|
2011-05-25T07:38:36
|
|
Map getopt to bsd_getopt if we are using the overlay
This will ensure the code can safely and correctly use optreset
transparently.
|
|
94fe901e
|
2011-05-14T18:12:48
|
|
Abort compilation if fgetln cannot be wrapped
|
|
28585a58
|
2011-05-14T17:58:08
|
|
Add fpurge function
|
|
8b6a7477
|
2011-02-23T12:38:42
|
|
Conditionalize temporary compatibility inclusions
These inclusions were in place for backward compatibility purposes,
when the headers were split so that code using them would not break.
Make it possible for applications to disable them by defining
LIBBSD_CLEAN_INCLUDES so that buildability can be tested and fixed
before they get removed in a subsequent release.
|
|
c594192b
|
2011-05-14T14:17:44
|
|
Correct library name in man pages
|
|
8478e574
|
2011-02-23T13:14:22
|
|
Update libbsd header references in man pages
Point to the namespaced path for libbsd specific headers.
|
|
520682e5
|
2011-02-23T14:04:57
|
|
Add support for transparent compilation
This means that software being ported should not need to be modified in
the usual case, as the libbsd headers will take over the standard
namespace and fill the missing gaps, and include the system headers.
To use this the new libbsd-transparent.pc file can be used through
pkg-config, which should end up doing the right thing.
|
|
1497d347
|
2011-02-25T13:52:59
|
|
Initialize __progname to program_invocation_short_name
As we do not have cooperation from the crt0 code to set __progname, we
have to set it ourselves from getprogname() in case it's NULL. On GNU
systems we can use program_invocation_short_name which is actually set
on crt0.
|
|
4b95e82a
|
2011-02-25T18:48:10
|
|
Add new radixsort and sradixsort functions
Taken from FreeBSD.
|
|
c766e58a
|
2011-02-25T18:25:17
|
|
Add man pages for heapsort and mergesort
Taken from FreeBSD, originally as qsort.3 but qsort references stripped.
|
|
be6ab549
|
2011-02-25T18:17:16
|
|
Add new mergesort function
Taken from FreeBSD.
|
|
5b19adfa
|
2010-12-17T10:50:56
|
|
Add getpeereid function
|
|
acb7c42d
|
2010-07-30T08:00:41
|
|
Add reallocf function
|
|
11f2c32d
|
2010-01-30T22:00:18
|
|
Fix setprogname to strip leading paths from progname
|
|
30c79408
|
2010-01-21T14:34:55
|
|
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>
|
|
abe0a4a7
|
2010-01-10T11:02:13
|
|
Reformat code to KNF
|
|
2872bfa1
|
2010-01-10T01:41:27
|
|
Add vis and unvis man pages
Taken from OpenBSD.
|
|
e544a41f
|
2010-01-10T01:37:18
|
|
Add dehumanize_number man page link
|
|
7b3873bc
|
2010-01-10T01:35:27
|
|
Update vis and unvis modules from OpenBSD
|
|
8103fe14
|
2010-01-10T01:33:07
|
|
Update strlcat and strlcpy from OpenBSD
|
|
d63e0813
|
2010-01-10T00:57:07
|
|
Add arc4random_buf and arc4random_uniform functions
Update arc4random module from FreeBSD.
|
|
3fed78e5
|
2010-01-10T00:37:03
|
|
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.
|
|
2a81893c
|
2010-01-10T00:10:21
|
|
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.
|
|
98a2479f
|
2010-01-09T23:49:32
|
|
Add flopen function
Taken from FreeBSD.
|
|
57cc5326
|
2010-01-09T20:17:16
|
|
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.
|
|
c17c7e13
|
2009-12-10T18:07:25
|
|
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>
|
|
c5398adf
|
2009-10-24T00:19:47
|
|
Add readpassphrase function
Taken from OpenBSD.
|
|
538bc879
|
2009-10-24T00:17:57
|
|
Add dehumanize_number function
Taken from NetBSD.
|
|
04250f6a
|
2009-10-24T00:15:57
|
|
Add strnvis and strnunvis functions
Taken from OpenBSD.
|
|
56ddcfe6
|
2009-10-11T21:07:53
|
|
Add strtonum function
Taken from FreeBSD.
|
|
5ac14531
|
2009-08-30T12:16:01
|
|
Fix typos in M32R local-elf.h endian definitions
|
|
66603975
|
2009-07-17T12:50:07
|
|
Fix typos in AVR32 and SH local-elf.h endian definitions
|
|
45783ae4
|
2009-05-29T02:45:54
|
|
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>
|
|
e4aff3d9
|
2009-05-25T06:41:42
|
|
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.
|
|
9b30dae9
|
2009-05-21T05:04:09
|
|
Fix typos (‘ELFDATA2MSG’ → ‘ELFDATA2MSB’)
|
|
1f0b016e
|
2009-05-20T04:20:21
|
|
Use UTF-8 copyright symbols for non-imported files
|
|
dcaec44a
|
2009-05-20T04:11:57
|
|
Add nlist function
|
|
8dbfb352
|
2009-05-15T21:40:45
|
|
Add strmode function
|
|
74ae34e7
|
2009-05-15T21:26:09
|
|
Fix buffer leaks in fgetln
Cache the size and the buffer allocated by getline as static variables.
|
|
deb9f56c
|
2009-05-15T21:23:03
|
|
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>
|
|
ad52f2eb
|
2008-07-12T07:55:57
|
|
Use sigprocmask instead of _sigprocmask
|
|
38829bdc
|
2008-07-09T09:07:03
|
|
Add new setmode and getmode functions from FreeBSD
|
|
fafffd1f
|
2008-07-09T08:26:07
|
|
fgetln: Fix coding style
|
|
47109e39
|
2008-07-09T08:22:30
|
|
fgetln: Fix function to make it actually work
Reported by Thorsten Glaser.
|
|
da92787d
|
2008-07-09T07:46:23
|
|
Ansify function arguments
|
|
1512d0d4
|
2008-07-09T07:22:30
|
|
Renumber 4th clause from BSD license to 3rd
Those files have only three clauses.
|
|
efa9658b
|
2008-06-18T08:51:53
|
|
Remove link_addr and link_ntoa functions
The address familiy used is kernel dependent, so the application will
have to be ported regardless.
|
|
bf4eeb29
|
2008-06-18T08:44:18
|
|
Add arc4random_stir and arc4random_addrandom functions
|
|
b37f1039
|
2008-06-18T08:19:41
|
|
Replace current md5 code with one from MirBSD and OpenBSD
This adds the following public functions:
MD5Transform, MD5End, MD5File, MD5FileChunk, MD5Data
|
|
d699e4bc
|
2008-06-18T08:05:23
|
|
Add license header
With Hector's agreement.
|
|
acb577d6
|
2008-06-13T05:25:57
|
|
Sync humanize_number from NetBSD
Add the missing man page.
|
|
0be77c90
|
2008-06-13T05:23:39
|
|
Convert TNF licenses to new 2 clause variant
This follows NetBSD upstream:
<http://mail-index.netbsd.org/source-changes/2008/04/30/msg005553.html>
|
|
8ca3d66d
|
2008-03-16T17:20:48
|
|
Add license header
|
|
532aec99
|
2008-03-16T16:49:41
|
|
Relicense err.c and progname.c to avoid trouble with 4-clause BSD code
|
|
f5b83170
|
2008-03-16T14:30:51
|
|
Remove UC Berkeley advertising clause
As per <ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>.
|
|
30176335
|
2006-08-25T13:39:32
|
|
humanize_number: New function
|
|
2ef27385
|
2006-11-07T23:41:16
|
|
link_addr: New function
|
|
326d210f
|
2006-03-30T13:53:34
|
|
Revert 1d87476250217a87319df48a8f473415c0515106
|
|
1d874762
|
2006-03-30T11:14:56
|
|
Duplicate setprogname argument
For some reason, accessing the argv vector directly may cause SIGSEV.
|
|
3462d126
|
2006-03-29T13:55:22
|
|
Add heapsort
|
|
daccb6a8
|
2006-03-26T17:10:13
|
|
Fix some c++isms
|
|
1e28f348
|
2006-03-26T17:09:24
|
|
Directly call the function fmtcheck instead of using __weak_reference
|
|
40bb012f
|
2006-03-19T10:25:49
|
|
Add vis and unvis
|
|
a84fcb45
|
2006-03-18T12:53:39
|
|
Fix syntax error
|
|
31461c56
|
2006-03-18T09:19:50
|
|
Initialize __progname as NULL
|