search for: tioccbrk

Displaying 4 results from an estimated 4 matches for "tioccbrk".

2003 Aug 03
2
[PATCH] Fix minor breakage on Cygwin: auth-passwd.c and session.c
...first is in auth-passwd.c where it appears Ben got a bit over-enthusiastic cleaning up :-). The patch restores the relevant "#ifdef HAVE_CYGWIN" fragment. The second is in the send-break code in session.c, which won't compile because Cygwin apparently doesn't have TIOCSBRK and TIOCCBRK ioctls. With the patch session_break_req just returns 0 if TIOCSBRK and TIOCCBRK are not defined (which I think is the right thing to do, but I'm not sure). If either of these are wrong please let me know. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4...
2003 May 15
2
Resolver changes broke AIX & HPUX
Hi All. Haven't looked at this yet but it looks like the resolver changes broke AIX and HP-UX. -Daz. AIX 4.3.3.11: gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I../../openbsd-compat -I../../openbsd-compat/.. -I/usr/local/ssl/include -I/usr/local/include -DHAVE_CONFIG_H -c ../../openbsd-compat/getrrsetbyname.c ../../openbsd-compat/getrrsetbyname.c:133: warning: static
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...+ t->c_cc[VMIN] = 1; + t->c_cc[VTIME] = 0; +} + +int +tcsendbreak(fd, len) + int fd, len; +{ + struct timeval sleepytime; + + sleepytime.tv_sec = 0; + sleepytime.tv_usec = 400000; + if (ioctl(fd, TIOCSBRK, 0) == -1) + return (-1); + (void)select(0, 0, 0, 0, &sleepytime); + if (ioctl(fd, TIOCCBRK, 0) == -1) + return (-1); + return (0); +} + +int +tcdrain(fd) + int fd; +{ + + return (ioctl(fd, TIOCDRAIN, 0)); +} + +int +tcflush(fd, which) + int fd, which; +{ + int com; + + switch (which) { + case TCIFLUSH: + com = FREAD; + break; + case TCOFLUSH: + com = FWRITE; + break; + case TCIOFLUS...
2003 Oct 08
4
OS/390 openssh
...ude <sys/bsdtty.h> #endif #include <sys/param.h> /* For MAXPATHLEN and roundup() */ +#ifndef MAXHOSTNAMELEN +# define MAXHOSTNAMELEN 64 +#endif #ifdef HAVE_SYS_UN_H # include <sys/un.h> /* For sockaddr_un */ #endif @@ -135,10 +138,14 @@ #include <sys/strtio.h> /* for TIOCCBRK on HP-UX */ #endif +#if !defined(__MVS__) && !#system(bs2000) #include <netinet/in_systm.h> /* For typedefs */ #include <netinet/in.h> /* For IPv6 macros */ #include <netinet/ip.h> /* For IPTOS macros */ #include <netinet/tcp.h> +#else +#include <netinet/in...