Displaying 9 results from an estimated 9 matches for "tcflush".
Did you mean:
cflush
2006 Jul 28
2
Kernel 2.4 in centos 4.3
Hi,
I?m using centos in 4 servers that work as gateway for intranets
where i work. I built a particular kernel for my needs but this kernel
is 2.4.31. So i neeed to boot this kernel in centos 4.3 and centos
4.2. Can anyone help with that? I know the problem is mainly in
modutils because modules cannot be loaded when kernel is loaded. Any
help is very much appreciated.
2008 Nov 25
1
sio vs uart vs ucomm problems / differences
..._cc[VMIN] = 1;
t.c_cc[VTIME] = 0;
tcsetattr(dev->fd, TCSANOW, &t);
val = fcntl(dev->fd, F_GETFL, 0);
if (val >= 0) {
fcntl(dev->fd, F_SETFL, val | O_NONBLOCK);
}
}
else {
tcflush(dev->fd, TCIOFLUSH);
close(dev->fd);
dev->fd = -1;
}
}
else {
if (errno == EINTR)
goto TRY_OPEN_AGAIN;
syslog(LOG_LOCAL1 | LOG_DEBUG,
"(%s) open_dev errno=%d %s",
dev->...
2016 Mar 10
1
Re: Zombie processes being created when console buffer is full
On Fri, Jan 29, 2016 at 10:25:08AM -0800, Peter Steele wrote:
>On 01/29/2016 05:08 AM, Peter Steele wrote:
>> We have been researching stuck zombie processes in our libvirt lxc
>> containers. What we found was:
>>
>> 1) Each zombie’s parent was pid 1. init which symlinks to systemd.
>> 2) In some cases, the zombies were launched by systemd, in others the
>>
2005 Jan 15
0
ppp connection only every second time
...ect: ppp0 <--> /dev/pts/0
Jan 15 14:00:49 waltz pppd[752]: LCP terminated by peer
Jan 15 14:00:52 waltz pppd[752]: Connection terminated.
Jan 15 14:00:52 waltz pppd[752]: Using interface ppp0
Jan 15 14:00:52 waltz pppd[752]: Connect: ppp0 <--> /dev/pts/0
Jan 15 14:00:52 waltz pppd[752]: tcflush failed: Bad file descriptor
Jan 15 14:00:53 waltz pppd[752]: tcsetattr: Invalid argument (line 1001)
Jan 15 14:00:53 waltz pppd[752]: Exit.
Jan 15 14:00:53 waltz pptp[754]: anon warn[decaps_hdlc:pptp_gre.c:197]: short read (-1): Input/output error
Jan 15 14:00:53 waltz pptp[754]: anon warn[decaps_h...
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...eepytime.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 TCIOFLUSH:
+ com = FREAD | FWRITE;
+ break;
+ default:
+ errno = EINVAL;
+ return (-1);
+ }
+ return (ioctl(fd, TIOCFLUSH, &com));
+}...
2009 Jan 26
1
ups emerson liebert GTX2 ESP-II serial protocol demo
...| CS8 | CLOCAL | CREAD;
newtio.c_iflag = IGNPAR | IGNBRK;
newtio.c_oflag = 0;
/* set input mode (non-canonical, no echo,...) */
newtio.c_lflag = 0;
newtio.c_cc[VTIME] = 0; /* inter-character timer unused */
newtio.c_cc[VMIN] = 1; /* blocking read until 5 chars received */
tcflush(fd, TCIFLUSH);
tcsetattr(fd,TCSANOW,&newtio);
signal( SIGALRM, &sgnl_ignore );
while (1) {
for (i=0;i<ncmd;i++) {
//printf("\n***%d:[%03s c0:%03d C1:%03d] init:%03d type:%03d\n",i, c[i].descr,c[i].cmd[0],c[i].cmd[1],c[i].init,c[i].type);
if (c[i].supported==0)...
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...string */
va_start(ap, fmt);
@@ -875,11 +876,13 @@ static int mge_command(char *reply, int
va_end(ap);
/* Delay a bit to avoid overlap of a previous answer */
- usleep(100000);
+ delay.tv_sec = 0; delay.tv_nsec = 100e6;
+ nanosleep(&delay, NULL);
/* flush received, unread data */
tcflush(upsfd, TCIFLUSH);
+ delay.tv_sec = 0; delay.tv_nsec = MGE_CHAR_DELAY;
/* send command */
for (p = command; *p; p++) {
if ( isprint(*p & 0xFF) )
@@ -891,7 +894,7 @@ static int mge_command(char *reply, int
return -1;
bytes_sent++;
- usleep(MGE_CHAR_DELAY);
+ nanosleep(&d...
2006 Sep 18
26
[Bug 512] poptop (pptpd) will not work if ip_nat_pptp loaded
https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=512
------- Additional Comments From kaber@trash.net 2006-09-18 07:36 MET -------
There are still some problems with the PPtP helper, I'm currently trying to fix
these. Can you attach a tcpdump of a failed attempt please?
--
Configure bugmail: https://bugzilla.netfilter.org/bugzilla/userprefs.cgi?tab=email
------- You are
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version"
This series removes some of the really old deadwood from the tools build
and makes some other things which are on their way out configurable at
build time with a default depending on how far down the slope I judge
them to be.
* nuke in tree copy of libaio
* nuke obsolete tools: xsview, miniterm, lomount & sv
*