std.posix.futimens() and related functions should take an optional pointer for "times" #22194
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.14.0-dev.2384+cbc05e0b1
Steps to Reproduce and Observed Behavior
It should be possible to call
std.posix.futimens()
with a null pointer fortimes
. This means that the current time must be used.These related functions should also take an optional pointer for
times
:c.futimes()
c.futimens()
c.utimes()
c.utimensat()
Example program:
The program does not build:
Expected Behavior
The example program should build and run successfully.
The text was updated successfully, but these errors were encountered: