Thanks for the digging Nilay. That sounds like a good suggestion. Andreas
On 22/10/2014 10:19, "Nilay Vaish via gem5-dev" <[email protected]> wrote: >I am going to rollback this change. I could not find any way for >implementing getdents() using readdir() or other similar C functions. >All these functions require a DIR* where as getdents() provides a file >descriptor. While it is possible to obtain a DIR * from the fd, closing >the DIR* would close the fd as well, which means that the application >cannot use the fd any longer. > >-- >Nilay > > >On Tue, 21 Oct 2014, Mitch Hayenga via gem5-dev wrote: > >> changeset: 10484:6709bbcf564d >> user: Michael Adler <[email protected]> >> date: Mon Oct 20 16:44:53 2014 -0500 >> summary: sim: implement getdents/getdents64 in user mode >> >> >> Errors: >> build/ARM/sim/syscall_emul.cc:881:30: error: use of undeclared >>identifier >> 'SYS_getdents' >> int bytes_read = syscall(SYS_getdents, fd, bufArg.bufferPtr(), >>nbytes); >> ^ >> build/ARM/sim/syscall_emul.cc:899:30: error: use of undeclared >>identifier >> 'SYS_getdents64' >> int bytes_read = syscall(SYS_getdents64, fd, bufArg.bufferPtr(), >> nbytes); >> >> >> It looks like this recent changeset for syscall emulation directly >>makes a >> syscall to SYS_getdents. Which seemingly does not exist on mac OS X. >> >> From the getdents manpage: >> "This is not the function you are interested in. Look at readdir(3) for >> the POSIX conforming C library interface." >> >> >> - Mitch >> _______________________________________________ >> gem5-dev mailing list >> [email protected] >> http://m5sim.org/mailman/listinfo/gem5-dev >> >_______________________________________________ >gem5-dev mailing list >[email protected] >http://m5sim.org/mailman/listinfo/gem5-dev > -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782 _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
