Displaying 13 results from an estimated 13 matches for "currentdir".
2008 Jul 16
1
[PATCH] isolinux: rename CurDir to CurrentDir
ldlinux and extlinux are both using CurrentDir variable name.
Rename CurDir to make it consistent with those.
- Sebastian
Index: syslinux-3.71-pre7/core/isolinux.asm
===================================================================
--- syslinux-3.71-pre7.orig/core/isolinux.asm 2008-07-13 19:52:27.000000000 +0200
+++ syslinux-3.71-pre7/core/...
2008 Jun 17
1
ldlinux: CurrentDir not set if syslinux.cfg is missing
If a syslinux floppy does not contain a config file (syslinux.cfg) modules are
not being found unless specified with a directory prefix (e.g. /pcitest.c32).
The reason is that CurrentDir is only set if there is a config file present. This is a
possible regression since commit 68eefb79e2cbb590ebf958dd0c50ce00b941abd2.
Before this change RootDir was used in searchdir and now it's CurrentDir unless
the filename starts with '/'. Possible fix is to set CurrentDir to RootDir...
2008 Jul 09
1
[RESEND][PATCH] ldlinux: CurrentDir not set if syslinux.cfg is missing
> If a syslinux floppy does not contain a config file (syslinux.cfg) modules are
> not being found unless specified with a directory prefix (e.g. /pcitest.c32).
> The reason is that CurrentDir is only set if there is a config file present. This is a
> possible regression since commit 68eefb79e2cbb590ebf958dd0c50ce00b941abd2.
> Before this change RootDir was used in searchdir and now it's CurrentDir unless
> the filename starts with '/'. Possible fix is to set Current...
2011 Mar 05
0
extractModelParameters HELP!!!
...I have
360 cells and each cell has several out files (max. 100). I'm extracting the
model parameters from each cell and doing subsequent calculations, primarily, on
'est.' column. The following code demonstrates how I'm extracting the parameters
and referencing the est. column:
CurrentDir =
paste("D:/Dissertation/Mplus_Output_2Class_LGMM/",a,"-",b,"-",c,"-",d,"-",e,"-",f,
sep="")
modelResults <- extractModelParameters(CurrentDir, recursive=FALSE,
dropDimensions=TRUE)
numReps = length(list.files(CurrentDir, pa...
2013 Apr 02
3
How to do platform independent system calls?
Dear R experts,
I hope everyone has had a happy easter break.
Recently my work included writing R function that need to call external tools.
I did this using R's system function for example:
system( paste( 'tool', '-input', path_to_input, '-output',
path_to_output, '-other_switch', some_val ) )
I have two question about this:
1) Is there a way to implement
2008 Nov 10
2
[PATCH 1/1] COMBOOT API: Add get current working directory call to most
...n API call to obtain the current working directory. EXTLINUX
will not return the correct value yet however SYSLINUX, ISOLINUX, and
PXELINUX will return the correct value. For the moment, EXTLINUX will
ONLY return "/" (null-terminated of course). In SYSLINUX and
ISOLINUX, it presets the CurrentDirName string to "/" for safety.
PXELINUX copies TFTP Prefix to CurrentDirName (minus the trailing
"/").
Based on current head. Conflicts with a previous patch I e-mailed.
diff --git a/core/comboot.inc b/core/comboot.inc
index 810d825..bdc43ba 100644
--- a/core/comboot.inc
+++ b...
2008 Nov 03
1
[PATCH 1/1] COMBOOT: add get config file full name
...AX ; Can't find a better length definition
diff --git a/core/ldlinux.asm b/core/ldlinux.asm
index c7f6577..859a52e 100644
--- a/core/ldlinux.asm
+++ b/core/ldlinux.asm
@@ -904,15 +904,26 @@ getfattype:
mov eax,[RootDir] ; Make the root directory ...
mov [CurrentDir],eax ; ... the current directory
mov di,syslinux_cfg1
+ push di
call open
+ pop di
jnz .config_open
mov di,syslinux_cfg2
+ push di
call open
+ pop di...
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...API call to obtain the current working directory. EXTLINUX
will not return the correct value yet however SYSLINUX, ISOLINUX, and
PXELINUX will return the correct value. For the moment, EXTLINUX will
ONLY return "./" (null-terminated of course). In SYSLINUX and
ISOLINUX, it presets the CurrentDirName string to "/" for safety.
PXELINUX copies TFTP Prefix to CurrentDirName.
Also adds API calls for opening a directory, reading one filename and
some of its info and closing the directory. These API calls are only
implemented in SYSLINUX for now. ISOLINUX will probably be next on my...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...API call to obtain the current working directory. EXTLINUX
will not return the correct value yet however SYSLINUX, ISOLINUX, and
PXELINUX will return the correct value. For the moment, EXTLINUX will
ONLY return "./" (null-terminated of course). In SYSLINUX and
ISOLINUX, it presets the CurrentDirName string to "/" for safety.
PXELINUX copies TFTP Prefix to CurrentDirName.
Also adds API calls for opening a directory, reading one filename and
some of its info and closing the directory. These API calls are only
implemented in SYSLINUX for now. ISOLINUX will probably be next on my...
2013 Oct 03
0
Automatic boot menu?
...@@
+/*
+** Read only code copied from:
+**
+** LuaFileSystem
+** Copyright Kepler Project 2003 (http://www.keplerproject.org/luafilesystem)
+**
+** File system manipulation library.
+** This library offers these functions:
+** lfs.attributes (filepath [, attributename])
+** lfs.chdir (path)
+** lfs.currentdir ()
+** lfs.dir (path)
+**
+** $Id: lfs.c,v 1.61 2009/07/04 02:10:16 mascarenhas Exp $
+*/
+
+#include <dirent.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include &qu...
2013 Aug 30
2
Automatic boot menu?
"H. Peter Anvin" <hpa at zytor.com> writes:
> On 08/29/2013 04:14 AM, Ferenc Wagner wrote:
>
>> "H. Peter Anvin" <hpa at zytor.com> writes:
>>
>>> On 08/22/2013 10:20 AM, Ferenc Wagner wrote:
>>>
>>>> Now that Syslinux has ls.c32 and lua.c32, it should be possible to build
>>>> a customizable boot menu in
2009 Mar 21
0
[PATCH 1/1] SYSLINUX/COMBOOT: Abstract searchdir and fix the opendir call
...:
+; searchdir4any:
;
; Open a file
;
@@ -1299,13 +1301,15 @@ close_dir:
; ZF clear
; SI = file pointer
; EAX = file length in bytes
+; DL = FAT attributes
; If unsuccessful
; ZF set
;
; Assumes CS == DS == ES, and trashes BX and CX.
;
-searchdir:
+searchdir4any:
mov eax,[CurrentDir]
+ mov dl,0
cmp byte [di],'/' ; Root directory?
jne .notroot
mov eax,[RootDir]
@@ -1332,7 +1336,7 @@ searchdir:
dec dx
cmp dx,si
jz .founddir
-
+.searchname:
mov [PrevDir],eax ; Remember last directory searched
push di
@@ -1344,7 +1348,58 @@ searchdir:
cmp byte...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi,
This series targets automatic boot menu generation, but most of it
is the Lua upgrade, because I got tired reading deprecated API docs.
It's mostly a straightforward forward port of the earlier Syslinux
specific changes to Lua 5.1, except that:
* I chose the add a stub getenv() implementation to the COM32 API
instead of #ifdefing out all the references in Lua, and
* I kept oslib