Commit f820b71c authored by Alessandro Rubini's avatar Alessandro Rubini

tools: bugfix: update glob for fdelay-raw.h too

commit "38c4b7ab lib,tools: fixed globbing for new system version"
was not complete: tools/fd-raw-[gs]ettime were still not working.

BTW. the change of name in ZIO devices and sysfs names was due to
2.6.24 limitations on string lengths. But we now support both short
and long names, as a later re-port to 2.6.24 should be simple.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c6377cee
......@@ -8,7 +8,8 @@ static inline int fdelay_get_sysnames(char *result[])
glob_t glob_buf = {0,};
int i;
glob("/sys/bus/zio/devices/fd-*",0 , NULL, &glob_buf);
glob("/sys/bus/zio/devices/fd-*", 0, NULL, &glob_buf);
glob("/sys/bus/zio/devices/zio-fd-*", GLOB_APPEND , NULL, &glob_buf);
for (i = 0; i < glob_buf.gl_pathc; i++)
result[i] = strdup(glob_buf.gl_pathv[i]);
globfree(&glob_buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment