Displaying 3 results from an estimated 3 matches for "sldlinux".
Did you mean:
ldlinux
2015 Nov 13
4
[PATCH 1/4] extlinux: simplification
...f --git a/extlinux/main.c b/extlinux/main.c
index a2a396a..5bab712 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -561,19 +561,51 @@ error:
return -1;
}
+static int ext_install_ldlinux_c32(const char *path)
+{
+ char *file;
+ int fd, rv;
+
+ rv = asprintf(&file, "%s%sldlinux.c32",
+ path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/");
+ if (rv < 0 || !file) {
+ perror(program);
+ return 1;
+ }
+
+ fd = open(file, O_WRONLY | O_TRUNC | O_CREAT | O_SYNC,
+ S_IRUSR | S_IRGRP | S_IROTH);
+ if (fd < 0...
2012 Aug 02
0
[PATCH 2/3] ALPHA: first try to fix adv problem
...os += 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 devfd, struct stat *rst)
goto bail;
}
+ /* FIXME copied above */
+ sector_size = fs_type == BTRFS ? SE...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...+ goto error;
+ }
+
+ return fd;
+
+error:
+ close(fd);
+
+ return -1;
+}
+
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;
r1 = asprintf(&file, "%s%sldlinux.sys",
@@ -429,30 +523,9 @@ int ext2_fat_install_file(const char *path, int devfd, struct stat *rst)
}
close(fd);
- fd = open(file, O_WRONLY | O_TRUNC | O_CREAT | O_SYNC,
- S_IRUSR | S_IRGRP | S_IROTH);
- if (fd < 0) {
- perror(file);
+ fd = rewrite_boot_image(devf...