similar to: [klibc:master] readlink: Better buffer handling

Displaying 20 results from an estimated 3000 matches similar to: "[klibc:master] readlink: Better buffer handling"

2014 Apr 15
1
[PATCH] Null terminate before printing the link name.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This fixes garbage I'm seeing consistently from readlink /dev/disk/by-uuid/..... during boot. Signed-off-by: Rafi Rubin <rafi at seas.upenn.edu> - --- usr/utils/readlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/utils/readlink.c b/usr/utils/readlink.c index 5ea4e41..75a0735 100644 - ---
2014 Apr 15
0
[klibc:master] readlink: Handle multiple input arguments
Commit-ID: 1ba3e80738407d13bc4a71812578848b6f657e23 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=1ba3e80738407d13bc4a71812578848b6f657e23 Author: H. Peter Anvin <hpa at linux.intel.com> AuthorDate: Tue, 15 Apr 2014 09:34:45 -0700 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 15 Apr 2014 09:34:45 -0700 readlink: Handle multiple input
2016 Jan 06
0
[klibc:master] readlink: Add -f option
Commit-ID: 4d9db8a092aee0dfaebb65e0b4f054a40d92cbd9 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4d9db8a092aee0dfaebb65e0b4f054a40d92cbd9 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Wed, 6 Jan 2016 01:09:16 +0000 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 5 Jan 2016 17:48:48 -0800 [klibc] readlink: Add -f option
2014 Sep 27
1
[PATCH 2/2] readlink: Add -f option
This is needed to support mounting non-root filesystems in initramfs-tools. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- initramfs-tools 0.117 only works with busybox; this should allow it to work with klibc again. Ben. --- a/usr/utils/readlink.c +++ b/usr/utils/readlink.c @@ -7,24 +7,45 @@ const char *progname; static __noreturn usage(void) { - fprintf(stderr,
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
hello hpa, please pull for the latest git pull git://brane.itp.tuwien.ac.at/~mattems/klibc.git maks with the following shortlog: maximilian attems (9): mount: add nodev, noexec and nosuid options mount: add -n option cpio: small cleanups readlink: s/link/link_name/ kinit, mknod: s/(major|minor)/\1_num/ klibc: strcspn, strpbrk, strspn include string.h
2009 May 28
1
[PATCH] klibc-utils: add minils
Simple utility to list information about a files. The utility which does the same thing as "ls -la". This is a useful test program. Signed-off-by: Alexey Gladkov <gladkov.alexey at gmail.com> --- usr/utils/Kbuild | 4 +- usr/utils/minils.c | 198 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 201 insertions(+), 1 deletions(-) create mode 100644
2014 Apr 15
0
[klibc:master] readlink: Reduce size by calling _fwrite() instead of puts()
Commit-ID: 06e395cd75dc79289ae789c146795189c32babd8 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=06e395cd75dc79289ae789c146795189c32babd8 Author: H. Peter Anvin <hpa at linux.intel.com> AuthorDate: Tue, 15 Apr 2014 13:23:49 -0700 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 15 Apr 2014 13:23:49 -0700 readlink: Reduce size by calling
2009 May 29
1
[PATCH v2] klibc-utils: add simple ls
Simple utility to list information about a files. The utility which does the same thing as "ls -la". This is a useful test program. Signed-off-by: Alexey Gladkov <gladkov.alexey at gmail.com> --- usr/utils/Kbuild | 4 +- usr/utils/ls.c | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 205 insertions(+), 1 deletions(-) create mode 100644
2019 Jan 18
0
[klibc:master] remove unused variables
Commit-ID: f00d99cb73813d94730900e46752612a9ce4fadb Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=f00d99cb73813d94730900e46752612a9ce4fadb Author: Greg Thelen <gthelen at google.com> AuthorDate: Sun, 25 Feb 2018 23:16:33 -0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Wed, 2 Jan 2019 03:08:04 +0000 [klibc] remove unused variables Fix
2011 Jul 07
5
[PATCH 0/5] checkpatch cleanups
It seems checkpatch errors krept in, this is a first go. Next run will go into usr/kinit directory. No code changes, just codingstyle fixes (verified with size(3)). maximilian attems (5): [klibc] sleep: have argument on next line [klibc] readklink: remove unneeded braces [klibc] mount: whitespace policy [klibc] ls: fix various checkpatch complaints [klibc] tests: checkpatch fixlets
2023 Jan 13
0
[klibc:master] ls: Handle relative directory names correctly
Commit-ID: 3d63cd68496a1c8aeccbdac6488bc1f002700bc8 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=3d63cd68496a1c8aeccbdac6488bc1f002700bc8 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 31 Dec 2022 16:00:28 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 31 Dec 2022 16:04:19 +0100 [klibc] ls: Handle relative
2016 Jan 06
3
[PATCH klibc 0/3] Changes to support initramfs-tools 0.117
initramfs-tools version 0.117 requires 'readlink -f' and 'mount -o defaults' to work. The first two patches were previously submitted but not applied. Ben. Ben Hutchings (3): Implement realpath() readlink: Add -f option mount: Implement -o defaults usr/include/stdlib.h | 2 ++ usr/klibc/Kbuild | 2 +- usr/klibc/realpath.c | 49
2016 Feb 29
0
Sys.readlink (on BSD vs Linux)
> On Feb 29, 2016, at 5:59 AM, Sven Templer <sven.templer at gmail.com> wrote: > > Hello, > > sorry for not being clear enough. > > My problem is represented with the following code, running on OSX: > > mkdir ~/test > ln -s ~/test ~/testlink > touch ~/test/foo > Rscript -e 'Sys.readlink(c("~/test/foo", "~/testlink/foo"));
2016 Feb 29
2
Sys.readlink (on BSD vs Linux)
Hello together, the function `Sys.readlink` uses the system's readlink command to resolve symlink paths. On OSX/BSD the command has a different meaning than on Linux [1]. There exists the tool 'realpath', which seems suitable for the task, at least applied at the command line level [2]. It is used in `normalizePath`. I suggest (at least the latter) to * use realpath instead readlink
2016 Feb 29
3
Sys.readlink (on BSD vs Linux)
Hello, sorry for not being clear enough. My problem is represented with the following code, running on OSX: mkdir ~/test ln -s ~/test ~/testlink touch ~/test/foo Rscript -e 'Sys.readlink(c("~/test/foo", "~/testlink/foo")); normalizePath(c("~/test/foo","~/testlink/foo"))' I expected `Sys.readlink` to show the same output as `normalizePath`. Also,
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
This is needed as the basis for the readlink -f option. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -92,4 +92,6 @@ static __inline__ int grantpt(int __fd) return 0; /* devpts does this all for us! */ } +__extern char *realpath(const char *, char *); + #endif /* _STDLIB_H */ --- a/usr/klibc/Kbuild +++
2006 Sep 02
0
Dir.readlink
Hi all, I was thinking we should have a Dir.readlink method that would follow a junction to its destination. Sound good? Is ''readlink'' a good choice? Or should we call it read_junction? Regards, Dan
2014 Sep 29
0
[PATCH v2 1/2] Implement realpath()
This is needed as the basis for the readlink -f option. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- v2: Don't implement the BSD/GNU extension of allowing a non-existent last part. Use open(O_PATH) and procfs to get resolved name from the kernel. --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -92,4 +92,6 @@ static __inline__ int grantpt(int __fd) return
2016 Jan 06
0
[klibc:master] Implement realpath()
Commit-ID: 32b36eb98fafad924f3f69904d74d2f2168a4753 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=32b36eb98fafad924f3f69904d74d2f2168a4753 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Wed, 6 Jan 2016 01:08:47 +0000 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 5 Jan 2016 17:48:43 -0800 [klibc] Implement realpath() This
2018 Apr 16
1
lstat & readlink calls during glusterfsd process startup
Hi all, I am on gluster 3.10.5 with one EC volume 16+4. One of the machines go down previous night and I just fixed it and powered on. When glusterfsd processes started they consume all CPU on the server. strace shows every process goes over in bricks directory and do a lstat & readlink calls. Each brick directory is 8TB, %60 full. I waited for 24 hours for it to finish but it did not. I