X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=common%2Fdevices%2Funixserial.c;h=80b4b7abc0dcb6acfd277d5dee1e5e4900cde2cf;hp=9594d890e21e20a5a5c3140fa78c5a299139262e;hb=refs%2Fheads%2Fats;hpb=e1413f172e2c080b63889db8a957f7f7c984a33e;ds=sidebyside diff --git a/common/devices/unixserial.c b/common/devices/unixserial.c index 9594d89..80b4b7a 100644 --- a/common/devices/unixserial.c +++ b/common/devices/unixserial.c @@ -11,6 +11,9 @@ Released under the terms of the GNU GPL, see file COPYING for more details. $Log$ + Revision 1.1.1.6 2002/04/03 01:44:15 short + Implemented connection type "tcp" (GCT_TCP), use : as "port" + Revision 1.1.1.5 2002/04/03 00:08:07 short Found in "gnokii-working" directory, some November-patches version @@ -113,7 +116,7 @@ static void device_script_cfgfunc(const char *section,const char *key,const char setenv(key,value,1/*overwrite*/); /* errors ignored */ } -static int device_script(int fd, const char *section) +int device_script(int fd, const char *section) { pid_t pid; const char *scriptname = CFG_Get(CFG_Info, "global", section); @@ -159,7 +162,7 @@ int status; int serial_close_all_openfds[0x10]; /* -1 when entry not used, fd otherwise */ int serial_close(int __fd); -static void serial_close_all(void) +void serial_close_all(void) { int i; @@ -169,7 +172,7 @@ static void serial_close_all(void) serial_close(serial_close_all_openfds[i]); } -static void unixserial_interrupted(int signo) +void unixserial_interrupted(int signo) { exit(EXIT_FAILURE); /* NOTREACHED */