search for: tcgets

Displaying 20 results from an estimated 64 matches for "tcgets".

Did you mean: tcgeta
2014 Jun 11
2
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
While all ?real? ttys may support TIOCGPGRP, /dev/console doesn?t; using TCGETS here allows Linux booted with init=/bin/mksh-static to have working interactive command line (PS1, editing, etc). Reported-by: Dominik George <d.george at tarent.de> Signed-off-by: Thorsten Glaser <t.glaser at tarent.de> --- usr/klibc/isatty.c | 5 +++-- 1 file changed, 3 insertions(+...
2014 Jul 09
0
[klibc:master] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
...rnel.org/?p=libs/klibc/klibc.git;a=commit;h=7763dd33e5b8eed4b9e3c583c02c10176fd550d3 Author: Thorsten Glaser <tg at mirbsd.org> AuthorDate: Wed, 11 Jun 2014 10:02:14 +0200 Committer: H. Peter Anvin <hpa at zytor.com> CommitDate: Wed, 9 Jul 2014 08:21:02 -0700 [klibc] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does While all ?real? ttys may support TIOCGPGRP, /dev/console doesn?t; using TCGETS here allows Linux booted with init=/bin/mksh-static to have working interactive command line (PS1, editing, etc). [ hpa: TCGETS matches glibc, so go with it ] Reported-by: Dom...
2014 Jun 11
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
On 06/11/2014 01:02 AM, Thorsten Glaser wrote: > While all ?real? ttys may support TIOCGPGRP, /dev/console doesn?t; > using TCGETS here allows Linux booted with init=/bin/mksh-static > to have working interactive command line (PS1, editing, etc). > > Reported-by: Dominik George <d.george at tarent.de> > Signed-off-by: Thorsten Glaser <t.glaser at tarent.de> > --- > usr/klibc/isatty.c | 5 +++-- &...
2000 Dec 05
1
Bugreport: openssh-2.3.0p1 scp to SSH2 (2.0.13) server
...penssh to ssh2 does not work. Lack of other platforms made it impossible for me to test different machines. strace from the exec'ed ssh where the error happened: read(4, "\n", 1) = 1 ioctl(4, SNDCTL_TMR_START, {B38400 opost isig icanon echo ...}) = 0 ioctl(4, TCGETS, {B38400 opost isig icanon echo ...}) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 write(4, "\n", 1) = 1 close(4) = 0 open("/dev/tty", O_RDWR) = 4 write(4, "...
2014 Jun 11
2
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
I guess what I wanted to say is that it might be desirable to have the klibc shell do some dancing (perhaps controlled by some flags, but on by default?) If getpid() == 1 then fork a child, continue in the child, have the parent wait for the child to terminate, then exit child should setsid() close(2) close(1) close(0) open("/dev/ttyS0", O_RDONLY) open("/dev/ttyS0",
2014 Jun 12
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
Maciej ?enczykowski dixit: >I guess what I wanted to say is that it might be desirable to have the >klibc shell do some dancing (perhaps controlled by some flags, but on There is no klibc shell. >child should > >setsid() >close(2) >close(1) >close(0) >open("/dev/ttyS0", O_RDONLY) >open("/dev/ttyS0", O_WRONLY|O_NOCTTY)
2014 Jun 11
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
Does ctrl+c work? My experience with (non klibc) init=/bin/bash is that getting ctrl+c to work requires some jumping through hoops, because running as pid 1 doesn't really work. If I recall correctly you have to call setsid, and open a tty as a controlling tty, you can't call setsid as pid 1. The hack that I got to work (for reference, I'm using this for raw kernel testing
2006 Jun 06
1
Asterisk 1.2.7.1 bad file descriptor
...NCH], NULL, 8) = 0 time([1149625396]) = 1149625396 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 ioctl(0, TIOCGWINSZ, {ws_row=37, ws_col=111, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(0, TIOCSWINSZ, {ws_row=37, ws_col=111, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0 rt_sigpro...
2010 Nov 05
4
xe cli not working on remote machine
...Connecting via stunnel to [192.1"..., 143Connecting via stunnel to [192.168.111.17] port [443] stunnel: stunnel has pidty: (StdFork 21996) stunnel: stunnel start: Log from stunnel: [] ) = 143 write(5, "POST /cli HTTP/1.0\r\nUser-agent: "..., 106) = 106 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 read(5, 0xffd02fa8, 27)                 = -1 ECONNRESET (Connection reset by peer) stat64("", 0xffd06fac)                  = -1 ENOENT (No such file or directory) --- SIGCHLD (Child exited) @ 0 (0) --- close(5)                                = 0 w...
2014 Jun 11
3
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
H. Peter Anvin dixit: >But is that really a tty, then? I also understand that virtio console Hm. Both eglibc and dietlibc return true for isatty on it. >doesn't support termios, which makes this an ugly bifurcation. All of Let me test that? quick? hah not really (CONFIG_VIRTIO_CONSOLE=m)? ok luckily Ubuntu?s linux-image-3.15.0-5-generic is installable on Debian stable and has
2008 Dec 10
0
No subject
...cat /etc/nut/ups.conf [PRPC650] driver = powercom port = /dev/ttyUSB0 desc = "Test" Trying with strace shows the following: 12369 open("/dev/ttyUSB0", O_RDWR|O_EXCL|O_NOCTTY|O_NONBLOCK) = 4 12369 flock(4, LOCK_EX|LOCK_NB) = 0 12369 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B1200 -opost -isig -icanon -echo ...}) = 0 12369 ioctl(4, TCFLSH, 0) = 0 12369 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B1200 -opost -isig -icanon -echo ...}) = 0 12369 ioctl(4, SNDCTL_TMR_START or TCSETS, {B1200 -opost -isig -icanon -echo ...}) = 0 12369 ioctl(4, SNDCTL_TMR_TIMEBAS...
2002 Aug 09
0
still seeing hangs -- strace
...1 (in [3]) read(3, "4\217\321\351`\230\t\32\nx\2150\246\2\352Z\255\33?\314"..., 8192) = 96 close(6) = 0 select(7, [3], [3], NULL, NULL) = 1 (out [3]) write(3, "\361RK\276\257\23u\2265JmI\272(|4\346b.\2760@k\237-_x\252"..., 32) = 32 ioctl(0, TCGETS, 0xbffffa08) = -1 EINVAL (Invalid argument) fcntl64(0, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) fcntl64(0, F_SETFL, O_RDWR) = 0 ioctl(1, TCGETS, 0xbffffa08) = -1 EINVAL (Invalid argument) fcntl64(1, F_GETFL) = 0x802 (flags...
2016 Aug 30
1
UPS shutdown
...{0x76f568e8, [], SA_SIGINFO|0x4000000}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x76f56794, [], SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0 write(1, "Network UPS Tools - UPS driver c"..., 51Network UPS Tools - UPS driver controller 1.01-900 ) = 51 brk(0) = 0x15000 brk(0x...
2002 May 30
0
update on hung rsyncs
...ot;%\3477\336^\255\n\255I"..., 8192) = 96 brk(0x809d000) = 0x809d000 close(6) = 0 select(7, [3], [3], NULL, NULL) = 1 (out [3]) write(3, "\204\355\2058\330\360\242<\313\233QMc\311\307?\322\351"..., 32) = 32 ioctl(0, TCGETS, 0xbffffa18) = -1 EINVAL (Invalid argument) fcntl64(0, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) fcntl64(0, F_SETFL, O_RDWR) = 0 ioctl(1, TCGETS, 0xbffffa18) = -1 EINVAL (Invalid argument) fcntl64(1, F_GETFL) = 0x802 (flags...
2015 Jun 09
4
File copy operation blocks on Samba share
...t, 32128); This works fine for almost all of the files, however the perl script always blocks in uninterruptable sleep on one file in particular. If I strace it, I see this result: open("/mnt/Share/file.odt", O_RDONLY) = 7 ioctl(7, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fff3cdd9f20) = -1 ENOTTY (Inappropriate ioctl for device) lseek(7, 0, SEEK_CUR) = 0 fstat(7, {st_mode=S_IFREG|0644, st_size=131018, ...}) = 0 fcntl(7, F_SETFD, FD_CLOEXEC) = 0 open("/usr/local/share/dest.odt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 8 ioctl(8, SN...
1999 Aug 26
0
smbsh always segfaults
...ET, start=0, len=1}) = 0 fstat(1023, {st_mode=S_ISVTX|0436, st_size=0, ...}) = 0 fcntl(1023, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0 fstat(1, {st_mode=S_ISVTX|0400, st_size=0, ...}) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0 fstat(0, {st_mode=S_ISVTX|0400, st_size=0, ...}) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000 ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0 write(1, "Username: ", 10Username: ) = 1...
2015 Nov 30
1
Re: "Failed to start domain..."
...NULL, 8) = 0 25533 write(3, "\343(\317\376\241\r\36\306\6\344T\302\217mdTt\23\326\225\330'\375$\7\215\307\0301\211\226\210\\\261x\277\245\342\3149\206R\223@\26\233M\345|\320\337 x\336\325\370'\17w~", 60) = 60 25533 ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7ffe60de40e0) = -1 ENOTTY (Inappropriate ioctl for device) 25533 fcntl(0, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) 25533 fcntl(0, F_SETFL, O_RDWR) = 0 25533 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7ffe60de40e0) = -1 ENOTTY (Inappropriate ioctl for device)...
2015 Nov 25
2
"Failed to start domain..."
Sadly, I'm back with another issue. I can do a "system list --all" just fine; however, if I attempt to start the machines, I get back: maas@Bill-MAAS-cc:~$ strace -s 1024 -f -o /tmp/asdfasdf.log virsh -c vbox+ssh://gbadmin@10.20.0.1/system start PXE-client-07 error: Failed to start domain PXE-client-07 error: An error occurred, but the cause is unknown Log files on both client
2019 Jan 24
2
debian10+dovecot-2.2.33.2
...1, 0, NULL, NULL) = 41 select(4, [0 3], [1], [3], {tv_sec=0, tv_usec=0}) = 2 (in [3], out [1], left {tv_sec=0, tv_usec=0}) write(1, "* BYE Disconnected: Auth process"..., 40* BYE Disconnected: Auth process broken ) = 40 recvfrom(3, "", 8151, 0, NULL, NULL)??? = 0 ...... ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, FIONBIO, [0])????????????????? = 0 ioctl(1, FIONBIO, [0])????????????????? = 0 write(2, "Connection closed...
2015 Nov 13
0
[Bug 1860] UseDNS option ignored
...: 20538: xgetsockaddr(UW71|XPG4, REMOTENAME, 3, 0x08047ADC, 0x08047B60) = 0 20538: gettimeofday(0x08047070, 0xBFF5A870) = 0 20538: getpid() = 20538 [ 20271 ] 20538: open("/etc/resolv.conf", O_RDONLY, 0666) = 4 20538: ioctl(4, TCGETS, 0x08046F64) Err#25 ENOTTY Which makes me think this is canohost.c:get_remote_hostname(). It does a getpeername() call that is probably the xgetscoaddr call above. It then does a: if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop), NULL, 0, NI_NUMERIC...