src


Log

Author Commit Date CI Message
Guillem Jover 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.
Guillem Jover 94fe901e 2011-05-14T18:12:48 Abort compilation if fgetln cannot be wrapped
Guillem Jover 28585a58 2011-05-14T17:58:08 Add fpurge function
Guillem Jover 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.
Guillem Jover c594192b 2011-05-14T14:17:44 Correct library name in man pages
Guillem Jover 8478e574 2011-02-23T13:14:22 Update libbsd header references in man pages Point to the namespaced path for libbsd specific headers.
Guillem Jover 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.
Guillem Jover 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.
Guillem Jover 4b95e82a 2011-02-25T18:48:10 Add new radixsort and sradixsort functions Taken from FreeBSD.
Guillem Jover c766e58a 2011-02-25T18:25:17 Add man pages for heapsort and mergesort Taken from FreeBSD, originally as qsort.3 but qsort references stripped.
Guillem Jover be6ab549 2011-02-25T18:17:16 Add new mergesort function Taken from FreeBSD.
Guillem Jover 5b19adfa 2010-12-17T10:50:56 Add getpeereid function
Aurelien Jarno acb7c42d 2010-07-30T08:00:41 Add reallocf function
Guillem Jover 11f2c32d 2010-01-30T22:00:18 Fix setprogname to strip leading paths from progname
Guillem Jover 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>
Guillem Jover e544a41f 2010-01-10T01:37:18 Add dehumanize_number man page link
Guillem Jover 7b3873bc 2010-01-10T01:35:27 Update vis and unvis modules from OpenBSD
Guillem Jover 8103fe14 2010-01-10T01:33:07 Update strlcat and strlcpy from OpenBSD
Guillem Jover abe0a4a7 2010-01-10T11:02:13 Reformat code to KNF
Guillem Jover 2872bfa1 2010-01-10T01:41:27 Add vis and unvis man pages Taken from OpenBSD.
Guillem Jover d63e0813 2010-01-10T00:57:07 Add arc4random_buf and arc4random_uniform functions Update arc4random module from FreeBSD.
Guillem Jover 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.
Guillem Jover 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.
Guillem Jover 98a2479f 2010-01-09T23:49:32 Add flopen function Taken from FreeBSD.
Guillem Jover 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.
Thorsten Glaser 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>
Guillem Jover c5398adf 2009-10-24T00:19:47 Add readpassphrase function Taken from OpenBSD.
Guillem Jover 538bc879 2009-10-24T00:17:57 Add dehumanize_number function Taken from NetBSD.
Guillem Jover 04250f6a 2009-10-24T00:15:57 Add strnvis and strnunvis functions Taken from OpenBSD.
Guillem Jover 56ddcfe6 2009-10-11T21:07:53 Add strtonum function Taken from FreeBSD.
Hirokazu Takata 5ac14531 2009-08-30T12:16:01 Fix typos in M32R local-elf.h endian definitions
Nobuhiro Iwamatsu 66603975 2009-07-17T12:50:07 Fix typos in AVR32 and SH local-elf.h endian definitions
Guillem Jover 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>
Guillem Jover 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.
Guillem Jover 9b30dae9 2009-05-21T05:04:09 Fix typos (‘ELFDATA2MSG’ → ‘ELFDATA2MSB’)
Guillem Jover 1f0b016e 2009-05-20T04:20:21 Use UTF-8 copyright symbols for non-imported files
Guillem Jover dcaec44a 2009-05-20T04:11:57 Add nlist function
Guillem Jover 8dbfb352 2009-05-15T21:40:45 Add strmode function
Guillem Jover 74ae34e7 2009-05-15T21:26:09 Fix buffer leaks in fgetln Cache the size and the buffer allocated by getline as static variables.
Guillem Jover 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>
Guillem Jover ad52f2eb 2008-07-12T07:55:57 Use sigprocmask instead of _sigprocmask
Guillem Jover 38829bdc 2008-07-09T09:07:03 Add new setmode and getmode functions from FreeBSD
Guillem Jover fafffd1f 2008-07-09T08:26:07 fgetln: Fix coding style
Guillem Jover 47109e39 2008-07-09T08:22:30 fgetln: Fix function to make it actually work Reported by Thorsten Glaser.
Guillem Jover da92787d 2008-07-09T07:46:23 Ansify function arguments
Guillem Jover 1512d0d4 2008-07-09T07:22:30 Renumber 4th clause from BSD license to 3rd Those files have only three clauses.
Guillem Jover 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.
Guillem Jover bf4eeb29 2008-06-18T08:44:18 Add arc4random_stir and arc4random_addrandom functions
Guillem Jover 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
Guillem Jover d699e4bc 2008-06-18T08:05:23 Add license header With Hector's agreement.
Guillem Jover acb577d6 2008-06-13T05:25:57 Sync humanize_number from NetBSD Add the missing man page.
Guillem Jover 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>
Robert Millan 8ca3d66d 2008-03-16T17:20:48 Add license header
Robert Millan 532aec99 2008-03-16T16:49:41 Relicense err.c and progname.c to avoid trouble with 4-clause BSD code
Guillem Jover f5b83170 2008-03-16T14:30:51 Remove UC Berkeley advertising clause As per <ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>.
Petr Salinger 30176335 2006-08-25T13:39:32 humanize_number: New function
Aurelien Jarno 2ef27385 2006-11-07T23:41:16 link_addr: New function
Robert Millan 326d210f 2006-03-30T13:53:34 Revert 1d87476250217a87319df48a8f473415c0515106
Robert Millan 1d874762 2006-03-30T11:14:56 Duplicate setprogname argument For some reason, accessing the argv vector directly may cause SIGSEV.
Robert Millan 3462d126 2006-03-29T13:55:22 Add heapsort
Aurelien Jarno 1e28f348 2006-03-26T17:09:24 Directly call the function fmtcheck instead of using __weak_reference
Aurelien Jarno daccb6a8 2006-03-26T17:10:13 Fix some c++isms
Robert Millan 40bb012f 2006-03-19T10:25:49 Add vis and unvis
Robert Millan a84fcb45 2006-03-18T12:53:39 Fix syntax error
Robert Millan 31461c56 2006-03-18T09:19:50 Initialize __progname as NULL
Robert Millan 5bd83402 2006-03-17T19:55:21 Add getprogname and setprogname
Guillem Jover 5372b736 2006-02-14T05:39:29 Move sources to src/