Skip to content

Replace access()#91

Closed
bucanero wants to merge 1 commit into
ps3dev:masterfrom
senzacodici:access-fix
Closed

Replace access()#91
bucanero wants to merge 1 commit into
ps3dev:masterfrom
senzacodici:access-fix

Conversation

@bucanero
Copy link
Copy Markdown
Contributor

This is a proposed newlib patch with an emulated implementation of access()

access.c is based on @crystalct file: https://github.com/crystalct/PS3LibrariesUpdate/blob/master/src/access.c

@bucanero
Copy link
Copy Markdown
Contributor Author

bucanero commented Jun 23, 2020

the proper way to test this change would be to rebuild the whole toolchain, and then create a test app that calls access() , right?

Edit: well, I went ahead and rebuilt everything from scratch, and tested a sample psl1ght app, calling access() to some files and everything worked as expected. (maybe there was a shorter/faster way to test it 😅 )

@miigotu
Copy link
Copy Markdown
Member

miigotu commented Jun 23, 2020

I can't test for now, sorry. My laptop took a shit and I don't have a backup lappy

@zeldin
Copy link
Copy Markdown
Member

zeldin commented Jun 24, 2020

The contents look fine, but I would suggest making this as a PR against newlib-1.20.0-PS3 and then updating the patch based on that. That makes it easier to track changes and is how development was made on newlib-1.19.0.

@bucanero
Copy link
Copy Markdown
Contributor Author

@zeldin alright, I'm making a PR to newlib-1.20.0-PS3 with these changes, and then if everything looks good both PRs can be merged: ps3dev/newlib-1.20.0-PS3#1

@miigotu oops, that's too bad, I hope you can fix your laptop!

thanks for the help 👍

@miigotu
Copy link
Copy Markdown
Member

miigotu commented Jun 24, 2020

@zeldin submodules have come a long way since we tried it last time. What do you think about trying them out again using the *-PS3 libs in a new branch off-master?

@zeldin
Copy link
Copy Markdown
Member

zeldin commented Jun 24, 2020

@miigotu You mean building newlib from a submodule instead of dist archive + patch? Yes, that would be more convenient for development. Feel free to create the branch, I can try it out next week when my vacation starts... 😸

@miigotu
Copy link
Copy Markdown
Member

miigotu commented Jun 24, 2020

I'll try lol. But first I have to try and get this 12 year old laptop set up to use until my new one comes lol...

@zeldin
Copy link
Copy Markdown
Member

zeldin commented Jun 24, 2020

Rather than merging this PR, I simply regenerated the patch from the newlib-1.20.0-PS3 repo. The two patches generated identical results when applied to the unpatched newlib sources, save a minor whitespace difference in syscalls.c.

@bucanero
Copy link
Copy Markdown
Contributor Author

perfect, then I can close this PR since the newlib patch is already updated. 👍
thanks @zeldin and @miigotu for the help !

btw, if there's no reason against Markdown files, I'd like to submit a PR with an updated README.md for the ps3toolchain repo, adding building instructions for macOS users.

@bucanero bucanero closed this Jun 24, 2020
@bucanero bucanero deleted the access-fix branch June 24, 2020 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants