Home
last modified time | relevance | path

Searched refs:catfd (Results 1 – 1 of 1) sorted by relevance

/titanic_41/usr/src/cmd/gencat/
H A Dgencat.c92 int catfd; /* File descriptor of catalog file */ variable
1141 catfd = 1; /* Use stdout */
1143 catfd = open(catfname, O_WRONLY | O_CREAT | O_EXCL, 0666);
1144 if (catfd < 0) { /* file exists */
1146 (catfd = open(catfname, O_RDWR)) < 0) {
1154 readcat(catfd, catfname);
1155 if (lseek(catfd, 0L, 0) < 0) {
1186 (void) ftruncate(catfd, 0L);
1189 writecat(catfd, catfname);