blob: 4ed12db9437cef8caeaf77b0f9063ccee3fda4ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
include <protect.h>
include <error.h>
# PROTECT -- Protect a list of files.
procedure t_protect()
char fname[SZ_FNAME]
int list, status
int clpopns(), clgfil(), protect()
begin
list = clpopns ("files")
while (clgfil (list, fname, SZ_FNAME) != EOF)
iferr (status = protect (fname, SET_PROTECTION))
call erract (EA_WARN)
call clpcls (list)
end
|