1 extern struct win
*windows
, *wtab
[];
15 extern struct comm comms
[];
17 extern int WindowByNoN (char *);
18 extern int FindCommnr (char *);
19 extern int AclSetPermCmd (struct auser
*, char *, struct comm
*);
20 extern int AclSetPermWin (struct auser
*, struct auser
*, char *, struct win
*);
24 AclSetPerm(uu
, u
, mode
, s
)
42 return AclSetPerm(uu
, u
, mode
, "#?");
45 AclSetPermWin(uu
, u
, mode
, (struct win
*)1);
47 for (w
= windows
; w
; w
= w
->w_next
)
48 AclSetPermWin((struct auser
*)0, u
, mode
, w
);
53 AclSetPermWin(uu
, u
, mode
, (struct win
*)0);
55 for (i
= 0; i
<= 174; i
++)
56 AclSetPermCmd(u
, mode
, &comms
[i
]);
60 for (p
= s
; *p
&& *p
!= ' ' && *p
!= '\t' && *p
!= ','; p
++)
64 if ((i
= FindCommnr(s
)) != -1)
65 AclSetPermCmd(u
, mode
, &comms
[i
]);
66 else if (((i
= WindowByNoN(s
)) >= 0) && wtab
[i
])
67 AclSetPermWin((struct auser
*)0, u
, mode
, wtab
[i
]);