Lines Matching refs:str
46 char *mkmodestr(unsigned long mode, char *str) in mkmodestr() argument
53 case S_IFDIR: str[0] = 'd'; break; in mkmodestr()
54 case S_IFBLK: str[0] = 'b'; break; in mkmodestr()
55 case S_IFCHR: str[0] = 'c'; break; in mkmodestr()
56 case S_IFIFO: str[0] = 'f'; break; in mkmodestr()
57 case S_IFLNK: str[0] = 'l'; break; in mkmodestr()
58 case S_IFSOCK: str[0] = 's'; break; in mkmodestr()
59 case S_IFREG: str[0] = '-'; break; in mkmodestr()
60 default: str[0] = '?'; in mkmodestr()
65 str[9-i] = (mode & mask)?c:'-'; in mkmodestr()
69 if(mode & S_ISUID) str[3] = (mode & S_IXUSR)?'s':'S'; in mkmodestr()
70 if(mode & S_ISGID) str[6] = (mode & S_IXGRP)?'s':'S'; in mkmodestr()
71 if(mode & S_ISVTX) str[9] = (mode & S_IXOTH)?'t':'T'; in mkmodestr()
72 str[10] = '\0'; in mkmodestr()
73 return str; in mkmodestr()