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

ssize_t is not C compliant #2486

Open
2 of 7 tasks
cochicde opened this issue Feb 22, 2019 · 0 comments
Open
2 of 7 tasks

ssize_t is not C compliant #2486

cochicde opened this issue Feb 22, 2019 · 0 comments

Comments

@cochicde
Copy link
Contributor

Description

For sending and receiving packets (UDP and TCP) the result used in the stack is of type ssize_t, which is a posix type, not a standard C type. This comes from using the functions send, recv and similars from posix, which returns these types.

But this comes to a problem to other architectures. For now, the workaround is to define ssize_t normally to int, in the architecture.h file. But in the stack itself (anywhere outside the arch folder) this ssize_t should be changed, maybe to int, but I'm not sure about it

Background Information / Reproduction Steps

Checklist

Please provide the following information:

  • open62541 Version (release number or git tag): master branch
  • Other OPC UA SDKs used (client or server): none
  • Operating system: Any non-posix
  • Logs (with UA_LOGLEVEL set as low as necessary) attached: non applicable
  • Wireshark network dump attached: non applicable
  • Self-contained code example attached: non applicable
  • Critical issue: no
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

No branches or pull requests

1 participant