-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Linux updates #14170
Linux updates #14170
Conversation
O_TMPFILE: since Linux 3.11 O_PATH: since Linux 2.6.39 O_NOATIME: since Linux 2.6.8 O_DIRECT: since Linux 2.4.10
Looks like the conversion to TSa_Family per detect.nim is causing at least one of the tests to fail. If there's interest in this pull request I'll suggest reverting to cint in detect.nim for AF_INET* |
The PR is welcome, but as you noticed the |
@Araq Fixed detect.nim for AF_INET* |
@@ -244,8 +241,6 @@ type | |||
st_atim*: Timespec ## Time of last access. | |||
st_mtim*: Timespec ## Time of last data modification. | |||
st_ctim*: Timespec ## Time of last status change. | |||
reserved: array[3, clong] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This must stay for binary compatibility. NLVM needs it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I was trying to figure out why this was here. Is there a way to hide reserved
from iterators?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently not but we need some new annotation like reserved {.padding.}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> was discussed in nim-lang/RFCs#205 propoosal 4 {.hidden.}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this broke nlvm
* Add posix_memalign() * Add linux-specific open() flags O_TMPFILE: since Linux 3.11 O_PATH: since Linux 2.6.39 O_NOATIME: since Linux 2.6.8 O_DIRECT: since Linux 2.4.10 * Fix Stat type * Fix POSIX AF_INET* const generation
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Undo damage of nim-lang#14170
Not sure where we stand on adding
#define _GNU_SOURCE
to generate constants, but here's some updates if there is interestSome other flags (flags beyond open()) were inadvertently picked up via detect.nim, and changes were required to detect.nim so that nothing was missing from generated lib/posix/posix_linux_amd64_consts.nim