Page MenuHomeFreeBSD

Document st_flags in the stat(2).
ClosedPublic

Authored by sobomax on May 22 2017, 5:02 AM.
Tags
None
Referenced Files
F103574687: D10852.id28698.diff
Tue, Nov 26, 4:29 PM
F103574681: D10852.id29721.diff
Tue, Nov 26, 4:29 PM
F103574668: D10852.id.diff
Tue, Nov 26, 4:29 PM
F103574665: D10852.id28651.diff
Tue, Nov 26, 4:29 PM
F103573427: D10852.diff
Tue, Nov 26, 4:05 PM
Unknown Object (File)
Sun, Nov 24, 7:54 PM
Unknown Object (File)
Fri, Nov 22, 7:31 PM
Unknown Object (File)
Tue, Nov 19, 7:21 PM

Details

Summary

The st_flags is quite important bit of info returned by the stat and used a lot around the code, yet not mentioned in the man page. Fill in the void by xref-ing chflags manpage.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 9429

Event Timeline

vangyzen added a subscriber: vangyzen.
vangyzen added inline comments.
lib/libc/sys/stat.2
31

Remember to bump this when you commit.

141

"User-defined" should be hyphenated.

Add "the" before "file".

This revision is now accepted and ready to land.May 22 2017, 12:34 PM
jilles added inline comments.
lib/libc/sys/stat.2
141

I think "user-defined" should be removed entirely, since file flags are no more user-defined than permission bits are.

lib/libc/sys/stat.2
141

Good point. Agreed.

Maybe the original author meant "user-assigned", but even that seems too verbose.

mckusick added inline comments.
lib/libc/sys/stat.2
141

I concur with jilles. I would word it as "The file's flags." or perhaps "The flags enabled for the file.''

This revision now requires changes to proceed.May 22 2017, 9:48 PM

With suggested change, I am happy with this (useful) update.

This revision is now accepted and ready to land.May 22 2017, 10:05 PM
sobomax edited edge metadata.

Re-phrase a bit based on suggestions.

This revision now requires review to proceed.May 23 2017, 1:47 AM

Adjusted a bit as suggested.

This revision is now accepted and ready to land.May 23 2017, 12:52 PM

Looks good. Make it so.

This revision was automatically updated to reflect the committed changes.