aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh
Commit message (Collapse)AuthorAgeFilesLines
* rosh: update for Syslinux 4 and make it more usableGene Cumm2010-06-272-344/+733
| | | | | | | | | Without further adieu, I would like to announce that I've finally pushed ROSH, the Read-Only SHell, finally to the point of being reasonably usable. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rosh.c: mark argument usedH. Peter Anvin2010-05-121-0/+2
| | | | | | -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* readdir: replace opendir/readdir/closedir API with a 32-bit APIH. Peter Anvin2010-03-041-1/+0
| | | | | | | | The 16-bit API to opendir/readdir/closedir was confused, had a memory leak, and was incompatible with Syslinux 3.x anyway. Replace it with a pure 32-bit API. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'master' into fscH. Peter Anvin2010-01-242-6/+6
|\ | | | | | | | | | | Conflicts: com32/lib/MCONFIG com32/lib/readdir.c
| * Makefile: replace -W -Wall with centralized $(GCCWARN)H. Peter Anvin2010-01-101-2/+2
| | | | | | | | | | | | | | | | | | Replace -W -Wall hardcoded into a bunch of Makefiles with $(GCCWARN), a centralized variable defined in the root MCONFIG. Add -Wstrict-prototypes to the list of global warnings: we should never have non-prototyped declarations. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Change () prototypes to (void)H. Peter Anvin2010-01-061-4/+4
| | | | | | | | | | | | | | | | () means the same as (...) in C, not the same as (void) as it does in C++. It is generally misused to mean (void), though. Actually write what we mean... this is C, after all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Core: code clean -- re-style the unstyle codeLiu Aleaxander2009-08-281-1/+1
| | | | | | | | | | | | | | With the emacs config given by hpa, which is really powfull, I restyled the unsytled code. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | Core: vfs-dir stuff re-implementedLiu Aleaxander2009-08-281-2/+1
| | | | | | | | | | | | | | | | | | We fist make it simple, as told by hpa. Here're the changes: 1, The DIR structure changed, just a file pointer included. 2. So, the open/close/read-dir stuff in com32/lib/ changed again. 3. We read one stuff from every readdir call. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | Core: opendir/readdir/closedir stuff addedLiu Aleaxander2009-08-271-7/+4
| | | | | | | | | | | | | | | | | | | | | | Here're some big changes: 1. The vfs-dir stuff added. 2. The dir-functions in com32/lib are mostly rewritten. 3. with little change on rosh for avoid the compile error Well, I don't think it's a good vfs-dir interface. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | Core:SYSLINUX: make searchdir do workLiu Aleaxander2009-08-111-4/+4
| | | | | | | | | | | | | | | | well, still get lots of bugs, like when we execute dir /boot/syslinux in fact, it will list the file in /boot/ directory but not in /boot/syslinux/ Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* | Core:SYSLINUX: fix the vfat_searchdirLiu Aleaxander2009-08-112-1/+3
|/ | | | | | This makes the searchdir can find a dir; it's also prepared for the readdir function used in rosh Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* Run Nindent on com32/rosh/rosh.hH. Peter Anvin2009-05-291-42/+44
| | | | | | | | | Automatically reformat com32/rosh/rosh.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/rosh/rosh.cH. Peter Anvin2009-05-291-516/+574
| | | | | | | | | Automatically reformat com32/rosh/rosh.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>
* Global whitespace cleanup.H. Peter Anvin2009-04-201-14/+14
| | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* rosh: don't compile rosh.lnx by defaultsyslinux-3.75H. Peter Anvin2009-04-151-1/+1
| | | | | | | Don't compile rosh.lnx by default. It causes unnecessary dependencies on the host system. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Makefiles: try to make "make install" do the right thingH. Peter Anvin2009-04-061-1/+1
| | | | | | | | One more attempt at getting semi-sanity to "make install". Realistically, the install/netinstall/install-all/... needs to be pushed into the com32 Makefiles, but this is at least a quick hack. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* COM32 module: Read-Only shellGene Cumm2009-02-154-0/+1023
Well, here's the read-only shell (rosh) that I've been working on. It's functional but still quite rough. My primary intention of posting it at this time is such that people have an easy way to demonstrate to themselves that the library calls I made work. This should apply as a patch to the head of the "dir" branch and the patch for c_cflag/c_lflag. The patch is only needed for Linux(without it, segfaults will occur). I've designed it to compile as a COM32 module and Linux binary when using GNU C (as Syslinux currently requires GNU C, if I read the Makefiles correctly).