move compatibility hooks for S_ISREG et al to conf.h
[unix-history] / usr / src / sys / stand.att / getfile.c
CommitLineData
3f62363f
KB
1/*
2 * Copyright (c) 1988 Regents of the University of California.
3 * All rights reserved.
4 *
dbf0c423 5 * %sccs.include.redist.c%
3f62363f 6 *
38a01dbe 7 * @(#)getfile.c 7.7 (Berkeley) %G%
3f62363f
KB
8 */
9
8ce1460e
KB
10#include <sys/param.h>
11#include <sys/time.h>
38a01dbe 12#include <stand/saio.h>
3f62363f
KB
13
14getfile(prompt, mode)
15 char *prompt;
16 int mode;
17{
18 int fd;
19 char buf[100];
20
21 do {
22 printf("%s: ", prompt);
23 gets(buf);
24 } while ((fd = open(buf, mode)) <= 0);
25 return(fd);
26}