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

fix thread start callback prototype for Open Watcom toolchain #8175

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jmalak
Copy link

@jmalak jmalak commented Nov 11, 2024

Description

fix callback prototype for Windows and pthread, the Windows version does not return any value and the pthread version is a standard thread callback function (THREAD_CB) with a return value

fix callback function calling convention for Open Watcom toolchain Open Watcom has an implementation of _beginthread for other operating systems as well, and uses a default calling convention that is not cdecl

@wolfSSL-Bot
Copy link

Can one of the admins verify this patch?

@dgarske
Copy link
Contributor

dgarske commented Nov 12, 2024

Hi @jmalak ,

Thank you for the PR. I've assigned this over to @kareem-wolfssl who is handling your contributor agreement.

Thanks,
David Garske, wolfSSL

@kareem-wolfssl
Copy link
Contributor

ok to test

@bandi13
Copy link
Contributor

bandi13 commented Nov 12, 2024

retest this please

@jmalak
Copy link
Author

jmalak commented Nov 14, 2024

@kareem-wolfssl I am sorry, PRB-master-job is failing but I have no access to Jenkins to get some details about issue.
Please could you help me somehow.

@JacobBarthelmeh
Copy link
Contributor

retest this please Jenkins

@JacobBarthelmeh
Copy link
Contributor

JacobBarthelmeh commented Nov 19, 2024

Results of Jenkins tests @jmalak :

[check-source-text] [2 of 7] [wolfssl]

    autogen.sh wolfssl...   real 0m6.931s  user 0m5.349s  sys 0m0.221s

    configure...   real 0m8.673s  user 0m6.986s  sys 0m1.637s

macros that take args but have an unannotated null definition:

wolfssl/wolfcrypt/types.h:1579:                #define RETURN_FROM_THREAD_NOJOIN(x)

unrecognized macros used:

HAVE_CRL_UPDATE_CB

add well-formed but unknown macros to /tmp/workspace/PRB-multi-test-script/wolfssl/.wolfssl_known_macro_extras.

There was also a udp_proxy failure which seems odd given these code changes. Would work on the nit from the CI test and when updating with the change see if the udp_proxy test was just being flaky.

fix callback prototype for Windows and pthread, the Windows version does not return any value and the pthread version is a standard thread callback function (THREAD_CB) with a return value

fix callback function calling convention for Open Watcom toolchain
Open Watcom has an implementation of _beginthread for other operating systems as well, and uses a default calling convention that is not cdecl
@bandi13
Copy link
Contributor

bandi13 commented Nov 19, 2024

You're just failing the 80 character limit on a couple lines.

wolfcrypt/src/random.c:916 static THREAD_RETURN_NOJOIN WOLFSSL_THREAD_NO_JOIN Entropy_IncCounter(void* args)
wolfssl/wolfcrypt/types.h:1574                 #define RETURN_FROM_THREAD_NOJOIN(x) WOLFSSL_RETURN_FROM_THREAD(x)

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.

6 participants