fsdbutil.c (a4bf5fb987611aeb78c422312b63b185e39982d7) | fsdbutil.c (9f365aa1d6aab0aca269b54fb5d216ac0e31a06f) |
---|---|
1/* $NetBSD: fsdbutil.c,v 1.2 1995/10/08 23:18:12 thorpej Exp $ */ 2 3/* 4 * Copyright (c) 1995 John T. Kohl 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 112 unchanged lines hidden (view full) --- 121 switch (DIP(dp, di_mode) & IFMT) { 122 case IFDIR: 123 puts("directory"); 124 break; 125 case IFREG: 126 puts("regular file"); 127 break; 128 case IFBLK: | 1/* $NetBSD: fsdbutil.c,v 1.2 1995/10/08 23:18:12 thorpej Exp $ */ 2 3/* 4 * Copyright (c) 1995 John T. Kohl 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 112 unchanged lines hidden (view full) --- 121 switch (DIP(dp, di_mode) & IFMT) { 122 case IFDIR: 123 puts("directory"); 124 break; 125 case IFREG: 126 puts("regular file"); 127 break; 128 case IFBLK: |
129 printf("block special (%d,%d)", 130 major(DIP(dp, di_rdev)), minor(DIP(dp, di_rdev))); | 129 printf("block special (%#jx)", (uintmax_t)DIP(dp, di_rdev)); |
131 break; 132 case IFCHR: | 130 break; 131 case IFCHR: |
133 printf("character special (%d,%d)", 134 major(DIP(dp, di_rdev)), minor(DIP(dp, di_rdev))); | 132 printf("character special (%#jx)", DIP(dp, di_rdev)); |
135 break; 136 case IFLNK: 137 fputs("symlink",stdout); 138 if (DIP(dp, di_size) > 0 && 139 DIP(dp, di_size) < sblock.fs_maxsymlinklen && 140 DIP(dp, di_blocks) == 0) { 141 if (sblock.fs_magic == FS_UFS1_MAGIC) 142 p = (caddr_t)dp->dp1.di_db; --- 235 unchanged lines hidden --- | 133 break; 134 case IFLNK: 135 fputs("symlink",stdout); 136 if (DIP(dp, di_size) > 0 && 137 DIP(dp, di_size) < sblock.fs_maxsymlinklen && 138 DIP(dp, di_blocks) == 0) { 139 if (sblock.fs_magic == FS_UFS1_MAGIC) 140 p = (caddr_t)dp->dp1.di_db; --- 235 unchanged lines hidden --- |