ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
@ -19,8 +19,7 @@
|
||||
* fstat -- Since we have no file system, we just return an error.
|
||||
*/
|
||||
int
|
||||
_DEFUN (fstat, (fd, buf),
|
||||
int fd,
|
||||
fstat (int fd,
|
||||
struct stat *buf)
|
||||
{
|
||||
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */
|
||||
|
@ -19,8 +19,7 @@
|
||||
* getpid -- only one process, so just return 1.
|
||||
*/
|
||||
int
|
||||
_DEFUN (getpid, (),
|
||||
)
|
||||
getpid (void)
|
||||
{
|
||||
return __MYPID;
|
||||
}
|
||||
|
@ -20,8 +20,7 @@
|
||||
* serial port, we'll say yes and return a 1.
|
||||
*/
|
||||
int
|
||||
_DEFUN (isatty, (fd),
|
||||
int fd)
|
||||
isatty (int fd)
|
||||
{
|
||||
return (1);
|
||||
}
|
||||
|
@ -19,8 +19,7 @@
|
||||
* kill -- go out via exit...
|
||||
*/
|
||||
int
|
||||
_DEFUN (kill, (pid, sig),
|
||||
int pid,
|
||||
kill (int pid,
|
||||
int sig)
|
||||
{
|
||||
if(pid == __MYPID)
|
||||
|
@ -18,8 +18,7 @@
|
||||
* putnum -- print a 32 bit number in hex
|
||||
*/
|
||||
void
|
||||
_DEFUN (putnum, (num),
|
||||
unsigned int num)
|
||||
putnum (unsigned int num)
|
||||
{
|
||||
char buf[9];
|
||||
int cnt;
|
||||
|
@ -20,8 +20,7 @@
|
||||
* stat -- Since we have no file system, we just return an error.
|
||||
*/
|
||||
int
|
||||
_DEFUN (stat, (path, buf),
|
||||
const char *path,
|
||||
stat (const char *path,
|
||||
struct stat *buf)
|
||||
{
|
||||
errno = EIO;
|
||||
|
Reference in New Issue
Block a user