nix icon indicating copy to clipboard operation
nix copied to clipboard

fopen(fclose, fseek, fread) binding

Open szdytom opened this issue 4 years ago • 2 comments
trafficstars

type: feature request

It will be really nice to have a binding over file control functions, here is a list I find out:

  • [ ] fopen
  • [ ] fclose
  • [ ] fseek
  • [ ] fread
  • [ ] fwrite
  • [ ] fsetpos
  • [ ] fsync
  • [ ] ftell
  • [ ] freopen
  • [ ] stdin
  • [ ] stdout
  • [ ] stderr

szdytom avatar Mar 30 '21 10:03 szdytom

The standard library does a good job of buffered file I/O. What extra utility would Nix provide if it bound these lower-level functions?

asomers avatar May 30 '21 16:05 asomers

@szdytom do you have a good use case for why Nix needs bindings for these functions, where the standard library won't suffice?

asomers avatar Aug 09 '21 21:08 asomers