aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update e-mailHEADmasterMattias Andrée2024-10-06277-277/+277
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Empty signed commitMattias Andrée2024-04-060-0/+0
|
* m + strdup and strndup: use aligned_alloc(1, n) instead of malloc(n)Mattias Andrée2018-09-013-2/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* memcmp: compare unsigned charsMattias Andrée2018-05-171-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2018-05-091-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2017-05-051-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* allocsize is dangerousMattias Andrée2016-07-252-2/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* todo: add procinitMattias Andrée2016-07-111-0/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* stack_will_overflow: we could forkMattias Andrée2016-06-131-0/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* explicit_bzero: set all bits to 1 before setting all bits to 0Mattias Andrée2016-04-031-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* whoops, wrong typeMattias Andrée2016-03-301-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* strfry: forgot to declare bMattias Andrée2016-03-301-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* strfry: reset n to max when the do..while loop resetsMattias Andrée2016-03-301-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* strfry: fix random int range boundary, document that srand should have been called, support huge strings, and use uniform randomMattias Andrée2016-03-262-3/+35
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2016-03-261-3/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* strfry: fix support for empty stringsMattias Andrée2016-03-261-2/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix issue #11 on githubMattias Andrée2016-03-211-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* update todoMattias Andrée2016-03-181-1/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* update todoMattias Andrée2016-03-171-0/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2016-03-053-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* derpMattias Andrée2016-03-011-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* strfry: use Durstenfeld's algorithm instead of Satallo's algorithmMattias Andrée2016-03-011-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* strfry: non-uniform random number generationMattias Andrée2016-02-291-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* fix terrible mistake in bsearchMattias Andrée2016-02-241-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* add bsearchMattias Andrée2016-02-202-0/+100
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix issue #10 on githubMattias Andrée2016-02-141-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* improve machinemodeMattias Andrée2016-02-091-14/+73
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* misread specificationMattias Andrée2016-01-142-22/+8
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* partially split malloc.cMattias Andrée2016-01-017-156/+281
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* docMattias Andrée2016-01-011-0/+24
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* extension: free will perserve errnoMattias Andrée2016-01-014-0/+20
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2016-01-013-8/+25
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* portabilityMattias Andrée2016-01-012-3/+12
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* bump yearMattias Andrée2016-01-01264-264/+264
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m bug fix: reopen: closed wrong fdMattias Andrée2015-12-311-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* fix DAEMONISE_KEEP_FDSMattias Andrée2015-12-311-3/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-312-8/+15
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* daemonise: add option to override pid fileMattias Andrée2015-12-312-2/+12
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m bug fixMattias Andrée2015-12-311-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m bug fixMattias Andrée2015-12-301-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* SIGKILL and SIGSTOP cannot be cought, for you get an exception even if SIG_DFL is usedMattias Andrée2015-12-301-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* typo + other ways to catch fireMattias Andrée2015-12-302-2/+55
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* needstack: We cannot protect ourself from death by SIGSEGV, the CPU would halt and catch fire.Mattias Andrée2015-12-301-0/+2
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* needstack: forgot to set the maskMattias Andrée2015-12-301-0/+3
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* needstack: use pthread_sigmask rather than sigprocmaskMattias Andrée2015-12-301-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* deferencing null is legalMattias Andrée2015-12-301-0/+10
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* add reopenMattias Andrée2015-12-302-4/+122
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* halt + hcfMattias Andrée2015-12-293-0/+100
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* use pthread_sigmask, not sigprocmaskMattias Andrée2015-12-294-12/+12
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* more functions to add + implement readn, writen, preadn, and pwritenMattias Andrée2015-12-296-5/+404
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>