RFA: Add SYS_mkdir to libgloss/syscalls.h (Was: Re: No mkdir in glibgloss/syscall.h?)
Mike Frysinger
vapier@gentoo.org
Tue Nov 8 12:00:00 GMT 2011
On Sunday 06 November 2011 14:11:05 Joern Rennecke wrote:
> Quoting Mike Frysinger <vapier@gentoo.org>:
> > i'm all for adding mkdir to libgloss/syscall.h and extending
> > sim/common/callback.c
>
> Ok, let's start with syscalls.h - see attached patch. Is there anything in
> particular that I'll have to test?
you should also add libgloss/libnosys/mkdir.c in the same style as
libgloss/libnosys/stat.c.
then for your target, wire up the _mkdir() with an actual syscall. this part
is pretty much target-specific, so i can't offer advice on how to do that. look
for how they did _open() and do it similarly.
then update include/gdb/callback.h and sim/common/syscall.c to handle the new
syscall. and regenerate the target syscall map.
now the sim should be able to handle mkdir().
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/newlib/attachments/20111108/3174bcfd/attachment.sig>
More information about the Newlib
mailing list