undefined errno on targets with MALLOC_PROVIDED

Egor Duda deo@logos-m.ru
Wed Mar 21 04:39:00 GMT 2001


Hi!

  files  in libc/reent/ all declare extern int errno; which is defined
in  libc/reent/sbrkr.c,  but  when  building  with  -DMALLOC_PROVIDED
sbrkr.c contents are skipped, so errno is left undefined.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
reent-errno-with-malloc-provided.ChangeLog
reent-errno-with-malloc-provided.diff

-------------- next part --------------
2001-03-21  Egor Duda  <deo@logos-m.ru>

	Allow building internal stubs for non-reentrant syscalls
	if target provides its own malloc
	* libc/reent/reent.c (errno): Move definition here.
	* libc/reent/sbrkr.c: From here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reent-errno-with-malloc-provided.diff
Type: text/x-diff
Size: 1098 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20010321/00c2a689/attachment.bin>


More information about the Newlib mailing list