|
@@ -1,6 +1,7 @@
|
|
-/* cat_noblock.c - open a file and display its contents, but exit rather than
|
|
|
|
- * wait for input */
|
|
|
|
-
|
|
|
|
|
|
+/*
|
|
|
|
+ * cat_noblock.c - open a file and display its contents, but exit rather than
|
|
|
|
+ * wait for input.
|
|
|
|
+ */
|
|
#include <errno.h> /* for errno */
|
|
#include <errno.h> /* for errno */
|
|
#include <fcntl.h> /* for open */
|
|
#include <fcntl.h> /* for open */
|
|
#include <stdio.h> /* standard I/O */
|
|
#include <stdio.h> /* standard I/O */
|
|
@@ -9,7 +10,6 @@
|
|
|
|
|
|
#define MAX_BYTES 1024 * 4
|
|
#define MAX_BYTES 1024 * 4
|
|
|
|
|
|
-
|
|
|
|
int main(int argc, char *argv[])
|
|
int main(int argc, char *argv[])
|
|
{
|
|
{
|
|
int fd; /* The file descriptor for the file to read */
|
|
int fd; /* The file descriptor for the file to read */
|