search for: modbyt

Displaying 5 results from an estimated 5 matches for "modbyt".

Did you mean: modbus
2010 Jun 19
0
[PATCH] extlinux/main.c: Silence warnings
...e.cumm at gmail.com> --- diff --git a/extlinux/main.c b/extlinux/main.c index 6ce3b60..a9645d0 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -512,8 +512,9 @@ int ext2_fat_install_file(const char *path, int devfd, struct stat *rst) char *file; int fd = -1, dirfd = -1; int modbytes; + int ret; - asprintf(&file, "%s%sextlinux.sys", + ret = asprintf(&file, "%s%sextlinux.sys", path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); if (!file) { perror(program);
2012 Aug 02
0
[PATCH 2/3] ALPHA: first try to fix adv problem
...uf) : left; + memset(buf, 0, sizeof(buf)); + if (xpwrite(fd, buf, l, *pos) != l) + return 0; + left -= l; + *pos += l; + } + return 1; +} + +static int ext2_fat_install_file(const char *path, int devfd, struct stat *rst) { char *file, *oldfile; int fd = -1, dirfd = -1; int modbytes; int r1, r2; + unsigned sector_size; + unsigned pos; r1 = asprintf(&file, "%s%sldlinux.sys", path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); @@ -450,10 +473,17 @@ int ext2_fat_install_file(const char *path, int d...
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux, Merry Christmas! These patches will make extlinux work with umounted ext2/3/4 filesystem, for example: $ extlinux -i /dev/sdXN or $ extlinux -i file_block Also it can work with something like: $ extlinux /dev/sdXN --reset-adv or $ extlinux file_block --reset-adv We don't use a new option (I planed to use "-d" but it is already in use), it will check whether the
2015 Jan 02
13
[PATCH 0/9] linux/syslinux: support ext2/3/4 device
Hello, Happy New Year! These patches make syslinux/linux support ext2/3/4, and it doesn't require the root privilege, I'd like to add a separate e2fs/syslinux, if that is more appropriate, it should be easy to do that. I put these patches on github so that you can easily get them in case you'd like to test them. (The repo's name is sys_tmp, which avoids confusing others, I will
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...else { if (xpwrite(fd, syslinux_bootsect, syslinux_bootsect_len, 0) != syslinux_bootsect_len) { @@ -396,11 +440,61 @@ int install_bootblock(int fd, const char *device) return 0; } +static int rewrite_boot_image(int devfd, const char *filename) +{ + int fd; + int ret; + int modbytes; + char path[PATH_MAX]; + char slash; + + /* Let's create LDLINUX.SYS file again (if it already exists, of course) */ + fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT | O_SYNC, + S_IRUSR | S_IRGRP | S_IROTH); + if (fd < 0) { + perror(filename); + return -1; + } +...