| 35 | } |
| 36 | |
| 37 | static void print_info_flags(enum logcode f) |
| 38 | { |
| 39 | STRUCT_STAT *dumstat; |
| 40 | BOOL as_json = f == FNONE ? 1 : 0; /* We use 1 == first attribute, 2 == need closing array */ |
| 41 | char line_buf[75], item_buf[32]; |
| 42 | int line_len, j; |
| 43 | char *info_flags[] = { |
| 44 | |
| 45 | "*Capabilities", |
| 46 | |
| 47 | istring("%d-bit files", (int)(sizeof (OFF_T) * 8)), |
| 48 | istring("%d-bit inums", (int)(sizeof dumstat->st_ino * 8)), /* Don't check ino_t! */ |
| 49 | istring("%d-bit timestamps", (int)(sizeof (time_t) * 8)), |
| 50 | istring("%d-bit long ints", (int)(sizeof (int64) * 8)), |
| 51 | |
| 52 | #ifndef HAVE_SOCKETPAIR |
| 53 | "no " |
| 54 | #endif |
| 55 | "socketpairs", |
| 56 | |
| 57 | #ifndef SUPPORT_LINKS |
| 58 | "no " |
| 59 | #endif |
| 60 | "symlinks", |
| 61 | |
| 62 | #ifndef CAN_SET_SYMLINK_TIMES |
| 63 | "no " |
| 64 | #endif |
| 65 | "symtimes", |
| 66 | |
| 67 | #ifndef SUPPORT_HARD_LINKS |
| 68 | "no " |
| 69 | #endif |
| 70 | "hardlinks", |
| 71 | |
| 72 | #ifndef CAN_HARDLINK_SPECIAL |
| 73 | "no " |
| 74 | #endif |
| 75 | "hardlink-specials", |
| 76 | |
| 77 | #ifndef CAN_HARDLINK_SYMLINK |
| 78 | "no " |
| 79 | #endif |
| 80 | "hardlink-symlinks", |
| 81 | |
| 82 | #ifndef INET6 |
| 83 | "no " |
| 84 | #endif |
| 85 | "IPv6", |
| 86 | |
| 87 | #ifndef SUPPORT_ATIMES |
| 88 | "no " |
| 89 | #endif |
| 90 | "atimes", |
| 91 | |
| 92 | "batchfiles", |
| 93 | |
| 94 | #ifndef HAVE_FTRUNCATE |