-
-static char *
-flags_from_fid(flags)
- long flags;
-{
- static char buf[FLAGSWIDTH + 1];
- int size;
-
- size = FLAGSWIDTH;
- buf[0] = '\0';
- if (size && (flags & NODUMP)) {
- strncat(buf, "nodump", size);
- size -= 6;
- } else {
- strncat(buf, "dump", size);
- size -= 4;
- }
- if (size && (flags & IMMUTABLE)) {
- strncat(buf, ",nochg", size);
- size -= 6;
- }
- if (size && (flags & ARCHIVED)) {
- strncat(buf, ",arch", size);
- size -= 5;
- }
- return (buf);
-}