profile/ivi/syslinux.git
16 years agoAdd gpxelinux.0 to NETINSTALLABLE
H. Peter Anvin [Tue, 1 Apr 2008 23:40:07 +0000 (16:40 -0700)]
Add gpxelinux.0 to NETINSTALLABLE

16 years agoMerge commit 'origin/gpxe-added' into gpxe-added syslinux-3.70-pre8
H. Peter Anvin [Mon, 31 Mar 2008 12:29:08 +0000 (05:29 -0700)]
Merge commit 'origin/gpxe-added' into gpxe-added

16 years agoMerge gpxe-for-syslinux
H. Peter Anvin [Mon, 31 Mar 2008 12:27:05 +0000 (05:27 -0700)]
Merge gpxe-for-syslinux

Merge gpxe-for-syslinux up to commit
71c509be409820a12efeebf31f486e144c9efdae; upstream commit
b107637008d15e00a4d95cdb5c8f5c11fda490f7.

16 years agoNEWS: Document integration of gPXE
H. Peter Anvin [Mon, 31 Mar 2008 12:26:29 +0000 (05:26 -0700)]
NEWS: Document integration of gPXE

16 years agoMerge commit 'origin/gpxe-support' into gpxe-added
H. Peter Anvin [Sat, 29 Mar 2008 05:20:26 +0000 (22:20 -0700)]
Merge commit 'origin/gpxe-support' into gpxe-added

16 years agogPXE SAN boot module
H. Peter Anvin [Sat, 29 Mar 2008 05:11:11 +0000 (22:11 -0700)]
gPXE SAN boot module

Trivial COM32 module which accepts a sanboot command and passes it on
to gPXE.

16 years agoAdd stpcpy() and implement version/derivative queries
H. Peter Anvin [Sat, 29 Mar 2008 05:10:01 +0000 (22:10 -0700)]
Add stpcpy() and implement version/derivative queries

Add stpcpy(), and actually implement syslinux_version() and
syslinux_derivative_info().

16 years agoAdd gPXE into the source tree; build unified image syslinux-3.70-pre7
H. Peter Anvin [Wed, 26 Mar 2008 23:25:35 +0000 (16:25 -0700)]
Add gPXE into the source tree; build unified image

16 years agoDocument gPXE extensions. syslinux-3.70-pre6
H. Peter Anvin [Wed, 26 Mar 2008 22:26:02 +0000 (15:26 -0700)]
Document gPXE extensions.

16 years agoPXELINUX: When doing a gPXE FILE_READ, actually handle errors
H. Peter Anvin [Wed, 26 Mar 2008 22:21:31 +0000 (15:21 -0700)]
PXELINUX: When doing a gPXE FILE_READ, actually handle errors

If gPXE FILE_READ returns an actual error, don't loop forever.

16 years agoPXELINUX: add gPXE PXENV_FILE_API_CHECK call; clean up pxenv
H. Peter Anvin [Wed, 26 Mar 2008 21:59:51 +0000 (14:59 -0700)]
PXELINUX: add gPXE PXENV_FILE_API_CHECK call; clean up pxenv

Add gPXE PXENV_FILE_API_CHECK call, and rationalize the pxenv wrapper
subroutine.  We now always accept the return value in AX and convert
it to a carry, and we always preserve all registers.

16 years agopxelinux: don't rely on PXENV_GET_FILE_SIZE in gPXE support mode
H. Peter Anvin [Tue, 25 Mar 2008 22:03:09 +0000 (15:03 -0700)]
pxelinux: don't rely on PXENV_GET_FILE_SIZE in gPXE support mode

Don't rely on PXENV_GET_FILE_SIZE in gPXE support mode.  It sometimes
successfully returns wrong information.

16 years agoPXELINUX: make the gPXE support actually work. We hope.
H. Peter Anvin [Tue, 25 Mar 2008 21:07:01 +0000 (14:07 -0700)]
PXELINUX: make the gPXE support actually work.  We hope.

With this patch, and the very latest gPXE tree from today, I can
download my usual boot setup via http.

16 years agorunkernel: remove debugging code
H. Peter Anvin [Mon, 24 Mar 2008 23:34:54 +0000 (16:34 -0700)]
runkernel: remove debugging code

Remove debugging code which prevents building with tracers on.

16 years agopxelinux: fix merge issues
H. Peter Anvin [Mon, 24 Mar 2008 23:34:28 +0000 (16:34 -0700)]
pxelinux: fix merge issues

Clean up merge issues between the nolen and gpxe-support branches.

16 years agoMerge commit 'origin/nolen' into gpxe-support
H. Peter Anvin [Mon, 24 Mar 2008 23:03:48 +0000 (16:03 -0700)]
Merge commit 'origin/nolen' into gpxe-support

16 years agoMerge commit 'origin/master' into nolen
H. Peter Anvin [Mon, 24 Mar 2008 23:03:21 +0000 (16:03 -0700)]
Merge commit 'origin/master' into nolen

16 years agoAdd target to install into /tftpboot
H. Peter Anvin [Sun, 23 Mar 2008 00:38:23 +0000 (17:38 -0700)]
Add target to install into /tftpboot

16 years agoMerge commit 'origin/nolen' into gpxe-support
H. Peter Anvin [Sun, 23 Mar 2008 00:25:31 +0000 (17:25 -0700)]
Merge commit 'origin/nolen' into gpxe-support

Conflicts:

NEWS
dnsresolv.inc
pxelinux.asm

16 years agoMerge commit 'syslinux-3.63-pre2' into nolen syslinux-3.70-pre5
H. Peter Anvin [Fri, 21 Mar 2008 01:01:31 +0000 (18:01 -0700)]
Merge commit 'syslinux-3.63-pre2' into nolen

16 years agopxelinux: allow class E addresses as unicast syslinux-3.63-pre2
H. Peter Anvin [Thu, 20 Mar 2008 23:37:17 +0000 (16:37 -0700)]
pxelinux: allow class E addresses as unicast

Class E IPv4 addresses are expected to be reassigned as available for
unicast addresses (probably for site-local use, but that is a major
usage domain of PXE.)

16 years agoMerge commit 'f9ac61d6178d4994cd646fd4b6c4bb891351624c'
H. Peter Anvin [Thu, 20 Mar 2008 23:36:34 +0000 (16:36 -0700)]
Merge commit 'f9ac61d6178d4994cd646fd4b6c4bb891351624c'

16 years agoFixing wrong offsets in dmi
Sebastian Herbszt [Sat, 8 Mar 2008 21:56:53 +0000 (22:56 +0100)]
Fixing wrong offsets in dmi

DMI code have some wrong offsets.
This patch fixes this offsets and improve the grammar.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
16 years agoPCI detection code doesn't corrupt memory anymore (2nd try)
Erwan [Sat, 8 Mar 2008 21:51:54 +0000 (22:51 +0100)]
PCI detection code doesn't corrupt memory anymore (2nd try)

  From : Erwan Velu <erwan.velu@free.fr>

This patch fixes the pci detection stuff demo'd in pcitest.c32
- Fix a wrong type in malloc
- Incorrect use of strdup
- Replacing strncpy by strnlcpy (thx hpa)

This two fixes makes pcitest.c32 working far better, no more crash when
running it twice.

I'd like to thank Sebastian Herbszt for its reports and tests.

This patch was made for 3.62-pre16 but applies fine on 3.63-pre1.

Signed-off-by:Erwan Velu <erwan.velu@free.fr>

--------------------------------------------------------------------------------
Les opinions et prises de position emises par le signataire du present
message lui sont propres et ne sauraient engager la responsabilite de la
societe SEANODES.

Ce message ainsi que les eventuelles pieces jointes constituent une
correspondance privee et confidentielle a l'attention exclusive du
destinataire designe ci-dessus. Si vous n'etes pas le destinataire du
present message ou une personne susceptible de pouvoir le lui delivrer, il
vous est signifie que toute divulgation, distribution ou copie de cette
transmission est strictement interdite. Si vous avez recu ce message par
erreur, nous vous remercions d'en informer l'expediteur par telephone ou de
lui retourner le present message, puis d'effacer immediatement ce message de
votre systeme.

The views and opinions expressed by the author of this message are personal.
SEANODES shall assume no liability, express or implied for such message.

This e-mail and any attachments is a confidential correspondence intended
only for use of the individual or entity named above. If you are not the
intended recipient or the agent responsible for delivering the message to
the intended recipient, you are hereby notified that any disclosure,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender by phone
or by replying this message, and then delete this message from your system.

16 years agoRemove reference to readpit.c32, an experimental module
H. Peter Anvin [Sat, 8 Mar 2008 10:12:47 +0000 (11:12 +0100)]
Remove reference to readpit.c32, an experimental module

Remove reference to readpit.c32, an experimental module never intended
for release.

16 years agoUse $(CC) in gcc_ok macro, not plain gcc
H. Peter Anvin [Thu, 6 Mar 2008 06:31:00 +0000 (22:31 -0800)]
Use $(CC) in gcc_ok macro, not plain gcc

Use $(CC) in gcc_ok macro, not plain gcc.  This seems to work, iff the
gcc_ok macro is declared with =, not :=

16 years agowin32/Makefile: clean hello.exe on "make tidy"
H. Peter Anvin [Tue, 4 Mar 2008 06:10:20 +0000 (22:10 -0800)]
win32/Makefile: clean hello.exe on "make tidy"

hello.exe isn't really anything we care about; clean it up on "make tidy".

16 years agoAdd stuff to "make dist" to clean up crap that shouldn't be there
H. Peter Anvin [Tue, 4 Mar 2008 05:59:10 +0000 (21:59 -0800)]
Add stuff to "make dist" to clean up crap that shouldn't be there

16 years agoClean up .*.d files for "make tidy" in libutil
H. Peter Anvin [Tue, 4 Mar 2008 05:23:52 +0000 (21:23 -0800)]
Clean up .*.d files for "make tidy" in libutil

16 years agoClean up .*.d files for "make tidy" in libutil
H. Peter Anvin [Tue, 4 Mar 2008 05:23:52 +0000 (21:23 -0800)]
Clean up .*.d files for "make tidy" in libutil

16 years agoMerge commit 'origin/master' into nolen syslinux-3.70-pre4
H. Peter Anvin [Tue, 4 Mar 2008 04:20:09 +0000 (20:20 -0800)]
Merge commit 'origin/master' into nolen

Conflicts:

version

16 years agoThe next release on *this* branch would be 3.63 syslinux-3.63-pre1
H. Peter Anvin [Tue, 4 Mar 2008 04:19:24 +0000 (20:19 -0800)]
The next release on *this* branch would be 3.63

16 years agoPrevent inclusion of system include files when inappropriate
H. Peter Anvin [Tue, 4 Mar 2008 04:18:10 +0000 (20:18 -0800)]
Prevent inclusion of system include files when inappropriate

Use "-nostdinc -iwithprefix include" to prevent the inclusion of
system header files, but still permitting *compiler* header files.

16 years agoVESA: Simplify the lss16 decoder
H. Peter Anvin [Tue, 4 Mar 2008 01:43:41 +0000 (17:43 -0800)]
VESA: Simplify the lss16 decoder

Simplify the lss16 decoder slightly.

16 years agoDrop unnecessary CLD instructions.
H. Peter Anvin [Tue, 4 Mar 2008 00:55:15 +0000 (16:55 -0800)]
Drop unnecessary CLD instructions.

The EFI ABI spec states that DF=0 on ABI boundaries, and gcc expects
this.  Assume it is safe to rely upon everywhere; drop unnecessary cld
instructions, except on entry and (obviously) after std.

16 years agoVESA library: add support for reading lss16 images
H. Peter Anvin [Tue, 4 Mar 2008 00:50:17 +0000 (16:50 -0800)]
VESA library: add support for reading lss16 images

Add support for reading lss16 images, for compatibility with the CLI.

16 years agoMake description of the lss16 format match reality
H. Peter Anvin [Tue, 4 Mar 2008 00:46:36 +0000 (16:46 -0800)]
Make description of the lss16 format match reality

The comment in ppmtolss16 is perhaps how the lss16 format *should*
work, but not actually how it *does* work.

16 years agoMerge commit 'origin/master' into nolen
H. Peter Anvin [Mon, 3 Mar 2008 23:53:51 +0000 (15:53 -0800)]
Merge commit 'origin/master' into nolen

16 years agosimple menu: break off execute() into its own source file
H. Peter Anvin [Mon, 3 Mar 2008 06:20:08 +0000 (22:20 -0800)]
simple menu: break off execute() into its own source file

Break off execute() into its own source file, with the intent of being
able to re-use it for a CLI module.

16 years agoAdd missing file <syslinux/zio.h> syslinux-3.70-pre3
H. Peter Anvin [Sun, 2 Mar 2008 20:02:45 +0000 (12:02 -0800)]
Add missing file <syslinux/zio.h>

This include file has been inadvertently omitted from previous
checkins.

16 years agoMerge commit 'origin/master' into nolen
H. Peter Anvin [Sun, 2 Mar 2008 20:01:11 +0000 (12:01 -0800)]
Merge commit 'origin/master' into nolen

16 years agoLicense change for CPU detection modules
Erwan [Sun, 2 Mar 2008 09:09:54 +0000 (10:09 +0100)]
License change for CPU detection modules

H. Peter Anvin wrote:
> Erwan: I would have to get you to do this, since it would mean
> changing the license (trying to keep libcom32 under the BSD/MIT
> licenses), and you have them under your own copyright (as opposed to
> mine), which means I can't do this change.

Please find attached the patch to changing the license to MIT on modules
I did contribute in com32/modules/.

16 years agoMove mboot documentation to the doc/ directory
H. Peter Anvin [Sun, 2 Mar 2008 00:04:05 +0000 (16:04 -0800)]
Move mboot documentation to the doc/ directory

16 years agoFix two *.doc files which sadly didn't get renamed...
H. Peter Anvin [Sat, 1 Mar 2008 23:56:29 +0000 (15:56 -0800)]
Fix two *.doc files which sadly didn't get renamed...

16 years agoAdd a slightly edited version of SubmittingPatches. syslinux-3.62
H. Peter Anvin [Sat, 1 Mar 2008 20:46:54 +0000 (12:46 -0800)]
Add a slightly edited version of SubmittingPatches.

16 years agoDocument the file renaming from .doc -> .txt
H. Peter Anvin [Fri, 29 Feb 2008 20:02:36 +0000 (12:02 -0800)]
Document the file renaming from .doc -> .txt

16 years agoAdd transparent decompression support to elf.c32
H. Peter Anvin [Fri, 29 Feb 2008 19:59:49 +0000 (11:59 -0800)]
Add transparent decompression support to elf.c32

Use zloadfile() to support file decompression in elf.c32.

16 years agoGeneric framework for reading compressed files using standard I/O
H. Peter Anvin [Fri, 29 Feb 2008 19:57:36 +0000 (11:57 -0800)]
Generic framework for reading compressed files using standard I/O

