void fcb_disp(struct fcb *file,int access,int more){ int k; char temp[10]; for(k=0; k<sizeof(file->ext)/sizeof(&file->ext[0]) ;k++){ if(file->ext[k]){ if(more){ memset(temp,0,sizeof(temp)); printf("%c", fcbs[file->ext[k]].f_type == 'f'?'-':fcbs[file->ext[k]].f_type ); auth_disp(fcbs[file->ext[k]].access); // printf("%s%s%s\t",auth_disp(temp,fcbs[file->ext[k]].access[0]),auth_disp(temp,fcbs[file->ext[k]].access[1]),auth_disp(temp,fcbs[file->ext[k]].access[2])); printf("%s\t", user_disp(temp,fcbs[file->ext[k]].uid)); memset(temp,0,sizeof(temp)); printf("%s\t", group_disp(temp,fcbs[file->ext[k]].gid)); printf("%d\t", fcbs[file->ext[k]].f_size); printf("%d:%d:%d\t", fcbs[file->ext[k]].tm.tm_hour,fcbs[file->ext[k]].tm.tm_min,fcbs[file->ext[k]].tm.tm_sec); printf("%s\n", access?indexs[file->ext[k]].i_name:"??????"); }else{ printf("%s\t", access?indexs[file->ext[k]].i_name:"??????"); } } } printf("\n"); }
SHELL void sign_up() { clrvar(user.mptr); clrvar(user.var); user.number=user.member+1; ult(user.number)->mpost =0; ult(user.number)->post =0; ult(user.number)->mlogin=0; ult(user.number)->login =0; setvar("mpost","0",user.var); setvar("post","0",user.var); setvar("mlogin","0",user.var); setvar("login","0",user.var); for(;;) { setvar("pass","",user.var); msgout(IC_act "今からサインアップを行います。"); user_chk(1); user_rep(user.member+1); user_disp(); msgout(IC_act "以上でよろしいでしょうか?"); if (ynq()) break; msgout(IC_act "中止しますか?"); if (ynq()) { user_guest(""); return; } } user_add(); user_write(); sys_log("| User登録"); where_seta(); }