retire _PROTOTYPE

. only good for obsolete K&R support
	. also remove a stray ansi.h and the proto cmd
This commit is contained in:
Ben Gras
2012-03-24 16:16:34 +01:00
parent cf720a028a
commit 6a73e85ad1
475 changed files with 5256 additions and 6252 deletions

View File

@@ -16,9 +16,9 @@
#include <minix/ansi.h>
#endif
_PROTOTYPE( int mount, (char *_spec, char *_name, int _mountflags,
char *type, char *args) );
_PROTOTYPE( int umount, (const char *_name) );
_PROTOTYPE( int umount2, (const char *_name, int flags) );
int mount(char *_spec, char *_name, int _mountflags, char *type, char
*args);
int umount(const char *_name);
int umount2(const char *_name, int flags);
#endif /* _MOUNT_H */

View File

@@ -25,6 +25,6 @@ struct sysgetenv {
size_t vallen; /* Size of return data buffer. */
};
_PROTOTYPE( int svrctl, (int _request, void *_data) );
int svrctl(int _request, void *_data);
#endif /* _SYS__SVRCTL_H */

View File

@@ -125,17 +125,17 @@ struct termios {
#include <minix/ansi.h>
#endif
_PROTOTYPE( int tcsendbreak, (int _fildes, int _duration) );
_PROTOTYPE( int tcdrain, (int _filedes) );
_PROTOTYPE( int tcflush, (int _filedes, int _queue_selector) );
_PROTOTYPE( int tcflow, (int _filedes, int _action) );
_PROTOTYPE( speed_t cfgetispeed, (const struct termios *_termios_p) );
_PROTOTYPE( speed_t cfgetospeed, (const struct termios *_termios_p) );
_PROTOTYPE( int cfsetispeed, (struct termios *_termios_p, speed_t _speed) );
_PROTOTYPE( int cfsetospeed, (struct termios *_termios_p, speed_t _speed) );
_PROTOTYPE( int tcgetattr, (int _filedes, struct termios *_termios_p) );
_PROTOTYPE( int tcsetattr, \
(int _filedes, int _opt_actions, const struct termios *_termios_p) );
int tcsendbreak(int _fildes, int _duration);
int tcdrain(int _filedes);
int tcflush(int _filedes, int _queue_selector);
int tcflow(int _filedes, int _action);
speed_t cfgetispeed(const struct termios *_termios_p);
speed_t cfgetospeed(const struct termios *_termios_p);
int cfsetispeed(struct termios *_termios_p, speed_t _speed);
int cfsetospeed(struct termios *_termios_p, speed_t _speed);
int tcgetattr(int _filedes, struct termios *_termios_p);
int tcsetattr(int _filedes, int _opt_actions, const struct termios
*_termios_p);
#ifndef cfgetispeed
#define cfgetispeed(termios_p) ((termios_p)->c_ispeed)