This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Add SYS_mkdir to libgloss/syscalls.h (Was: Re: No mkdir in glibgloss/syscall.h?)


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

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]