You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty sure that should be fcntl ("file control"), not fnctl: the call is consistent with the use of fcntl on other UNIXes, and as far as I can tell, the newlib git repo defines fcntl but not fnctl. This would need to be fixed in both libstd and liblibc.
But there's an explicit mention of this code in the PR introducing it (#29289), and I'm sort of surprised that this would link if it were misspelled, let alone work, so maybe I'm missing something? If this is correct, a comment would be nice. :)
I noticed that libstd/sys/unix/fd.rs has this code:
I'm pretty sure that should be
fcntl
("file control"), notfnctl
: the call is consistent with the use offcntl
on other UNIXes, and as far as I can tell, the newlib git repo definesfcntl
but notfnctl
. This would need to be fixed in both libstd and liblibc.But there's an explicit mention of this code in the PR introducing it (#29289), and I'm sort of surprised that this would link if it were misspelled, let alone work, so maybe I'm missing something? If this is correct, a comment would be nice. :)
cc @DiamondLovesYou
The text was updated successfully, but these errors were encountered: