diff options
author | Joseph Jezak <josejx@gentoo.org> | 2012-06-20 13:54:25 +0000 |
---|---|---|
committer | Joseph Jezak <josejx@gentoo.org> | 2012-06-20 13:54:25 +0000 |
commit | 88976059711d66f86d0f519f0a7d5d6c43bcb1d3 (patch) | |
tree | 0303303f3a814ee81561c5b44d55be0ff7a1dd79 /sys-boot/yaboot/files | |
parent | Version bump. (diff) | |
download | historical-88976059711d66f86d0f519f0a7d5d6c43bcb1d3.tar.gz historical-88976059711d66f86d0f519f0a7d5d6c43bcb1d3.tar.bz2 historical-88976059711d66f86d0f519f0a7d5d6c43bcb1d3.zip |
Added more stub functions for newer e2fsprogs, marked stable.
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'sys-boot/yaboot/files')
-rw-r--r-- | sys-boot/yaboot/files/yaboot-stubfuncs.patch | 47 |
1 files changed, 37 insertions, 10 deletions
diff --git a/sys-boot/yaboot/files/yaboot-stubfuncs.patch b/sys-boot/yaboot/files/yaboot-stubfuncs.patch index ae78202bde37..55724c3edda2 100644 --- a/sys-boot/yaboot/files/yaboot-stubfuncs.patch +++ b/sys-boot/yaboot/files/yaboot-stubfuncs.patch @@ -1,7 +1,5 @@ -diff --git a/lib/malloc.c b/lib/malloc.c -index 0121112..e6b29c4 100644 ---- a/lib/malloc.c -+++ b/lib/malloc.c +--- lib/malloc.c ++++ lib/malloc.c @@ -64,6 +64,15 @@ void *malloc (unsigned int size) return caddr; } @@ -18,11 +16,9 @@ index 0121112..e6b29c4 100644 /* Do not fall back to the malloc above as posix_memalign is needed by * external libraries not yaboot */ int posix_memalign(void **memptr, size_t alignment, size_t size) -diff --git a/lib/nonstd.c b/lib/nonstd.c -index 5aeb0cb..b536180 100644 ---- a/lib/nonstd.c -+++ b/lib/nonstd.c -@@ -65,3 +65,147 @@ char *getenv(const char *name) +--- lib/nonstd.c 2012-06-20 09:38:54.000000000 -0400 ++++ lib/nonstd.c 2012-06-20 09:38:57.000000000 -0400 +@@ -65,3 +65,178 @@ { return NULL; } @@ -44,14 +40,22 @@ index 5aeb0cb..b536180 100644 + return prom_read((void *)fd, buf, count); +} + ++int write(int fd, void *buf, size_t count) { ++ return prom_write((void *)fd, buf, count); ++} ++ +int close(int fd) { + prom_close((void *)fd); + return 0; +} + ++// No fsync, just assume we've sync'd ++int fsync(int fd) { ++ return 0; ++} ++ +void exit(int status) { + prom_exit(); -+ return; +} + +int __printf_chk(int flag, const char *format, ...) { @@ -167,6 +171,29 @@ index 5aeb0cb..b536180 100644 + return 0; +} + ++int ioctl(int d, int request, ...) { ++ return 0; ++} ++ ++int fallocate(int fd, int mode, unsigned int offset, unsigned int len) { ++ return 0; ++} ++ ++int uname(void *buf) { ++ return 0; ++} ++ ++int setrlimit(int resource, void *rlim) { ++ return 0; ++} ++ ++unsigned long long int strtoull(const char *nptr, char **endptr, int base) { ++ return 0; ++} ++ ++int getrlimit(int resource, void *rlim) { ++ return 0; ++} + +int stderr = 0; +int perror = 0; |