Displaying 2 results from an estimated 2 matches for "link_target".
Did you mean:
leak_target
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
...ype/isprint.o \
--- /dev/null
+++ b/usr/klibc/realpath.c
@@ -0,0 +1,147 @@
+#include <errno.h>
+#include <limits.h>
+#include <stdlib.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+static char *__realpath(const char *name, char *resolved_name, int recurse)
+{
+ char link_target[PATH_MAX];
+ struct stat st;
+ char *p, *end;
+ size_t comp_len;
+ int link_len;
+ int exists = 1;
+ int is_dir = 1;
+
+ /* Keep or ignore base dir depending on whether name is relative */
+ p = resolved_name;
+ if (*name != '/')
+ p += strlen(p);
+
+ /* Find end of buffer */
+ end = resol...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...eferment));
@@ -292,13 +279,13 @@ struct deferment *create_deferment(struct new_cpio_header *file_hdr)
return d;
}
-void free_deferment(struct deferment *d)
+static void free_deferment(struct deferment *d)
{
free(d->header.c_name);
free(d);
}
-int link_to_name(char *link_name, char *link_target)
+static int link_to_name(char *link_name, char *link_target)
{
int res = link(link_target, link_name);
return res;
@@ -352,7 +339,7 @@ static void hash_insert(struct inode_val *new_value)
/* Associate FILE_NAME with the inode NODE_NUM. (Insert into hash table.) */
-void
+static void
a...