* Copyright (c) 1990 The Regents of the University of California.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)strmode.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
case S_IFDIR
: /* directory */
case S_IFCHR
: /* character special */
case S_IFBLK
: /* block special */
case S_IFREG
: /* regular */
case S_IFLNK
: /* symbolic link */
case S_IFSOCK
: /* socket */
switch (mode
& (S_IXUSR
| S_ISUID
)) {
switch (mode
& (S_IXGRP
| S_ISGID
)) {
switch (mode
& (S_IXOTH
| S_ISVTX
)) {
*p
++ = ' '; /* will be a '+' if ACL's implemented */