Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for ACTION_EXAMINE_ALL and bsdsocket.library #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cdhooper
Copy link

@cdhooper cdhooper commented Jun 2, 2019

Fixed ACTION_EXAMINE_ALL on FS-UAE root directory; last Exall() would fail
Fixed bsdsocket FIOSETOWN and FIOGETDOWN implemented backwards
Fixed bsdsocket select - would corrupt caller's memory if < 33 fds selected

… fail

Fixed bsdsocket FIOSETOWN and FIOGETDOWN implemented backwards
Fixed bsdsocket select - would corrupt caller's memory if < 33 fds selected
Copy link
Owner

@FrodeSolheim FrodeSolheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in src/od-fs/bsdsocket_posix.cpp look fine, will merge shortly. Apologies for leaving this hanging for so long.

if (!action_examine_all_do(ctx, unit, lock, eak, exalldata, exalldatasize, type, control))
goto fail;
if (!action_examine_all_do(ctx, unit, lock, eak, exalldata, exalldatasize, type, control)) {
if (get_long (control + 0) == 0)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain a bit what's going on here (what the problem was and how this fixes it)? I'm not all that familiar with this code.

(Also, I suspect trap_get_long should be used instead of get_long?)

@FrodeSolheim
Copy link
Owner

I'm not entirely sure about the fixes for FIOSETOWN and FIOGETDOWN; they do look wrong, but the fix looks wrong as well. I'm trying to find some proof of what they should be so I looked into the AmiTCP header files https://aminet.net/package/comm/net/AmiTCP-api-30b2. See linked issue #291

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.

None yet

2 participants