TIOCGWINSZ and busybox

Denis Vlasenko vda.linux at googlemail.com
Sun Mar 11 21:52:17 UTC 2007


On Sunday 11 March 2007 16:04, Dave Hylands wrote:
> Hi Denis,
> 
> > > I did run the resize code (not from busybox, just from regular ole'
> > > resize) and the ioctl fails there too (of course).  "Regular" Resize
> > > seems to use some magic then to guess at the new row and height, but it
> > > seems to be correct.
> >
> > What magic? Can you show 'strace -o resize' output, or better yet,
> > show the source of that other resize?
> 
> Here's a resize I got from Paul Fox a while back when this topic was raised:
> <http://www.davehylands.com/gumstix-wiki/resize/>
> 
> The binaries are for the gumstix, so you can ignore those.

Is this version of resize works for you, Matthew? (attached)

If yes, can you show strace logs from bbox resize and from this one?
(because I don't see much difference in the source)
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resize_test.c
Type: text/x-csrc
Size: 5348 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070311/9770eb48/attachment-0002.c 


More information about the busybox mailing list