X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=include%2Fdevices%2Funixserial.h;h=b044d439fdcaa81534209fef54893d4ff221a819;hp=c9be5830caaced3031728b47500f2da3a7ba26c9;hb=0484268a27be1ab830d087847d830bc0ec734016;hpb=975a83d253eea8aa37bf3dfd7e026df3027db4ff diff --git a/include/devices/unixserial.h b/include/devices/unixserial.h index c9be583..b044d43 100644 --- a/include/devices/unixserial.h +++ b/include/devices/unixserial.h @@ -24,20 +24,18 @@ #include "misc.h" -#ifndef UCLINUX -extern int serial_open(__const char *__file, int __oflag); -#endif /* UCLINUX */ -extern int serial_close(int __fd); +int serial_open(__const char *__file, int __oflag); +int serial_close(int __fd); -extern int serial_opendevice(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake); +int serial_opendevice(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake); -extern void serial_setdtrrts(int __fd, int __dtr, int __rts); -extern void serial_changespeed(int __fd, int __speed); +void serial_setdtrrts(int __fd, int __dtr, int __rts); +void serial_changespeed(int __fd, int __speed); -extern size_t serial_read(int __fd, __ptr_t __buf, size_t __nbytes); -extern size_t serial_write(int __fd, __const __ptr_t __buf, size_t __n); +size_t serial_read(int __fd, __ptr_t __buf, size_t __nbytes); +size_t serial_write(int __fd, __const __ptr_t __buf, size_t __n); -extern int serial_select(int fd, struct timeval *timeout); +int serial_select(int fd, struct timeval *timeout); #endif /* __devices_unixserial_h */