163271Smckusick /*- 2*63370Sbostic * Copyright (c) 1993 3*63370Sbostic * The Regents of the University of California. All rights reserved. 463271Smckusick * 563271Smckusick * %sccs.include.redist.c% 663271Smckusick */ 763271Smckusick 863271Smckusick #ifndef lint 9*63370Sbostic static char copyright[] = 10*63370Sbostic "@(#) Copyright (c) 1993\n\ 11*63370Sbostic The Regents of the University of California. All rights reserved.\n"; 1263271Smckusick #endif /* not lint */ 1363271Smckusick 1463271Smckusick #ifndef lint 15*63370Sbostic static char sccsid[] = "@(#)cat.c 8.1 (Berkeley) 06/11/93"; 1663271Smckusick #endif /* not lint */ 1763271Smckusick main()1863271Smckusickmain() 1963271Smckusick { 2063271Smckusick register int c, fd; 2163271Smckusick char c; 2263271Smckusick 2363271Smckusick fd = getfile("File", 0); 2463271Smckusick while (read(fd, &c, 1) == 1) 2563271Smckusick putchar(c); 2663271Smckusick exit(0); 2763271Smckusick } 28