Why is there no interface to get user/group information in std filesystem library extension in C++1y?

StackOverflow https://stackoverflow.com/questions/22845777

Pregunta

stat() system call has been provided by POSIX compliance operating system to fetch various information about a particular file. Microsoft also provides _stat() system calls similar to stat().

Well most of the useful interfaces is provided in library extension "filesystem" proposed(N3803) in C++1y except one important (i.e. group and user id of owner of file).

I am sure that this must have been thought by boost community in their original design. I wanted to know what else could be design constraints which might have restricted it to be implemented?

¿Fue útil?

Solución

Not all systems have a concept of users and groups. Unix has, Windows has something along the same lines. But C++ is a language to program anything, even your toaster. Until the brave NetBSD folks port their system to it, chances are there won't even be distinct users.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top