No pathconf implementation

support for the powerpc toolchain
Post Reply
pelago
Posts: 4
Joined: Sun Apr 12, 2009 10:33 pm

No pathconf implementation

Post by pelago » Mon Apr 13, 2009 10:18 am

Although devkitpro/devkitPPC/powerpc-gekko/include/sys/unistd.h has function prototypes for pathconf and fpathconf, I don't think any implementation is included. This means that porting code which uses pathconf will compile but not link. Looking at nm libc.a|grep pathconf I see no results.

Am I missing something?

pelago
Posts: 4
Joined: Sun Apr 12, 2009 10:33 pm

Re: No pathconf implementation

Post by pelago » Mon Apr 13, 2009 11:01 pm

Some further research shows that the only implementations of pathconf.c in newlib are in the sys/linux folder, i.e. are linux-specific, so presumably don't apply to GC/Wii so weren't ported to devkitPPC.

Looking at the code I'm trying to port, it only tries to call pathconf if _PC_LINK_MAX is defined. For the time being, I have remove all the defines for _PC_ macros in unistd.h, as well as the prototypes for pathconf and fpathconf, and that at least allows the code I'm trying to port to compile. Maybe newlib 1.17.0 also does this.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests