Browse Source

whitespace support; some netbsd pr..

OPENBSD_2_2
deraadt 27 years ago
parent
commit
b723fb2a30
2 changed files with 9 additions and 2 deletions
  1. +3
    -1
      src/lib/libc/string/strmode.3
  2. +6
    -1
      src/lib/libc/string/strmode.c

+ 3
- 1
src/lib/libc/string/strmode.3 View File

@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: strmode.3,v 1.2 1996/08/19 08:34:20 tholo Exp $
.\" $OpenBSD: strmode.3,v 1.3 1997/06/13 13:57:20 deraadt Exp $
.\" .\"
.Dd July 31, 1991 .Dd July 31, 1991
.Dt STRMODE 3 .Dt STRMODE 3
@ -71,6 +71,8 @@ symbolic link
fifo fifo
.It s .It s
socket socket
.It w
whiteout
.It ? .It ?
unknown inode type unknown inode type
.El .El


+ 6
- 1
src/lib/libc/string/strmode.c View File

@ -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++ = '?';


Loading…
Cancel
Save