search for: filename_max

Displaying 20 results from an estimated 45 matches for "filename_max".

2009 Jul 27
1
[PATCH] mboot using module path
...to test our product. And there are limitations that we have hit in the past w.r.t. the max length of a path, or the max length of a module name (in mboot.c / mboot.c32). We've used workarounds in the past, and reorganized the directory structure, but we face that problem again. Out of the 128 / FILENAME_MAX chars that can be used, 110 - 120 go to the path, that includes: server - user - build - build type - changeset - product type -? product etc. This includes tags that are valuable to us, and that we cannot keep on shortening. I have tried changing FILENAME_MAX / FILENAME_MAX_LG2 definitions to acc...
2011 Apr 26
1
[syslinux:lwip] PXE Cleanups, allow for 128 open files
...its packet buffers into a > - * 64K segment; this should be fixed by moving the packet buffers to high > - * memory. > + * Maximum number of open files. > */ > -#define MAX_OPEN_LG2 5 > +#define MAX_OPEN_LG2 7 > #define MAX_OPEN (1 << MAX_OPEN_LG2) > > #define FILENAME_MAX_LG2 8 > > --- a/core/fs/pxe/pxe.h > +++ b/core/fs/pxe/pxe.h > @@ -21,27 +21,15 @@ > #define PXE_H > > #include <syslinux/pxe_api.h> > -#include "fs.h" /* For MAX_OPEN, should go away */ > +#include "fs.h" /* Mostly for FILENAME_MAX */...
2013 Jun 12
3
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
On Wed, 12 Jun, at 11:17:44AM, Gerardo Exequiel Pozzi wrote: > Cool thanks!. Now looks better, but still not work. > > For some reason, "ldlinux.c32" is apparently sent but "Failed to load" > by PXELINUX and few seconds later, dnsmasq shows an error message > "failed sending": Argh! The patch was broken. I missed the new core/path.c file. My bad.
2013 Jun 12
5
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
.../sys/module/common.c b/com32/lib/sys/module/common.c index 8547036..b763704 100644 --- a/com32/lib/sys/module/common.c +++ b/com32/lib/sys/module/common.c @@ -59,40 +59,28 @@ void print_elf_symbols(struct elf_module *module) { FILE *findpath(char *name) { + struct path_entry *entry; char path[FILENAME_MAX]; FILE *f; - char *p, *n; - int i; f = fopen(name, "rb"); /* for full path */ if (f) return f; - p = PATH; -again: - i = 0; - while (*p && *p != ':' && i < FILENAME_MAX - 1) { - path[i++] = *p++; - } - - if (*p == ':') - p++; + list_for_ea...
2013 Jun 12
0
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
.../sys/module/common.c b/com32/lib/sys/module/common.c index 8547036..b763704 100644 --- a/com32/lib/sys/module/common.c +++ b/com32/lib/sys/module/common.c @@ -59,40 +59,28 @@ void print_elf_symbols(struct elf_module *module) { FILE *findpath(char *name) { + struct path_entry *entry; char path[FILENAME_MAX]; FILE *f; - char *p, *n; - int i; f = fopen(name, "rb"); /* for full path */ if (f) return f; - p = PATH; -again: - i = 0; - while (*p && *p != ':' && i < FILENAME_MAX - 1) { - path[i++] = *p++; - } - - if (*p == ':') - p++; + list_for_ea...
2008 Jan 25
7
vorbis-tools 1.2.0 Release Candidate
I bumped the version number of vorbis-tools and am preparing it for an eventual release in a few days. A changelog of what's new may be found at [1]. Meanwhile, what's in SVN is a "Release Candidate" to find out if anything was broken since version 1.1.1. Report any (or lack of) problems you may find, so we'll be able to put out a new version of vorbis-tools. -Ivo [1]
2013 Jun 11
2
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
On Mon, 10 Jun, at 07:57:50AM, H. Peter Anvin wrote: > Either that or make the path a list rather than a string, using the > normal word separators when entered on the command line, a bit like the > (t)csh does. That is a bigger change but is probably a better solution. How would this solution handle filenames containing spaces? Would we need to escape (presumably with a backslash)
2013 Jun 12
0
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
...ommon.c > index 8547036..b763704 100644 > --- a/com32/lib/sys/module/common.c > +++ b/com32/lib/sys/module/common.c > @@ -59,40 +59,28 @@ void print_elf_symbols(struct elf_module *module) { > > FILE *findpath(char *name) > { > + struct path_entry *entry; > char path[FILENAME_MAX]; > FILE *f; > - char *p, *n; > - int i; > > f = fopen(name, "rb"); /* for full path */ > if (f) > return f; > > - p = PATH; > -again: > - i = 0; > - while (*p && *p != ':' && i < FILENAME_MAX - 1) { > - path[...
2010 Jun 26
0
[MODULE] pwd
...Display present (current) working directory + */ + +#include <errno.h> +#include <stdio.h> +#include <console.h> +#include <unistd.h> +#include <dirent.h> + +/* Size of path buffer string */ +#ifndef PATH_MAX +# ifdef NAME_MAX +# define PATH_MAX NAME_MAX +# elif FILENAME_MAX +# define PATH_MAX FILENAME_MAX +# else +# define PATH_MAX 256 +# endif /* NAME_MAX */ +#endif /* PATH_MAX */ + +int main(void) +{ + int rv = 0; + char pwd[PATH_MAX], *pwdptr; + + openconsole(&dev_rawcon_r, &dev_stdcon_w); + pwdptr = getcwd(pwd, PATH_MAX); +...
2008 Nov 10
2
[PATCH 1/1] COMBOOT API: Add get current working directory call to most
..._writeadv ; 001D write ADV to disk + dw comapi_getcwd ; 001E get current working directory int22_count equ ($-int22_table)/2 APIKeyWait db 0 @@ -1109,3 +1118,4 @@ err_comlarge db 'COMBOOT image too large.', CR, LF, 0 alignb 4 DOSErrTramp resd 33 ; Error trampolines ConfigName resb FILENAME_MAX +CurrentDirName resb FILENAME_MAX diff --git a/core/extlinux.asm b/core/extlinux.asm index 24d0d92..c9ec166 100644 --- a/core/extlinux.asm +++ b/core/extlinux.asm @@ -42,6 +42,8 @@ MAX_SYMLINKS equ 64 ; Maximum number of symlinks per lookup SYMLINK_SECTORS equ 2 ; Max number of sectors in a sy...
2008 Nov 03
1
[PATCH 1/1] COMBOOT: add get config file full name
...l ; 001E get full name of config f int22_count equ ($-int22_table)/2 APIKeyWait db 0 @@ -1109,3 +1122,4 @@ err_comlarge db 'COMBOOT image too large.', CR, LF, 0 alignb 4 DOSErrTramp resd 33 ; Error trampolines ConfigName resb FILENAME_MAX +ConfigNameFull resb FILENAME_MAX ; 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...
2010 Jul 15
1
Accessing command_line from core C code
...git a/core/display_labels.c b/core/display_labels.c new file mode 100644 index 0000000..a8ba945 --- /dev/null +++ b/core/display_labels.c @@ -0,0 +1,40 @@ +#include <stdio.h> +#include <string.h> +#include "core.h" +#include "fs.h" + +struct vkernel { + char vname[FILENAME_MAX]; + char rname[FILENAME_MAX]; + uint8_t ipappend; + uint8_t type; + uint16_t appendlen; + char append[2048]; /* align 4 */ +}; + +void pm_display_labels(com32sys_t *regs) +{ + struct vkernel *vk; + void *buf; + uint32_t t; + uint32_t s; + + printf("\ncommand_line:...
2000 Dec 15
1
AIX + ogg123
Has anyone managed to get ogg123 to compile in AIX? I'm got an RS6k with a PPC 604e, running AIX 4.3.3. I can get libogg, libvorbis, libao, oggenc (so, everything _but_ ogg123) to compile just fine. I'm using gcc, thankfully, and not the native IBM compilers. I believe the problem to be with the linker. By default gcc for AIX doesn't use the GNU linker, but the standard AIX
2011 May 25
1
[GIT PULL] elflink ldlinux
Hi, These patches contain support for some features that are already in Syslinux 4 but weren't working properly on the elflink branch. It's another step closer to feature parity with Syslinux 4. Having to jump through the comboot API for localboot support is less than ideal and I'll eventually fix that, probably when we move a big chunk of code from asm to C. Also, there's a
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com> The following patch series is available at, git://git.zytor.com/users/mfleming/syslinux.git elflink All patches are against the 'elflink' branch. This series fixes a few serious bugs and some behavioural incompatibilities with the 4.x series. Matt Fleming (19): ldlinux: Initialise 'p' before using it. ldlinux: Parse
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...ory + dw comapi_readdir ; 0021 read directory + dw comapi_closedir ; 0022 close directory int22_count equ ($-int22_table)/2 APIKeyWait db 0 @@ -1124,3 +1194,4 @@ err_comlarge db 'COMBOOT image too large.', CR, LF, 0 alignb 4 DOSErrTramp resd 33 ; Error trampolines ConfigName resb FILENAME_MAX +CurrentDirName resb FILENAME_MAX diff --git a/core/extlinux.asm b/core/extlinux.asm index 24d0d92..c7a51e9 100644 --- a/core/extlinux.asm +++ b/core/extlinux.asm @@ -42,6 +42,9 @@ MAX_SYMLINKS equ 64 ; Maximum number of symlinks per lookup SYMLINK_SECTORS equ 2 ; Max number of sectors in a sy...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...ory + dw comapi_readdir ; 0020 read directory + dw comapi_closedir ; 0021 close directory int22_count equ ($-int22_table)/2 APIKeyWait db 0 @@ -1109,3 +1179,4 @@ err_comlarge db 'COMBOOT image too large.', CR, LF, 0 alignb 4 DOSErrTramp resd 33 ; Error trampolines ConfigName resb FILENAME_MAX +CurrentDirName resb FILENAME_MAX diff --git a/core/extlinux.asm b/core/extlinux.asm index 24d0d92..c7a51e9 100644 --- a/core/extlinux.asm +++ b/core/extlinux.asm @@ -42,6 +42,9 @@ MAX_SYMLINKS equ 64 ; Maximum number of symlinks per lookup SYMLINK_SECTORS equ 2 ; Max number of sectors in a sy...
2002 Oct 06
2
Does pxelinux work with >1GB RAM?
On machines with 2GB RAM, pxelinux doesn't seem to work for me. With Intel PXE, I had to limit the memory available to PXE to 768MB RAM. Has anyone tried pxelinux on machines with >= 1GB RAM? How do I limit memory to 768MB for pxelinux? H.J.
2013 Oct 03
0
Automatic boot menu?
...nclude "lua.h" +#include "lauxlib.h" +#include "lualib.h" + +#define chdir_error strerror(errno) + +#define LFS_LIBNAME "lfs" + +/* Size of path buffer string, stolen from pwd.c */ +#ifndef PATH_MAX +# ifdef NAME_MAX +# define PATH_MAX NAME_MAX +# elif FILENAME_MAX +# define PATH_MAX FILENAME_MAX +# else +# define PATH_MAX 256 +# endif /* NAME_MAX */ +#endif /* PATH_MAX */ + + +#define DIR_METATABLE "directory metatable" +typedef struct dir_data { + int closed; + DIR *dir; +} dir_data; + + +#define STAT_STRUCT struct...
2013 Dec 01
0
[PATCH] core: Bad read of file size over TFTP
...le, uint16_t errnum, const char *errstr); @@ -209,8 +194,6 @@ void tftp_open(struct url_info *url, int flags, struct inode *inode, static const char rrq_tail[] = "octet\0""tsize\0""0\0""blksize\0""1408"; char rrq_packet_buf[2+2*FILENAME_MAX+sizeof rrq_tail]; char reply_packet_buf[PKTBUF_SIZE]; - const struct tftp_options *tftp_opt; - int i = 0; int err; int buffersize; int rrq_len; @@ -219,7 +202,7 @@ void tftp_open(struct url_info *url, int flags, struct inode *inode, jiffies_t oldtime; uint16_t op...