search for: try_name

Displaying 4 results from an estimated 4 matches for "try_name".

Did you mean: my_name
2004 Mar 09
4
[PATCH] kinit
...= 0 && - (argv[i][len] == '\0')) { + (argv[i][len] != '\0')) { ret = argv[i] + len; break; } --- klibc-0.115_dev/kinit/do_mounts.c 2003-06-01 08:21:09.000000000 +0200 +++ klibc-0.115/kinit/do_mounts.c 2004-03-10 00:11:55.000000000 +0100 @@ -24,7 +24,7 @@ try_name(char *name, int part) char buf[BUF_SZ]; int range; dev_t res; - char *s; + char *s, *p; int len; int fd; @@ -39,6 +39,11 @@ try_name(char *name, int part) if (len <= 0 || len == BUF_SZ || buf[len - 1] != '\n') goto fail; buf[len - 1] = '\0'; + + for (p = buf; *...
2011 Jul 05
6
[PATCH 1/7] ln: Check snprintf() return values
Add some semi-useful error message, as printing the failing dir or file seems not really advisable after that error. Signed-off-by: maximilian attems <max at stro.at> --- usr/utils/ln.c | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/usr/utils/ln.c b/usr/utils/ln.c index e826eb8..257b33f 100644 --- a/usr/utils/ln.c +++ b/usr/utils/ln.c @@ -9,7
2011 Aug 07
2
[PATCH] kinit minor checkpatch cleanup
...typeof(y) _y = (y); \ + (void) (&_x == &_y); \ + _x > _y ? _x : _y; }) #ifdef DEBUG diff --git a/usr/kinit/name_to_dev.c b/usr/kinit/name_to_dev.c index d491285..d8c1736 100644 --- a/usr/kinit/name_to_dev.c +++ b/usr/kinit/name_to_dev.c @@ -69,7 +69,7 @@ static dev_t try_name(char *name, int part) return res + part; } - fail: +fail: return (dev_t) 0; } @@ -122,8 +122,8 @@ static inline dev_t name_to_dev_t_real(const char *name) return st.st_rdev; if (strncmp(name, "/dev/", 5)) { - if ((cptr = strchr(devname+5, ':')) &&...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...itioned = partitioned; - md_setup_args[ent].minor = minor; + md_setup_args[ent].minor = minor_num; return 1; } diff --git a/usr/kinit/name_to_dev.c b/usr/kinit/name_to_dev.c index 593bc12..e5ad1cc 100644 --- a/usr/kinit/name_to_dev.c +++ b/usr/kinit/name_to_dev.c @@ -20,7 +20,7 @@ static dev_t try_name(char *name, int part) char path[BUF_SZ]; char buf[BUF_SZ]; int range; - unsigned int major, minor; + unsigned int major_num, minor_num; dev_t res; char *s; int len; @@ -37,13 +37,13 @@ static dev_t try_name(char *name, int part) if (len <= 0 || len == BUF_SZ || buf[len - 1] != '...