Acca-unix.170
net.games
utzoo!decvax!ucbvax!z@CCA-UNIX
Wed Sep 23 09:19:57 1981
Restricting game usage
The solution we have adopted for restricting game usage is to have the
shell run games at lower priority. For example, in our version of the
C shell, we have have inserted the following code at the beginning of
the texec routine in sh.exec.c:
char gamename[100];
if (sindex(f, "/games/") || sindex(dcwd->di_name, "/games") &&
!access(strcat(strcpy(gamename, "/usr/games/"), f), 1))
nice(5);
sindex is a routine which we have which returns the index of the second
string in the first, or a null pointer if the second string doesn't exist
in the first.
-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <
[email protected]>
of
http://communication.ucsd.edu/A-News/
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:
The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.