+++ /dev/null
-/* fstat.c -- get status of a file.\r
- *\r
- * Copyright (c) 1995 Cygnus Support\r
- *\r
- * The authors hereby grant permission to use, copy, modify, distribute,\r
- * and license this software and its documentation for any purpose, provided\r
- * that existing copyright notices are retained in all copies and that this\r
- * notice is included verbatim in any distributions. No written agreement,\r
- * license, or royalty fee is required for any of the authorized uses.\r
- * Modifications to this software may be copyrighted by their authors\r
- * and need not follow the licensing terms described here, provided that\r
- * the new terms are clearly indicated on the first page of each file where\r
- * they apply.\r
- */\r
-#include "stat.h"\r
-#include "glue.h"\r
-\r
-/*\r
- * fstat -- Since we have no file system, we just return an error.\r
- */\r
-int\r
-_DEFUN (fstat, (fd, buf),\r
- int fd _AND\r
- struct stat *buf)\r
-{\r
- #ifdef debuglg\r
- prs("[fstat]\n");\r
- inbyte();\r
- #endif\r
- buf->st_mode = S_IFCHR; /* Always pretend to be a tty */\r
- buf->st_blksize = 0;\r
-\r
- return (0);\r
-}\r