|
@ -32,7 +32,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#if defined(LIBC_SCCS) && !defined(lint) |
|
|
#if defined(LIBC_SCCS) && !defined(lint) |
|
|
static char *rcsid = "$OpenBSD: strmode.c,v 1.2 1996/08/19 08:34:20 tholo Exp $"; |
|
|
|
|
|
|
|
|
static char *rcsid = "$OpenBSD: strmode.c,v 1.3 1997/06/13 13:57:20 deraadt Exp $"; |
|
|
#endif /* LIBC_SCCS and not lint */ |
|
|
#endif /* LIBC_SCCS and not lint */ |
|
|
|
|
|
|
|
|
#include <sys/types.h> |
|
|
#include <sys/types.h> |
|
@ -68,6 +68,11 @@ strmode(mode, p) |
|
|
case S_IFIFO: /* fifo */ |
|
|
case S_IFIFO: /* fifo */ |
|
|
*p++ = 'p'; |
|
|
*p++ = 'p'; |
|
|
break; |
|
|
break; |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifdef S_IFWHT |
|
|
|
|
|
case S_IFWHT: /* whiteout */ |
|
|
|
|
|
*p++ = 'w'; |
|
|
|
|
|
break; |
|
|
#endif |
|
|
#endif |
|
|
default: /* unknown */ |
|
|
default: /* unknown */ |
|
|
*p++ = '?'; |
|
|
*p++ = '?'; |
|
|