MirBSD Korn Shell for Jehanne
Go to file
tg 24a23d52d8 add plugs for thread-safety, requested by Jonathan Schleifer
example:
#define AALLOC_THREAD_ENTER(ap)	@synchronized(aalloc_guard) {
#define AALLOC_THREAD_LEAVE(ap)	}

notes:
• you must declare and define eventual guard objects yourself
• while there will not be any direct “return” calls inside the
  locked area, AALLOC_ABORT and AALLOC_WARN may be called
• AALLOC_RANDOM does not need to be thread-safe, but malloc
  and free should be; if “ap” is used for locking, all functions
  called must be thread-safe though
2008-11-15 07:51:53 +00:00
Build.sh this was NOT intended to be committed; my sincere apologies 2008-11-13 00:36:07 +00:00
Makefile use -DAALLOC_TRACK in MirOS-current but not releases, similar to 2008-11-12 07:38:42 +00:00
aalloc.c add plugs for thread-safety, requested by Jonathan Schleifer 2008-11-15 07:51:53 +00:00
alloc.c enable passing of a hint how many pointers we’ll need to anew() 2008-11-15 07:35:25 +00:00
check.pl prevent using a possibly undefined variable 2008-07-14 14:53:23 +00:00
check.t prepare for aalloc.c, which I have just written myself, as an area-based 2008-11-12 04:55:19 +00:00
copyright alloc.c is now not always included any more, aalloc.c is MirOS licenced 2008-11-12 05:00:40 +00:00
dot.mkshrc much simplify and shorten default $PS1 (uses even more magick now) 2008-11-07 20:07:10 +00:00
edit.c enable passing of a hint how many pointers we’ll need to anew() 2008-11-15 07:35:25 +00:00
eval.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
exec.c get rid of tempting sizeofN macro 2008-11-12 00:55:32 +00:00
expr.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
funcs.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
histrap.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
jobs.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
lex.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
main.c enable passing of a hint how many pointers we’ll need to anew() 2008-11-15 07:35:25 +00:00
misc.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
mksh.1 replaced (TNF: ahoka) insists on me mentioning that we specify integer 2008-10-24 21:27:20 +00:00
setmode.c • more unsigned → unsigned int 2008-04-19 22:15:06 +00:00
sh.h enable passing of a hint how many pointers we’ll need to anew() 2008-11-15 07:35:25 +00:00
shf.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
strlcpy.c libc strlfun.c: 2008-07-07 12:59:54 +00:00
syn.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
tree.c switch to a (nmemb,size) API from a (nmemb*size) API 2008-11-12 00:54:52 +00:00
var.c enable passing of a hint how many pointers we’ll need to anew() 2008-11-15 07:35:25 +00:00