-
-static char *
-flags_from_fid(flags)
- u_long flags;
-{
- static char buf[20];
- register int comma;
- register char *p;
-
- p = buf;
- if (flags & ARCHIVED) {
- (void)strcpy(p, "arch");
- p += sizeof("arch") - 1;
- comma = 1;
- } else
- comma = 0;
- if (flags & NODUMP) {
- if (comma++)
- *p++ = ',';
- (void)strcpy(p, "nodump");
- p += sizeof("nodump") - 1;
- }
- if (flags & IMMUTABLE) {
- if (comma++)
- *p++ = ',';
- (void)strcpy(p, "nochg");
- p += sizeof("nochg") - 1;
- }
- if (!comma)
- (void)strcpy(p, "-");
- return (buf);
-}