swift-system icon indicating copy to clipboard operation
swift-system copied to clipboard

[DRAFT][SKETCH] Ideas for stat.h interface

Open rauhul opened this issue 4 years ago • 4 comments

  • Adds wrapper functions for all posix functions in darwin's stat.h header.
  • Non-posix stat.h functions (<fn>_np) are out of scope of this sketch.
  • fcntrl functions are flags are out of scope of this sketch.

Needs work:

  • Function names
  • API for umask
  • Documentation
  • Tests

rauhul avatar Jul 09 '21 01:07 rauhul

I want to make sure we can make (even if slow) progress on this. @rauhul, have you thought any more about this?

milseman avatar Oct 03 '21 14:10 milseman

@milseman I think we need a good story about fcntl flags and if want to move the non-permissions bits of FilePermissions out into a different type. In the sketch as is, these are called FileModeOther as a placeholder. I think two other open areas are TimeSpecification and function naming.

rauhul avatar Oct 04 '21 03:10 rauhul

Regarding Timespec, it might be interesting to see how we fit in with the outcome of https://forums.swift.org/t/se-0329-clock-instant-date-and-duration/53309

milseman avatar Nov 15 '21 14:11 milseman

@glessard would you be interested in reviving this PR?

rauhul avatar Mar 02 '24 05:03 rauhul