[Chapel Merge] File Descriptor Getter for `file`

Branch: refs/heads/main
Revision: cf287b8
Author: mppf
Log Message:

Merge pull request #17988 from king-11/file_fd

File Descriptor Getter for file

[PR by @king-11 - reviewed and tested by @mppf]

  • feat: qio_get_fd function added

  • useful for getting file descriptor primary use case in functions like setsocketopt and fcntl to change the file flags by making a system call

  • fix different return types on set_sys_sockaddr_in_t and set_sys_sockaddr_in6_t in runtime and Sys.chpl

    Modified Files:
    M modules/standard/Sys.chpl
    M runtime/include/qio/qio.h
    M runtime/src/qio/qio.c

    Compare: Comparing a2549220c12f...cf287b88547d · chapel-lang/chapel · GitHub