summaryrefslogtreecommitdiff
path: root/com32/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'mfleming/for-hpa/makefile-cleanup'H. Peter Anvin2011-04-261-1/+2
|\ | | | | | | | | | | | | | | Resolved Conflicts: com32/hdt/Makefile com32/sysdump/Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Makefile: Move Makefile fragments into mk/Matt Fleming2011-04-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the MCONFIG files into a mk/ directory and give them more descriptive names. This is purely a cosmetic change to make the 'include' directives a bit more coherent by making it obvious exactly which MCONFIG file we're including. For example, in com32/lua/src/Makefile we exchange the line, include ../../MCONFIG for the much more comprehensible, include $(MAKEDIR)/com32.mk Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
* | keyname: better handling of named control charactersH. Peter Anvin2011-04-111-4/+9
| | | | | | | | | | | | | | Named control character (Tab, Enter, Backspace etc.) should use those names rather than caret sequences. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | menu: Add "menu hiddenkey" to make terminating menu hidden a commandH. Peter Anvin2011-04-113-1/+139
|/ | | | | | | Use "menu hiddenkey" together with "menu hidden" for a one-keystroke action. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* sha256/512: fix signedness errorsH. Peter Anvin2010-05-122-11/+11
| | | | | | Fix signedness errors as part of -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* get_key.c: fix signedness errorH. Peter Anvin2010-05-121-1/+1
| | | | | | Fix signedness error, part of -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Run Nindent on com32/libutil/unbase64.cH. Peter Anvin2009-05-291-30/+29
| | | | | | | | | Automatically reformat com32/libutil/unbase64.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/sha512crypt.cH. Peter Anvin2009-05-291-611/+566
| | | | | | | | | Automatically reformat com32/libutil/sha512crypt.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/sha256crypt.cH. Peter Anvin2009-05-291-537/+492
| | | | | | | | | Automatically reformat com32/libutil/sha256crypt.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/sha1hash.cH. Peter Anvin2009-05-291-116/+172
| | | | | | | | | Automatically reformat com32/libutil/sha1hash.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/md5.cH. Peter Anvin2009-05-291-143/+136
| | | | | | | | | Automatically reformat com32/libutil/md5.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/include/xcrypt.hH. Peter Anvin2009-05-291-2/+2
| | | | | | | | | Automatically reformat com32/libutil/include/xcrypt.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/include/sha1.hH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | Automatically reformat com32/libutil/include/sha1.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/include/md5.hH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | Automatically reformat com32/libutil/include/md5.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/include/base64.hH. Peter Anvin2009-05-291-2/+2
| | | | | | | | | Automatically reformat com32/libutil/include/base64.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/get_key.cH. Peter Anvin2009-05-291-112/+113
| | | | | | | | | Automatically reformat com32/libutil/get_key.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/crypt-md5.cH. Peter Anvin2009-05-291-125/+122
| | | | | | | | | Automatically reformat com32/libutil/crypt-md5.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/base64.cH. Peter Anvin2009-05-291-65/+66
| | | | | | | | | Automatically reformat com32/libutil/base64.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/ansiraw.cH. Peter Anvin2009-05-291-22/+21
| | | | | | | | | Automatically reformat com32/libutil/ansiraw.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/libutil/ansiline.cH. Peter Anvin2009-05-291-20/+19
| | | | | | | | | Automatically reformat com32/libutil/ansiline.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Don't set the autocr flag on the serial console; clean up crapsyslinux-3.81-pre12H. Peter Anvin2009-05-232-18/+6
| | | | | | | | | | | | | libutil would set the autocr flag on the serial console, which really never was any point -- we already do \n -> \r\n conversion explicitly in the serial code. This was always very annoying to deal with if the menu was interrupted. Furthermore, drop completely unnecessary initialization/deinitialization routines that completely duplicated other code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/libutil/Makefile: Duplicate spotless targetGene Cumm2009-02-281-2/+0
| | | | | | | Fix duplicate spotless target in com32/libutil/Makefile. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* COM32 libutil: Fix error in flags in console_ansi_std(void)Gene Cumm2009-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ICANON and ECHO were applied to the control flags not local flags. If ICANON or ECHO were applied to a serial port on Linux on the x86 architecture, this would change the serial ports baud rate. From my /usr/include/bits/termios.h (select in-order lines): /* c_cflag bit meaning */ #define B150 0000005 #define B300 0000007 #define B9600 0000015 #define B38400 0000017 /* c_lflag bits */ #define ICANON 0000002 #define ECHO 0000010 The different baud rates are defined here. If someone set the baud rate to 9600 and set ICANON on c_cflag, it should change the baud rate to 38400, dropping communication. Another example is if someone set the baud rate to 150 the set ICANON and ECHO on c_cflag, it should change the baud to 38400. If I am interpreting the rest of the file correctly, a bitmask covering all of the bits used in c_cflag for the baud rate is 0010017. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix "make clean" confusionsyslinux-3.72H. Peter Anvin2008-09-251-1/+4
| | | | | | | | "make clean" must NOT remove stuff that "make installer" should not rebuild. This is a somewhat unfortunate choice of naming, but that's the way it is. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin2008-08-201-62/+3
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* com32: compile with -std=gnu99H. Peter Anvin2008-08-121-2/+4
| | | | | | | Compile with -std=gnu99, this allows us to define initializers inside for() loops, which makes certain kinds of ugly macros easier to write. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Centralize configurables; better "make install" etcH. Peter Anvin2008-05-291-1/+2
| | | | | | | Begin the process of centralizing configurables. Improve "make install" and "make netinstall"; add "make extbootinstall".
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-291-1/+1
| | | | | | | | Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.
* Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC ↵Stefan Bucur2008-05-121-1/+1
| | | | -fstack-protector flag enabled by default.
* Use $(CC) in gcc_ok macro, not plain gccH. Peter Anvin2008-03-051-1/+1
| | | | | Use $(CC) in gcc_ok macro, not plain gcc. This seems to work, iff the gcc_ok macro is declared with =, not :=
* Clean up .*.d files for "make tidy" in libutilH. Peter Anvin2008-03-031-1/+1
|
* Prevent inclusion of system include files when inappropriateH. Peter Anvin2008-03-033-3/+15
| | | | | Use "-nostdinc -iwithprefix include" to prevent the inclusion of system header files, but still permitting *compiler* header files.
* Whitespace cleanup...syslinux-3.62-pre11H. Peter Anvin2008-02-191-1/+0
|
* com32/*: move _GNU_SOURCE definitions into MakefilesH. Peter Anvin2008-02-101-1/+1
| | | | | We need _GNU_SOURCE when compiling for Linux in enough places. Just move it to the LNXCFLAGS definition in the Makefiles.
* libutil: add header file <xcrypt.h> for extended crypt routinesH. Peter Anvin2008-02-103-0/+12
| | | | | Add a common header file, xcrypt.h, for the various extended crypt routines (md5, sha256, sha512).
* menu: clean up and fix MD5 password codeH. Peter Anvin2008-01-282-53/+61
| | | | | | MD5 password code would append the encrypted password to a previous password, with the result that it would never match after picking a wrong password. Fix.
* Update copyright yearH. Peter Anvin2008-01-1010-10/+10
|
* Add sha256crypt and sha512crypt; not yet enabledH. Peter Anvin2007-11-093-1/+1512
| | | | | | Add support for sha256crypt and sha512crypt to the library. Not yet included in the menu system, need to decide if it's worth 10K or if the code can be realistically compacted.
* Makefiles: create NASMOPT variableH. Peter Anvin2007-10-101-1/+2
| | | | | Create NASMOPT variable, defaulting to -O9999. Mostly there to test beta versions of NASM.
* Fix building on a 64-bit system without a 32-bit system installedsyslinux-3.52-pre10syslinux-3.52H. Peter Anvin2007-09-241-2/+0
| | | | | A bunch of glibc header files were bogusly included. We should not depend on having a 32-bit glibc installed, since we don't use it.
* Add header file missing from previous checkin (md5.h)H. Peter Anvin2007-07-241-0/+46
|
* Add support for Unix-standard MD5 passwordH. Peter Anvin2007-07-245-1/+557
|
* Don't clobber /dev/null when compiling as rootLuciano Rocha2007-05-251-2/+4
| | | | | | Compiling as root is highly discouraged, but some people do it anyway. gcc_ok, however, can clobber /dev/null due to "-o /dev/null"; this is bad. Instead, write a temporary file and delete it.
* Move <syslinux.h> to <syslinux/idle.h>; clean up libutil do_idle()H. Peter Anvin2007-03-203-55/+15
| | | | | | Move <syslinux.h> to <syslinux/idle.h> since that was all that was there; do_idle() in libutil can simply be a macro for syslinux_idle() or sched_yield() as appropriate.
* Library functions for manipulating initramfsH. Peter Anvin2007-03-153-83/+1
| | | | | | Library support for constructing initramfs. This version is *not* complete, as it doesn't take into account alignment requirements properly.
* Move the loadfile() routine into the syslinux/ namespace, and use it.syslinux-3.40-pre13H. Peter Anvin2007-03-143-2/+2
| | | | | - Move the loadfile() routine into <syslinux/loadfile.h>. - Actually use the loadfile() routine.
* Wrapper infrastructure for "shuffle and boot"H. Peter Anvin2007-03-122-480/+0
| | | | | | | Initial checkin of a wrapper infrastructure for the "shuffle and boot" interface, both real and protected mode. This code automatically will figure out the necessary sequence of moves, taking into account swaps and overlaps as necessary.
* Fix -fno-stack-protector per bug report from Gilles Espinassesyslinux-3.36-pre9H. Peter Anvin2007-02-081-1/+1
|
* Deal with various distributions breaking gcc in weird waysH. Peter Anvin2007-02-061-1/+1
|
* Remove more CVS-era $Id$ tags.H. Peter Anvin2006-08-171-1/+0
|