search for: bin2hex

Displaying 16 results from an estimated 16 matches for "bin2hex".

2010 Apr 12
2
Patch to port isohybrid.pl to isohybrid.c
Hello all, Past few days I was working on porting the isohybrid perl script to c. (-> https://fedorahosted.org/fedora-engineering-services/ticket/15) The first patch towards the same is attached with this mail. And the same could also be accessed from: http://pjp.dgplug.org/tools/syslinux-3.86-isohybrid.patch I would really appreciate it if somebody could have a look at it and let me know
2011 Jan 30
1
[PATCH] Very minor various typo fixes
...efile.host +++ b/scripts/Makefile.host @@ -5,7 +5,7 @@ # # Both C and C++ is supported, but preferred language is C for such utilities. # -# Samle syntax (see Documentation/kbuild/makefile.txt for reference) +# Sample syntax (see Documentation/kbuild/makefile.txt for reference) # hostprogs-y := bin2hex # Will compile bin2hex.c and create an executable named bin2hex # diff --git a/usr/klibc/CAVEATS b/usr/klibc/CAVEATS index 2cead70..5e991cb 100644 --- a/usr/klibc/CAVEATS +++ b/usr/klibc/CAVEATS @@ -1,5 +1,5 @@ ------------------------------------------------- - Please note the following ca...
2016 Mar 05
2
build problems with 6.04-pre1
...J)/,../bios/mbr/isohdpfx.bin ../bios/mbr/isohdpfx_f.bin \ + ../bios/mbr/isohdpfx_c.bin \ + ../bios/mbr/isohdppx.bin ../bios/mbr/isohdppx_f.bin ../bios/mbr/isohdppx_c.bin) all: $(TARGETS) %.o: %.c $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $< -mkdiskimage: mkdiskimage.in ../mbr/mbr.bin bin2hex.pl - $(PERL) $(SRC)/bin2hex.pl < $(OBJ)/../mbr/mbr.bin | cat $(SRC)/mkdiskimage.in - > $@ +mkdiskimage: mkdiskimage.in ../bios/mbr/mbr.bin bin2hex.pl + $(PERL) $(SRC)/bin2hex.pl < $(OBJ)/../bios/mbr/mbr.bin | cat $(SRC)/mkdiskimage.in - > $@ chmod a+x $@ # Works on anything with a...
2014 Jun 21
1
isohybrid has 2 variants
Op 2014-06-20 om 15:56 schreef Ady: > > The Perl variant, isohybrid.in, seems to be getting left behind > regarding several patches. I don't recall whether there is at least > some mention in the isohybrid docs about the existence of 2 variants > included in Syslinux (and that is in addition to other isohybrid > methods outside Syslinux). Is there any reference? >
2002 Dec 27
1
Syslinux 2.00 build problems on redhat 8.0
...there were a couple of other failures. It looks like all of the problems are related to the way perl is built on redhat 8.0 to handle unicode strings. This screws up the perl scripts in the build that are munging binary files. So, my fix is to patch the following scripts: findpatch.pl bin2hex.pl ppmtolss16 I add the following to the beginning of each of the scripts: eval("no encoding") if $] >= 5.008; This says to use the "no encoding" pragma if the perl version is 5.8.0 or later and seems to fix the unicode craziness gnarling things up. This seems t...
2017 Jun 30
4
[PATCH v2 0/4] Allow cross-building of syslinux
Hi together, this is the second version of my cross-compilation patch serie. I'm sending it in the hope to get an honest review, and possibly see the patches integrated upstream. Those patches allow to build syslinux using a toolchain different from the host one by explicitely using the host toolchain for the utilities that are required at build-time / on the build machine. I am using the
2017 Jul 01
0
[PATCH] Add new hash.c32 module
...Manuel Novoa III + * Copyright (C) 2003 Glenn L. McGrath + * Copyright (C) 2003 Erik Andersen + * Copyright (C) 2010 Denys Vlasenko + * Copyright (C) 2012 Pascal Bellard + * + * Licensed under GPLv2 or later + */ + +#define ALIGN1 + +/* Emit a string of hex representation of bytes */ +static char* bin2hex(char *p, int count, const void *in) +{ + static const char bb_hexdigits_upcase[] ALIGN1 = "0123456789abcdef"; + const char *cp = (const char *) in; + while (count) { + unsigned char c = *cp++; + /* put lowercase hex digits */ + *p++ = bb_hexdigits_upcase[c >> 4]; + *p++ = bb_hex...
2015 Nov 20
2
Comments WAS: Refactor checksize.pl
...t; > included in such category; > No. > I specified "in the compilation chain". Because this script is only > this: one tool used to build the binaries. Same would go for the > following files: > - efi/wrapper.c > - lzo/prepcore.c > - core/lstadjust.pl > - utils/bin2hex.pl > - **/*.pl > > They're all just some custom tools when a single shell line in the > Makefiles would be too clumsy. > > > > Best regards, > Celelibi I seem to be failing to express my point clearly. I'll try one last time. My comments were generic, no...
2010 Mar 31
10
port syslinux isohybrid perl script to C
Hi, Miller, Shao: > I am enjoying this discussion Me not. I feel quite misunderstood. hpa: > Actually, I would prefer if you removed this in its current form. Ok. Will do. If any viable solution emerges, please let me know. Have a nice day :) Thomas
2015 Nov 20
0
Comments WAS: Refactor checksize.pl
...he location of binary files) could also be > included in such category; No. I specified "in the compilation chain". Because this script is only this: one tool used to build the binaries. Same would go for the following files: - efi/wrapper.c - lzo/prepcore.c - core/lstadjust.pl - utils/bin2hex.pl - **/*.pl They're all just some custom tools when a single shell line in the Makefiles would be too clumsy. Best regards, Celelibi
2004 Dec 29
2
SYSLINUX 3.00-pre9 released
I have just released SYSLINUX 3.00-pre9. The only change versus 3.00-pre8 is that the MEMDISK query API now reports the boot loader ID byte, per Bernd's suggestion. This is a release candidate, and I plan to release it as 3.00 *tomorrow*, unless I hear back anything bad. -hpa
2012 May 04
0
[PATCH] add (errnum) in front of windows error messages
...est using external ways. Signed-off-by: Michael Tokarev <mjt at tls.msk.ru> --- lib/utils.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/utils.c b/lib/utils.c index 6ea904a..405097b 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -53,15 +53,17 @@ void bin2hex(char *src, char *dst, int length) { #endif const char *winerror(int err) { - static char buf[1024], *newline; + static char buf[1024], *ptr; + + ptr = buf + sprintf(buf, "(%d) ", err); if (!FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, e...
2015 Nov 20
0
Comments WAS: Refactor checksize.pl
...y; >> No. >> I specified "in the compilation chain". Because this script is only >> this: one tool used to build the binaries. Same would go for the >> following files: >> - efi/wrapper.c >> - lzo/prepcore.c >> - core/lstadjust.pl >> - utils/bin2hex.pl >> - **/*.pl >> >> They're all just some custom tools when a single shell line in the >> Makefiles would be too clumsy. >> >> >> >> Best regards, >> Celelibi > > > I seem to be failing to express my point clearly. I'll try on...
2015 Nov 20
2
Comments WAS: Refactor checksize.pl
> > > > I don't like the idea of changing "UI" (e.g. command line options that > > might be used by some users) without very well-thought reasoning. > > This is not an UI. AFAIK, this script is not shipped to the user. I > don't even see what a user could do with it. > > Well, the Perl script _is_ shipped in the official release, and the
2023 Aug 29
1
Classic Upgrade changes domain SID
On Mon, 2023-08-28 at 23:46 +0200, Peter Koch via samba wrote: > Hi Andrew and Roland, > > I spent some hours today to debug the problem by > adding lots of printf-statements into the samba4 > source. > > Here are my findings: > - upgrade.py calls passdb.get_global_sam_sid() > - get_global_sam_sid() calls pdb_generate_sam_sid() > - pdb_generate_sam_sid() calls
2008 Feb 26
2
3.62-pre16: Compiling on old (2.4 kernel) distros
I have put a compile hack in for older distros and pushed it out as syslinux-3.62-pre16; for those who have reported compilation problem on older distros I would greatly appreciate if you could confirm if it works now (it worked for me on a CentOS 3.9 VM.) -hpa