summaryrefslogtreecommitdiffhomepage
path: root/util-linux/more.c
AgeCommit message (Collapse)Author
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2004-03-27s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen
s/fileno\(stdout\)/STDOUT_FILENO/g
2004-03-27Vladimir N. Oleynik (vodz) writes:Eric Andersen
Ok. Last patch reduce 73 bytes for compensate (and over) your changes ;-) Comments: Added cin_fileno variable, auto setted to 0 from BSS and have "eq" stdin descriptor if isatty(stout)==0, removed global variable FILE* cin. Removed default setting to terminal_width/terminal_height, this used only from main() and setted after call get_terminal_width_height() always correct. Variable please_display_more_prompt changed to bits logic, have size reducing. --w vodz
2004-03-23Brian Pomerantz writes:Eric Andersen
I've noticed a bug in the "autowidth" feature more, and is probably in others. The call to the function get_terminal_width_height() passes in a file descriptor but that file descriptor is never used, instead the ioctl() is called with 0. In more_main() the call to get_terminal_width_height() passes 0 as the file descriptor instead of fileno(cin). This isn't a problem when you more a file (e.g. "more /etc/passwd") but when you pipe a file to it (e.g. "cat /etc/passwd | more") the size of the terminal cannot be determined because file descriptor 0 is not a terminal. The fix is simple, I've attached a patch for more.c and get_terminal_width_height.c. BAPper
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-12-23match changes made to cmdeditEric Andersen
2003-09-15Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)Eric Andersen
to ensure proper fallback behavior on, i.e. serial consoles. -Erik
2003-07-14Update a bunch of docs. Run a script to update my email addr.Eric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2003-01-13Correct some init issues, update email address, last_patch78 by VladimirGlenn L McGrath
N. Oleynik
2002-04-13Update some missing copyright noticesEric Andersen
2001-12-06Fix running more on files in the (broken) procfs that claim 0 lengthEric Andersen
when that isn't actually true. -Erik
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-07-23Add support for devfs device names.Matt Kraai
2001-06-26Vladimir's last_patch_15Glenn L McGrath
2001-05-16Remove/replace the "div" call.Eric Andersen
2001-04-25Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen
This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
2001-04-12Fix return code and don't output spurious newlines.Matt Kraai
2001-04-06An optimization from VladimirEric Andersen
2001-04-05more FILE_OFFSET_BITS == 64 adjustments.Eric Andersen
2001-03-23Patch to use xfopen from Jeff GarzikEric Andersen
2001-02-23Yet another fix. I think I got it this time.Eric Andersen
-Erik
2001-02-22Account for remainder, and reset page_height for each and every page.Eric Andersen
2001-02-22Adjust the terminal height for any overlap, so that no linesEric Andersen
get lost off the top -Erik
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
2001-02-02It seems I stupidly checked in a silly test I was making.Eric Andersen
-Erik
2001-02-01Apply a patch from Larry Doolittle to add "-all" and "-none" switchesEric Andersen
to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
2001-01-26Make cin be staticEric Andersen
2001-01-18Eliminate calls of the form "fprintf(stdout,". Thanks for the idea toMatt Kraai
Vladimir N. Oleynik.
2000-12-30Improvements from Vladimir N. Oleynik.Matt Kraai
2000-11-07Cleanup of duplicated symbols -- found by compiling withEric Andersen
LDFLAGS += -Wl,-warn-common
2000-09-27Consolidate handling of some fopen failures.Matt Kraai
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-09-21Large file >2Gib support.Eric Andersen
2000-07-19Centralize handling of --help.Matt Kraai
2000-07-16Extract usage information into a separate file.Matt Kraai
2000-07-14More fixes for "missing initializers"Pavel Roskin
2000-06-21Cleaned up some #ifdef spiderwebs.Mark Whitley
2000-06-19Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
2000-06-16Added some comments and changed a variable name to be more meaningful. NoMark Whitley
fixes yet for the space bug, but should be coming soon.
2000-06-02A number of additional fixed from Pavel Roskin, note some more bugs in theEric Andersen
TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox, which is now included. -Erik
2000-05-12Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen
which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
2000-04-28Latest and greatest. Some effort at libc5 (aiming towards newlib)Erik Andersen
compatability. -Erik
2000-04-21Some more updates and such...Erik Andersen
-Erik
2000-04-21More Doc updates. cmdedit and more termio fixes.Erik Andersen
2000-04-18UpdatesErik Andersen
-Erik
2000-02-08Some formatting updates (ran the code through indent)Erik Andersen
-Erik
1999-11-19StufEric Andersen
1999-11-19StufEric Andersen