Add zopen(), zfopen(), and zloadfile() to transparently open and
uncompress a gzip file (adding support for other formats is quite
trivial.

Once a file handle or file pointer is received, it can be treated like
any other one (fstat will report it as a socket, since the length is
unknown.)

16 years agoRename text documentation from *.doc to *.txt
H. Peter Anvin [Fri, 29 Feb 2008 00:04:08 +0000 (16:04 -0800)]
Rename text documentation from *.doc to *.txt

Rename plaintext documentation from doc/*.doc to doc/*.txt, to avoid
the chronic problem of web sites thinking they're in MS-Word format.
Sigh.  As if Microsoft somehow had a monopoly on the word "document".

16 years agoTighten close_file, fix SYSLINUX new file API syslinux-3.70-pre2
H. Peter Anvin [Thu, 28 Feb 2008 00:17:23 +0000 (16:17 -0800)]
Tighten close_file, fix SYSLINUX new file API

Define close_file slightly tighter:

       - It is permitted to call close_file with a zero filehandle
       - close_file zeros SI

Fix the handling of the new API in SYSLINUX.  It appears file_left was
never actually initialized; it simply didn't matter since the old code
would either trip on reaching the end of the FAT chain or count the
data it needed.  Now operating according to spec.

16 years agoDon't use "syslinux.cfg" to refer to config files in general
H. Peter Anvin [Wed, 27 Feb 2008 23:09:08 +0000 (15:09 -0800)]
Don't use "syslinux.cfg" to refer to config files in general

When printing error messages about configuration files, don't
necessarily call it "syslinux.cfg".

16 years agoChange the "tsize" error message since it no longer applies
H. Peter Anvin [Wed, 27 Feb 2008 21:47:18 +0000 (13:47 -0800)]
Change the "tsize" error message since it no longer applies

Fix the tsize error message to indicate that it now, in fact, refers
to an invalid TFTP response.

16 years agoSYSLINUX, EXTLINUX: support the new getfssec API syslinux-3.70-pre1
H. Peter Anvin [Wed, 27 Feb 2008 21:22:16 +0000 (13:22 -0800)]
SYSLINUX, EXTLINUX: support the new getfssec API

Support the new getfssec API which returns number of bytes read in
SYSLINUX and EXTLINUX.  Untested so far, but it's a reasonably easy
change.

16 years agocomboot.inc: use the correct upper limit
H. Peter Anvin [Wed, 27 Feb 2008 21:02:03 +0000 (13:02 -0800)]
comboot.inc: use the correct upper limit

The exact upper limit is 65536-256-2 = 65278 = 0xFEFE bytes.

16 years agocomboot.inc: update test for oversized files
H. Peter Anvin [Wed, 27 Feb 2008 20:56:20 +0000 (12:56 -0800)]
comboot.inc: update test for oversized files

The test for oversized COMBOOT files have to be updated to be an a
posteori test, since the length might not be known a priori.

16 years agoUn-inline fclose()
H. Peter Anvin [Wed, 27 Feb 2008 20:51:29 +0000 (12:51 -0800)]
Un-inline fclose()

gcc complains that fclose() is too big to be inlined with -Os, so
humour it and move fclose() out of line.

16 years agobackground.c: remove unused filesize() function
H. Peter Anvin [Wed, 27 Feb 2008 20:48:04 +0000 (12:48 -0800)]
background.c: remove unused filesize() function

Remove obsolete and now unused filesize() function.

16 years agorealloc(): put an absolute upper limit on slack
H. Peter Anvin [Wed, 27 Feb 2008 20:44:52 +0000 (12:44 -0800)]
realloc(): put an absolute upper limit on slack

With loadfile() doing megabyte-sized trial-and-error allocations, we
want to be able to do really set the size on the final allocation;
thus constrain the amount of permitted slack to 4K max.

16 years agoComboot/Com32 changes for unspecified file lengths
H. Peter Anvin [Wed, 27 Feb 2008 20:40:31 +0000 (12:40 -0800)]
Comboot/Com32 changes for unspecified file lengths

Handle unspecified file length for comboot/com32 modules; do changes
to the appropriate part of libcom32 to handle this properly.

16 years agoDocument the nolen changes.
H. Peter Anvin [Wed, 27 Feb 2008 18:56:34 +0000 (10:56 -0800)]
Document the nolen changes.

16 years agoPXELINUX: make TFTP work without any OACK
H. Peter Anvin [Wed, 27 Feb 2008 18:53:40 +0000 (10:53 -0800)]
PXELINUX: make TFTP work without any OACK

Make the TFTP stack handle the case where no options are acknowledged,
so we don't even get an OACK; instead we get the first data packet
immediately.

16 years agoPXELINUX: make TFTP work without tsize
H. Peter Anvin [Wed, 27 Feb 2008 18:44:40 +0000 (10:44 -0800)]
PXELINUX: make TFTP work without tsize

Make the TFTP stack no longer require the tsize option.

Note: getc relies on DI not being clobbered by getfssec.  Be more
careful about not clobbering registers unless documented.

16 years agogetc: support for unknown file sizes
H. Peter Anvin [Wed, 27 Feb 2008 03:57:26 +0000 (19:57 -0800)]
getc: support for unknown file sizes

Handle unknown file sizes in getc

16 years agoisolinux: getfssec now outputs bytes read
H. Peter Anvin [Wed, 27 Feb 2008 03:55:59 +0000 (19:55 -0800)]
isolinux: getfssec now outputs bytes read

ISOLINUX support for the API changes needed to handle unknown file
sizes.

16 years agoRevamp runkernel.inc for "lengthless" operation
H. Peter Anvin [Wed, 27 Feb 2008 01:18:59 +0000 (17:18 -0800)]
Revamp runkernel.inc for "lengthless" operation

Revamp runkernel.inc to be able to operate without a priori known
length.

16 years agoRemove pngtopnm dependency from the samples/ directory
H. Peter Anvin [Tue, 26 Feb 2008 22:50:05 +0000 (14:50 -0800)]
Remove pngtopnm dependency from the samples/ directory

Ship syslogo.ppm.gz instead of syslogo.png, thereby eliminating a
dependency on pngtopnm which apparently isn't installed by default on
some distros.

16 years agoextlinux: compile hack for old distros syslinux-3.62-pre16
H. Peter Anvin [Tue, 26 Feb 2008 05:10:12 +0000 (21:10 -0800)]
extlinux: compile hack for old distros

Some old distros would have <linux/fs.h> poison the namespace with a
non-glibc "struct statfs".  Hack around it.

16 years agoMerge commit 'origin/nodxax' into nolen
H. Peter Anvin [Tue, 26 Feb 2008 01:30:06 +0000 (17:30 -0800)]
Merge commit 'origin/nodxax' into nolen

Conflicts:

pxelinux.asm

16 years agoRemove additional use of DX:AX
H. Peter Anvin [Tue, 26 Feb 2008 00:55:44 +0000 (16:55 -0800)]
Remove additional use of DX:AX

Remove an additional use of DX:AX for file size

16 years agopxelinux: fix inadvertent breakage of TFTP
H. Peter Anvin [Sat, 23 Feb 2008 07:17:23 +0000 (23:17 -0800)]
pxelinux: fix inadvertent breakage of TFTP

Fix the following bogus edit in previous checkin:

- mov eax,[si+tftp_filesize]
+ mov eax,[si+tftp_bytesleft]

16 years agoFinally get rid of the old DX:AX for file length 16-bitism
H. Peter Anvin [Sat, 23 Feb 2008 06:55:06 +0000 (22:55 -0800)]
Finally get rid of the old DX:AX for file length 16-bitism

Finally scrub the code and get rid of the old uses of DX:AX for file
size (rather than EAX).

16 years agofstat(): report files of unknown length as sockets
H. Peter Anvin [Sat, 23 Feb 2008 06:32:20 +0000 (22:32 -0800)]
fstat(): report files of unknown length as sockets

16 years agoAllow MENU EXIT to specify a menu tag syslinux-3.62-pre15
H. Peter Anvin [Fri, 22 Feb 2008 19:16:45 +0000 (11:16 -0800)]
Allow MENU EXIT to specify a menu tag

Allow MENU EXIT to "exit" to an arbitrary menu.  This is really just a
variant of "MENU GOTO", but it allows displaying an exit marker.

16 years agoFix the handling of hotkeys in MENU LABEL on submenus syslinux-3.62-pre14
H. Peter Anvin [Fri, 22 Feb 2008 19:03:34 +0000 (11:03 -0800)]
Fix the handling of hotkeys in MENU LABEL on submenus

Two bugs:

- We didn't strip ^ symbols inheriting from MENU LABEL to MENU TITLE
- We did consider_for_hotkey() with the wrong menu (the submenu
  itself, as opposed to the parent menu.)

As part of these changes, make a function available to create an
uninitialized, mutable refstring (that can be constructed and then
used as a refstring, that is.)

16 years agoPXELINUX: no longer require a tsize option
H. Peter Anvin [Fri, 22 Feb 2008 03:35:04 +0000 (19:35 -0800)]
PXELINUX: no longer require a tsize option

No longer require a tsize option; this means handle
RRQ -> DATA as well as RRQ -> OACK.

16 years agoDocument intent at no longer providing file length a priori
H. Peter Anvin [Fri, 22 Feb 2008 03:32:59 +0000 (19:32 -0800)]
Document intent at no longer providing file length a priori

We intend to no longer guarantee that we know the file size ahead of
time.

16 years agoThis probably will be version 3.70...
H. Peter Anvin [Fri, 22 Feb 2008 02:53:22 +0000 (18:53 -0800)]
This probably will be version 3.70...

16 years agoNEWS: Document Bruce Robson's Adaptec bug fix
H. Peter Anvin [Fri, 22 Feb 2008 02:49:43 +0000 (18:49 -0800)]
NEWS: Document Bruce Robson's Adaptec bug fix

16 years agorealloc(): try to protect a block in the path of a growing object syslinux-3.62-pre13
H. Peter Anvin [Fri, 22 Feb 2008 02:17:49 +0000 (18:17 -0800)]
realloc(): try to protect a block in the path of a growing object

When we realloc() a block larger, try to protect the free block
following it from being immediately allocated by something else by
placing it at the end of the freelist instead of the beginning.

16 years agorealloc(): better implementation allowing in-place growth
H. Peter Anvin [Fri, 22 Feb 2008 01:59:56 +0000 (17:59 -0800)]
realloc(): better implementation allowing in-place growth

Change the realloc() implementation to allow in-place growth.  This is
an important step in handling files without knowing their sizes a
priori.

16 years ago"begin Ymodem download" is supposed to be an imperative...
H. Peter Anvin [Wed, 20 Feb 2008 23:56:33 +0000 (15:56 -0800)]
"begin Ymodem download" is supposed to be an imperative...

16 years agoFix MENU TITLE -> MENU LABEL inheritance syslinux-3.62-pre12
H. Peter Anvin [Wed, 20 Feb 2008 02:40:37 +0000 (18:40 -0800)]
Fix MENU TITLE -> MENU LABEL inheritance

Correctly make it so MENU TITLE can be inherited upward as MENU TITLE
unless one is provided.

16 years agoMake sure color directives get attached to the proper menu.
H. Peter Anvin [Wed, 20 Feb 2008 02:34:14 +0000 (18:34 -0800)]
Make sure color directives get attached to the proper menu.

Color directives would always end up attached to the root menu, no
matter what menu declaration they where actually located in.

16 years agosimple menu: fix the handling of '+' and '-' given disabled entries
H. Peter Anvin [Wed, 20 Feb 2008 02:27:35 +0000 (18:27 -0800)]
simple menu: fix the handling of '+' and '-' given disabled entries

When encountering disabled entries, we want to keep going.  Given that
these particular keys have nonstandard scrolling, but the handling there.

16 years agoFix the scrollbar handling for insanely huge menus
H. Peter Anvin [Wed, 20 Feb 2008 02:25:08 +0000 (18:25 -0800)]
Fix the scrollbar handling for insanely huge menus

The handling of the scrollbar for insanely huge menus was broken,
causing it to disappear off the bottom of the menu window.

16 years agosimple menu: remember the cursor position on a per-menu basis
H. Peter Anvin [Wed, 20 Feb 2008 02:21:08 +0000 (18:21 -0800)]
simple menu: remember the cursor position on a per-menu basis

For each menu, remember what the current position of the cursor and
the scroll is.

16 years agoAdd support for MENU EXIT; no marker for MENU GOTO
H. Peter Anvin [Wed, 20 Feb 2008 02:14:24 +0000 (18:14 -0800)]
Add support for MENU EXIT; no marker for MENU GOTO

16 years agoWhen entering a new menu, go to the default entry for that menu.
H. Peter Anvin [Wed, 20 Feb 2008 02:13:47 +0000 (18:13 -0800)]
When entering a new menu, go to the default entry for that menu.

16 years agoDocument MENU START
H. Peter Anvin [Wed, 20 Feb 2008 01:15:18 +0000 (17:15 -0800)]
Document MENU START

16 years agoWhitespace cleanup... syslinux-3.62-pre11
H. Peter Anvin [Wed, 20 Feb 2008 00:52:36 +0000 (16:52 -0800)]
Whitespace cleanup...

16 years agocom32: remove dependency files for "make tidy"
H. Peter Anvin [Wed, 20 Feb 2008 00:48:21 +0000 (16:48 -0800)]
com32: remove dependency files for "make tidy"

16 years agoAdd dependency generation for com32 samples.
H. Peter Anvin [Wed, 20 Feb 2008 00:47:09 +0000 (16:47 -0800)]
Add dependency generation for com32 samples.

16 years agoAdd dependency generation for com32 modules.
H. Peter Anvin [Wed, 20 Feb 2008 00:45:42 +0000 (16:45 -0800)]
Add dependency generation for com32 modules.

16 years agoAdd dependency generation for the simple menu system
H. Peter Anvin [Wed, 20 Feb 2008 00:44:52 +0000 (16:44 -0800)]
Add dependency generation for the simple menu system

16 years agoSet m->title for both root and submenus
H. Peter Anvin [Wed, 20 Feb 2008 00:42:40 +0000 (16:42 -0800)]
Set m->title for both root and submenus

16 years agoAllow MENU LABEL <-> MENU TITLE for submenus to work both ways
H. Peter Anvin [Wed, 20 Feb 2008 00:41:44 +0000 (16:41 -0800)]
Allow MENU LABEL <-> MENU TITLE for submenus to work both ways

Allow either "MENU LABEL" or "MENU TITLE" to default for each other.

16 years agoAllow an included file to be treated as a submenu.
H. Peter Anvin [Wed, 20 Feb 2008 00:37:50 +0000 (16:37 -0800)]
Allow an included file to be treated as a submenu.

16 years agoDocument hierarchial menus so far...
H. Peter Anvin [Wed, 20 Feb 2008 00:25:26 +0000 (16:25 -0800)]
Document hierarchial menus so far...

16 years agosimple menu: The use of realloc() requires indirect pointers
H. Peter Anvin [Wed, 20 Feb 2008 00:16:03 +0000 (16:16 -0800)]
simple menu: The use of realloc() requires indirect pointers

Since we store pointers to struct menu_entry, we can't put it in
storage that is subject to realloc().  Accordingly, make menu_entries
an indirect array instead.

16 years agosimple menu: first cut at working submenus
H. Peter Anvin [Tue, 19 Feb 2008 23:33:36 +0000 (15:33 -0800)]
simple menu: first cut at working submenus

With this edit, the submenu system seems to have minimal
functionality.