ansification: remove _DEFUN

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz
2017-12-03 21:43:30 -06:00
parent 44276afe2a
commit 9087163804
729 changed files with 1338 additions and 2605 deletions

View File

@@ -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 */

View File

@@ -18,8 +18,7 @@
* getpid -- only one process, so just return 1.
*/
int
_DEFUN (_getpid, (),
)
_getpid (void)
{
return __MYPID;
}

View File

@@ -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);
}

View File

@@ -20,8 +20,7 @@ extern void _exit (int) __attribute__((__noreturn__));
* kill -- go out via exit...
*/
int
_DEFUN (_kill, (pid, sig),
int pid,
_kill (int pid,
int sig)
{
if(pid == __MYPID)

View File

@@ -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++);

View File

@@ -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;

View File

@@ -40,8 +40,7 @@
* _times -- FIXME
*/
int
_DEFUN (_times, _times (buf),
struct tms *buf)
_times (struct tms *buf)
{
errno = EINVAL;
return (-1);
@@ -70,8 +69,7 @@ rtc_write (unsigned char reg, unsigned char val)
* time -- return current time in seconds.
*/
time_t
_DEFUN (time, time (t),
time_t *t)
time (time_t *t)
{
struct tm tm;
time_t ret;
@@ -100,8 +98,7 @@ _DEFUN (time, time (t),
* return the microseconds.
*/
int
_DEFUN (_gettimeofday, _gettimeofday (tv, tz),
struct timeval *tv,
_gettimeofday (struct timeval *tv,
void *tzvp)
{
struct timezone *tz = tzvp;

View File

@@ -22,8 +22,7 @@
* an error.
*/
off_t
_DEFUN (_lseek, (fd, offset, whence),
int fd,
_lseek (int fd,
off_t offset,
int whence)
{

View File

@@ -22,8 +22,7 @@
* an error.
*/
off_t
_DEFUN (_lseek, (fd, offset, whence),
int fd,
_lseek (int fd,
off_t offset,
int whence)
{

View File

@@ -37,8 +37,7 @@ extern time_t _sim_time (void) __asm__("_sim_time");
* time -- return current time in seconds.
*/
time_t
_DEFUN (time, time (t),
time_t *t)
time (time_t *t)
{
time_t ret = _sim_time ();
@@ -52,8 +51,7 @@ _DEFUN (time, time (t),
* _times -- no clock, so return an error.
*/
int
_DEFUN (_times, _times (buf),
struct tms *buf)
_times (struct tms *buf)
{
errno = EINVAL;
return (-1);
@@ -64,8 +62,7 @@ _DEFUN (_times, _times (buf),
* microseconds.
*/
int
_DEFUN (_gettimeofday, _gettimeofday (tv, tz),
struct timeval *tv,
_gettimeofday (struct timeval *tv,
void *tzvp)
{
struct timezone *tz = tzvp;

View File

@@ -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;