Displaying 20 results from an estimated 38 matches for "ws_col".
Did you mean:
s_cols
2006 Jun 06
1
Asterisk 1.2.7.1 bad file descriptor
...dy.[1;37;40mAsterisk Ready.\n", 27
) = 27
write(1, "\33[0;37;40m", 10) = 10
rt_sigprocmask(SIG_UNBLOCK, [HUP INT PIPE TERM WINCH], 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_STO...
2009 May 15
3
[LLVMdev] [Cygwin] bug on SVN
...rkbench/lib/System'
make: *** [all] Error 1
Having IOCTL.H does not seem to be a strict enough test for struct
winsize'es presence.
#ifdef HAVE_SYS_IOCTL_H
// Try to determine the width of the terminal.
struct winsize ws;
if (ioctl(FileID, TIOCGWINSZ, &ws) == 0)
Columns = ws.ws_col;
#endif
I could not see any changes in Process.cpp's SVN that could have caused
this.
Anyone got a clue ?
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090515/91967465/attachment.html>
2009 May 15
0
[LLVMdev] [Cygwin] bug on SVN
...1
>
> Having IOCTL.H does not seem to be a strict enough test for struct
> winsize'es presence.
>
> #ifdef HAVE_SYS_IOCTL_H
> // Try to determine the width of the terminal.
> struct winsize ws;
> if (ioctl(FileID, TIOCGWINSZ, &ws) == 0)
> Columns = ws.ws_col;
> #endif
>
> I could not see any changes in Process.cpp's SVN that could have
> caused this.
> Anyone got a clue ?
>
It's my change, here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077380.html
Is struct winsize declared anywhere in the Cyg...
2002 Feb 06
2
SFTP Status Bar..
...int ctty_pgrp;
+
+ if (pgrp == -1)
+ pgrp = getpgrp();
+
+ return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 &&
+ ctty_pgrp == pgrp));
+}
+
+int
+getttywidth(void)
+{
+ struct winsize winsize;
+
+ if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1)
+ return (winsize.ws_col ? winsize.ws_col : 80);
+ else
+ return (80);
+}
+
+void
+progressmeter(off_t statbytes, off_t totalbytes, char *filename)
+{
+#define STALLTIME 5 /* number of seconds before xfer assumed "stalled" */
+ static const char prefixes[] = " KMGTP";
+ static char *progressbar =...
2013 May 15
2
FLAC currently won't compile for Android [bisected]
Felix Homann wrote:
> Here are the warnings I get with 03a9e6064d406e3656afacdbe50e8e47ebfa0de3:
It seems Android sys/param.h doesn't define MIN/MAX.
Could you try to revert this commit on current master (or simply
change line 35 of src/libFLAC/include/private/macros.h back to
#if defined(__GNUC__)
) and recompile? Or possibly bisect 03a9e60..master to find out when
the
2009 May 15
5
[LLVMdev] [Cygwin] bug on SVN
...make: *** [all] Error 1
Having IOCTL.H does not seem to be a strict enough test for struct winsize'es presence.
#ifdef HAVE_SYS_IOCTL_H
// Try to determine the width of the terminal.
struct winsize ws;
if (ioctl(FileID, TIOCGWINSZ, &ws) == 0)
Columns = ws.ws_col;
#endif
I could not see any changes in Process.cpp's SVN that could have caused this.
Anyone got a clue ?
>It's my change, here:
>http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077380.html
>Is struct winsize declared anywhere in the...
2002 Jan 30
1
Quick sftp status indicator.
...omicio(write, fileno(stdout), buf, strlen(buf));
+
+ if (flag == 1) {
+ alarm(0);
+ atomicio(write, fileno(stdout), "\n", 1);
+ statbytes = 0;
+ }
+}
+
+int
+getttywidth(void)
+{
+ struct winsize winsize;
+
+ if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1)
+ return (winsize.ws_col ? winsize.ws_col : 80);
+ else
+ return (80);
+}
Index: misc.h
===================================================================
RCS file: /cvs/src/usr.bin/ssh/misc.h,v
retrieving revision 1.11
diff -u -r1.11 misc.h
--- misc.h 2002/01/24 21:09:25 1.11
+++ misc.h 2002/01/29 23:16:28
@@ -30,4 +30,...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...if (totalbytes == statbytes) {
+ atomicio(write, fileno(stdout), "\n", 1);
+
+ /* Clean up for next usage */
+ xfree(start);
+ start = NULL;
+ }
+}
+
+int
+getttywidth(void)
+{
+ struct winsize winsize;
+
+ if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1)
+ return (winsize.ws_col ? winsize.ws_col : 80);
+ else
+ return (80);
+}
Index: misc.h
===================================================================
RCS file: /cvs/src/usr.bin/ssh/misc.h,v
retrieving revision 1.11
diff -u -r1.11 misc.h
--- misc.h 2002/01/24 21:09:25 1.11
+++ misc.h 2002/02/02 21:47:40
@@ -30,4 +30,...
2003 Oct 13
1
Problem in sftp 'ls' command output
...ag & SHORT_VIEW)) {
int m = 0, width = 80;
struct winsize ws;
/* Count entries for sort and find longest filename */
for (n = 0; d[n] != NULL; n++)
m = MAX(m, strlen(d[n]->filename));
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
width = ws.ws_col;
columns = width / (m + 2);
columns = MAX(columns, 1);
colspace = width / columns;
}
--------
which aims to compute the column width and column spacing.
But when printing, a few lines below, we perform :
--------
tmp = path_append(path, d[n]->filename);
fname = path_strip(tmp,...
2019 Nov 13
2
[PATCH v2] virtio_console: allocate inbufs in add_port() only if it is needed
...vers/char/virtio_console.c
> > index 7270e7b69262..9e6534fd1aa4 100644
> > --- a/drivers/char/virtio_console.c
> > +++ b/drivers/char/virtio_console.c
> > @@ -1325,24 +1325,24 @@ static void set_console_size(struct port *port, u16 rows, u16 cols)
> > port->cons.ws.ws_col = cols;
> > }
> >
> > -static unsigned int fill_queue(struct virtqueue *vq, spinlock_t *lock)
> > +static int fill_queue(struct virtqueue *vq, spinlock_t *lock)
> > {
> > struct port_buffer *buf;
> > - unsigned int nr_added_bufs;
> > + int nr_ad...
2019 Nov 13
2
[PATCH v2] virtio_console: allocate inbufs in add_port() only if it is needed
...vers/char/virtio_console.c
> > index 7270e7b69262..9e6534fd1aa4 100644
> > --- a/drivers/char/virtio_console.c
> > +++ b/drivers/char/virtio_console.c
> > @@ -1325,24 +1325,24 @@ static void set_console_size(struct port *port, u16 rows, u16 cols)
> > port->cons.ws.ws_col = cols;
> > }
> >
> > -static unsigned int fill_queue(struct virtqueue *vq, spinlock_t *lock)
> > +static int fill_queue(struct virtqueue *vq, spinlock_t *lock)
> > {
> > struct port_buffer *buf;
> > - unsigned int nr_added_bufs;
> > + int nr_ad...
2009 May 18
0
[LLVMdev] [Cygwin] bug on SVN
...does not seem to be a strict enough test for struct
>> winsize'es presence.
>>
>> #ifdef HAVE_SYS_IOCTL_H
>> // Try to determine the width of the terminal.
>> struct winsize ws;
>> if (ioctl(FileID, TIOCGWINSZ, &ws) == 0)
>> Columns = ws.ws_col;
>> #endif
>>
>> I could not see any changes in Process.cpp's SVN that could have
>> caused this.
>> Anyone got a clue ?
>>
>
> >It's my change, here:
>
> >http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-
> Mon-20090511/077...
2019 Nov 13
2
[PATCH v2] virtio_console: allocate inbufs in add_port() only if it is needed
...diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 7270e7b69262..9e6534fd1aa4 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1325,24 +1325,24 @@ static void set_console_size(struct port *port, u16 rows, u16 cols)
port->cons.ws.ws_col = cols;
}
-static unsigned int fill_queue(struct virtqueue *vq, spinlock_t *lock)
+static int fill_queue(struct virtqueue *vq, spinlock_t *lock)
{
struct port_buffer *buf;
- unsigned int nr_added_bufs;
+ int nr_added_bufs;
int ret;
nr_added_bufs = 0;
do {
buf = alloc_buf(vq->vde...
2019 Nov 13
2
[PATCH v2] virtio_console: allocate inbufs in add_port() only if it is needed
...diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 7270e7b69262..9e6534fd1aa4 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1325,24 +1325,24 @@ static void set_console_size(struct port *port, u16 rows, u16 cols)
port->cons.ws.ws_col = cols;
}
-static unsigned int fill_queue(struct virtqueue *vq, spinlock_t *lock)
+static int fill_queue(struct virtqueue *vq, spinlock_t *lock)
{
struct port_buffer *buf;
- unsigned int nr_added_bufs;
+ int nr_added_bufs;
int ret;
nr_added_bufs = 0;
do {
buf = alloc_buf(vq->vde...
2019 Nov 14
3
[PATCH v3] virtio_console: allocate inbufs in add_port() only if it is needed
...diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 7270e7b69262..3259426f01dc 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1325,24 +1325,24 @@ static void set_console_size(struct port *port, u16 rows, u16 cols)
port->cons.ws.ws_col = cols;
}
-static unsigned int fill_queue(struct virtqueue *vq, spinlock_t *lock)
+static int fill_queue(struct virtqueue *vq, spinlock_t *lock)
{
struct port_buffer *buf;
- unsigned int nr_added_bufs;
+ int nr_added_bufs;
int ret;
nr_added_bufs = 0;
do {
buf = alloc_buf(vq->vde...
2019 Nov 14
3
[PATCH v3] virtio_console: allocate inbufs in add_port() only if it is needed
...diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 7270e7b69262..3259426f01dc 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1325,24 +1325,24 @@ static void set_console_size(struct port *port, u16 rows, u16 cols)
port->cons.ws.ws_col = cols;
}
-static unsigned int fill_queue(struct virtqueue *vq, spinlock_t *lock)
+static int fill_queue(struct virtqueue *vq, spinlock_t *lock)
{
struct port_buffer *buf;
- unsigned int nr_added_bufs;
+ int nr_added_bufs;
int ret;
nr_added_bufs = 0;
do {
buf = alloc_buf(vq->vde...
2002 Mar 08
0
[Bug 152] New: Build failure on Sparc/Solaris 2.8 with Sun cc or gcc
...-rand-helper\" -DHAVE_CONFIG_H -c
ssh.c
"ssh.c", line 898: incomplete struct/union/enum winsize: ws
"ssh.c", line 936: undefined symbol: TIOCGWINSZ
"ssh.c", line 938: undefined struct/union member: ws_row
"ssh.c", line 939: undefined struct/union member: ws_col
"ssh.c", line 940: undefined struct/union member: ws_xpixel
"ssh.c", line 941: undefined struct/union member: ws_ypixel
"ssh.c", line 1055: incomplete struct/union/enum winsize: ws
"ssh.c", line 1061: undefined symbol: TIOCGWINSZ
"ssh.c", line 1066:...
2019 Mar 19
0
[PATCH] virtio_console: initialize vtermno value for ports
...ports_driver_data pdrvdata = { .next_vtermno = 1};
static DEFINE_SPINLOCK(pdrvdata_lock);
static DECLARE_COMPLETION(early_console_added);
@@ -1394,6 +1394,7 @@ static int add_port(struct ports_device *portdev, u32 id)
port->async_queue = NULL;
port->cons.ws.ws_row = port->cons.ws.ws_col = 0;
+ port->cons.vtermno = 0;
port->host_connected = port->guest_connected = false;
port->stats = (struct port_stats) { 0 };
--
2.20.1
2013 May 23
2
FLAC currently won't compile for Android [bisected]
...efined _WIN32
width = win_get_console_width();
#elif defined __EMX__
- int s[2];
- _scrsize (s);
- width = s[0];
-#else
+ int s[2];
+ _scrsize (s);
+ width = s[0];
+#elif !defined __ANDROID__
struct winsize w;
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1) width = w.ws_col;
#endif
2019 Nov 13
0
[PATCH v2] virtio_console: allocate inbufs in add_port() only if it is needed
...o_console.c
>>> index 7270e7b69262..9e6534fd1aa4 100644
>>> --- a/drivers/char/virtio_console.c
>>> +++ b/drivers/char/virtio_console.c
>>> @@ -1325,24 +1325,24 @@ static void set_console_size(struct port *port, u16 rows, u16 cols)
>>> port->cons.ws.ws_col = cols;
>>> }
>>>
>>> -static unsigned int fill_queue(struct virtqueue *vq, spinlock_t *lock)
>>> +static int fill_queue(struct virtqueue *vq, spinlock_t *lock)
>>> {
>>> struct port_buffer *buf;
>>> - unsigned int nr_added_bufs;...