ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
@ -18,8 +18,7 @@
|
||||
* close -- We don't need to do anything, but pretend we did.
|
||||
*/
|
||||
int
|
||||
_DEFUN (_close ,(fd),
|
||||
int fd)
|
||||
_close (int fd)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
@ -18,8 +18,7 @@
|
||||
* _exit -- Just cause a breakpoint so user can see why we exited.
|
||||
*/
|
||||
void
|
||||
_DEFUN (_exit, (val),
|
||||
int val)
|
||||
_exit (int val)
|
||||
{
|
||||
while (1) {
|
||||
asm("bkpt");
|
||||
|
@ -15,8 +15,7 @@
|
||||
#include <_ansi.h>
|
||||
|
||||
int
|
||||
_DEFUN (inbyte, (),
|
||||
void)
|
||||
inbyte (void)
|
||||
|
||||
{
|
||||
return -1;
|
||||
|
@ -33,8 +33,7 @@
|
||||
* outbyte -- send a byte to the UART.
|
||||
*/
|
||||
void
|
||||
_DEFUN (outbyte, (ch),
|
||||
char ch)
|
||||
outbyte (char ch)
|
||||
{
|
||||
while (!(*SRREG & TRDY))
|
||||
;
|
||||
|
@ -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 */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* getpid -- only one process, so just return 1.
|
||||
*/
|
||||
int
|
||||
_DEFUN (_getpid, (),
|
||||
)
|
||||
_getpid (void)
|
||||
{
|
||||
return __MYPID;
|
||||
}
|
||||
|
@ -18,8 +18,7 @@
|
||||
* kill -- go out via exit...
|
||||
*/
|
||||
int
|
||||
_DEFUN (_kill, (pid, sig),
|
||||
int pid,
|
||||
_kill (int pid,
|
||||
int sig)
|
||||
{
|
||||
if(pid == __MYPID)
|
||||
|
@ -20,8 +20,7 @@
|
||||
* lseek -- Since a serial port is non-seekable, we return an error.
|
||||
*/
|
||||
off_t
|
||||
_DEFUN (_lseek, (fd, offset, whence),
|
||||
int fd,
|
||||
_lseek (int fd,
|
||||
off_t offset,
|
||||
int whence)
|
||||
{
|
||||
|
@ -20,8 +20,7 @@
|
||||
* we return an error.
|
||||
*/
|
||||
int
|
||||
_DEFUN (_open, (buf, flags, mode),
|
||||
const char *buf,
|
||||
_open (const char *buf,
|
||||
int flags,
|
||||
int mode)
|
||||
{
|
||||
|
@ -18,8 +18,7 @@
|
||||
* print -- do a raw print of a string
|
||||
*/
|
||||
void
|
||||
_DEFUN (_print, (ptr),
|
||||
char *ptr)
|
||||
_print (char *ptr)
|
||||
{
|
||||
while (*ptr) {
|
||||
outbyte (*ptr++);
|
||||
|
@ -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;
|
||||
|
@ -15,8 +15,7 @@
|
||||
#include "glue.h"
|
||||
|
||||
int
|
||||
_DEFUN (_raise, (sig),
|
||||
int sig)
|
||||
_raise (int sig)
|
||||
{
|
||||
return _kill (_getpid (), sig);
|
||||
}
|
||||
|
@ -21,8 +21,7 @@ extern char inbyte (void);
|
||||
* we only have stdin.
|
||||
*/
|
||||
int
|
||||
_DEFUN (_read, (fd, buf, nbytes),
|
||||
int fd,
|
||||
_read (int fd,
|
||||
char *buf,
|
||||
int nbytes)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -20,8 +20,7 @@
|
||||
* we just return an error.
|
||||
*/
|
||||
int
|
||||
_DEFUN (_unlink, (path),
|
||||
char * path)
|
||||
_unlink (char * path)
|
||||
{
|
||||
errno = EIO;
|
||||
return (-1);
|
||||
|
@ -22,8 +22,7 @@ extern int _EXFUN (outbyte, (char x));
|
||||
* open will only return an error.
|
||||
*/
|
||||
int
|
||||
_DEFUN (_write, (fd, buf, nbytes),
|
||||
int fd,
|
||||
_write (int fd,
|
||||
char *buf,
|
||||
int nbytes)
|
||||
{
|
||||
|
Reference in New Issue
Block a user