bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnulib and pspdev


From: Sylvain Beucler
Subject: Re: Gnulib and pspdev
Date: Mon, 23 Mar 2009 20:33:11 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

> s/runs/runs -- as far as you've seen --/ ?
> 
> At least in the save-cwd module (used e.g., via openat), getcwd
> is not used in the common case, but under unusual circumstances,
> fall-back code does use it.

I'd say "runs" - Bruno explained that 'dup' and 'dup2' are used in
auxiliary replacements from fchdir.c, and 'rewinddir' is only used in
a chroot+Linux corner case which won't happen on PSP (getcwd still
works in the general case).

> dup() is as basic as open(), you know, and it's a one-liner to
> provide a stub for it.

AFAICS pspdev provides 'fnctl' with 'F_DUPFD' support, so indeed that
should be easy to add (in 'newlib/libc/sys/psp/libcglue.c'), thanks
for the tip!

-- 
Sylvain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]