[Webkit-unassigned] [Bug 194344] [WTF] Add getting/changing current working directory to FileSystem

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 11 07:42:13 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=194344

--- Comment #15 from Stephan Szabo <stephan.szabo at sony.com> ---
(In reply to Saam Barati from comment #14)
> (In reply to Stephan Szabo from comment #0)
> > Add the ability to get and change the current working directory to
> > FileSystem for use inside the jsc shell.
> 
> What's the plan on how to use this?

Although I'm now also looking at different ways based on the earlier responses, the plan was basically:
* Replace the use of direct system calls for the working directory in currentWorkingDirectory() to use the retrieval function in FileSystem.
* Add an option to jsc to set the working directory for systems without a shell that has the notion using the change function in FileSystem.
* Move from direct fopen/fseek/etc to FileSystem calls for reading files in the jsc shell.
* For PlayStation, because it needs absolute paths, use the given working directory if one exists to prefix relative paths in FileSystem before calling down to libc or posix functions.

The "with JSC changes" attachment isn't fully right, but it should give a general idea of what it would look like.

>From the earlier responses, I'm now looking to try a version for the shell that:
* Keeps a working directory in jsc
* Sets it from the system on start
* Add option to set it for systems that don't have one
* Convert paths to absolute paths for loading files.

If that works more reasonably, then this will go away.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190211/c3a7dd4e/attachment-0001.html>


More information about the webkit-unassigned mailing list