summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.h
Commit message (Collapse)AuthorAgeFilesLines
* misc: cosmetics, remove argument from usage(FILE*)Ruediger Meier2017-06-261-1/+1
| | | | | | | | | | | | | | This patch is trivial and changes nothing, because we were always using usage(stdout) Now all our usage() functions look very similar. If wanted we could auto-generate another big cosmetical patch to remove all the useless "FILE *out" constants and use printf and puts rather than their f* friends. Such patch could be automatically synchronized with the translation project (newlines!) to not make the translators sick. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* hexdump: add highlighting supportOndrej Oprala2014-02-101-0/+11
| | | | | | | | | [kzak@redhat.com: - fix coding style, - use xalloc in all code, - fix strtol usage] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: Create struct hexdump containing previously global variables.Ondrej Oprala2013-12-021-11/+14
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rename struct _fs to struct hexdump_fs and remove its typedefOndrej Oprala2013-12-021-4/+4
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rename struct _fu to struct hexdump_fu and remove its typedefOndrej Oprala2013-12-021-3/+3
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: Rename struct _pr to struct hexdump_pr and remove it's typedefOndrej Oprala2013-12-021-4/+4
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rename rewrite to rewrite_rulesOndrej Oprala2013-12-021-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rename add to add_fmtOndrej Oprala2013-12-021-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: Merge hexsyntax.c into hexdump.cOndrej Oprala2013-12-021-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: simplify newsyntax argumentsOndrej Oprala2013-11-081-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rename next{fs,fu,pr} to {fs,fu,pr}listOndrej Oprala2013-11-081-5/+5
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: use list.h queues and rewrite redundant for cyclesOndrej Oprala2013-11-081-6/+8
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: revert global exitval variable changeSami Kerola2013-09-101-0/+1
| | | | | | | | | | | | | | | | | | | | The change f2a037fb7b153954d5d34cca48182b6d8832fcfa had unfavorable effect of making hexdump to return non-zero exit value always. This happen because oversight when 'exitval' gets to be set. By clance, one might expect main() to call next() which will return value for 'exitval'. That assessment misses later call chain main() -> display() -> get() -> next(), which in reverse should return correct value for 'exitval'. It was mentioned in util-linux maillist that Ondrej Oprala is working on major renewal of the hexdump . That in mind it seems best to simply to revert the global 'exitval' and avoid conflict with Ondrej's work. Reference: http://markmail.org/message/sbnvuhkboreujj5p Reported-by: Dave Reisner <d@falconindy.com> CC: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hexdump: remove unnecessary global variablesSami Kerola2013-07-011-2/+0Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hexdump: fix shadow declarationSami Kerola2012-07-261-1/+1
| | | | | | | | | text-utils/hexdump.h:84:5: warning: shadowed declaration is here [-Wshadow] ./include/xalloc.h:23:28: warning: declaration of 'size' shadows a global declaration [-Wshadow] ./include/xalloc.h:33:40: warning: declaration of 'size' shadows a global declaration [-Wshadow] ./include/xalloc.h:43:49: warning: declaration of 'size' shadows a global declaration [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hexdump: fix comparison of distinct pointer typesKarel Zak2012-05-231-1/+1
| | | | | | | | display.c: In function ‘get’: display.c:262:117: warning: comparison of distinct pointer types lacks a cast [enabled by default] Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: use strtosize() for -n and -sKarel Zak2012-03-211-1/+1
| | | | | | | | strtosize() is based on uintmax_t and supports all possible suffixes (B,M,G,T ...) Reported-by: Simon de Vlieger <simon@ikanobori.jp> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk, display, hexdump.h: Use standard C types instead of u_int, u_char, ↵Josiah Worcester2011-06-141-2/+2
| | | | | | u_long, etc. Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* hexdump: new usage(), xalloc and err.h stuffSami Kerola2011-02-211-3/+1Star
| | | | | | | | | | | New usage help screen and print version switch. Also fixes to exit codes, util linux xmalloc replaced emalloc and every error print is using libc error function. [kzak@redhat.com: - minor changes in formatting and coding style] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: remove od functionality in favor to GNU coreutils odSami Kerola2010-12-301-1/+0Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Imported from util-linux-2.11o tarball.Karel Zak2006-12-071-3/+7
|
* Imported from util-linux-2.10m tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-0/+16
|
* Imported from util-linux-2.2 tarball.Karel Zak2006-12-071-0/+76