Lines Matching defs:path
411 char path[PATH_MAX];
417 for (w = 0; (w < 3) && (id < 0) && (find_directory(which[w],0,true,path,PATH_MAX) == 0); w++)
419 strcat(path,"/SANE/");
420 strcat(path,be->name);
428 DBG(2, "dlopen()ing `%s'\n", path);
429 id=load_add_on(path);
432 continue; /* try next path */
448 DBG(2, "load: couldn't find %s\n",path);
460 char *funcname, *src, *orig_src = 0, *dir, *path = 0;
504 path = getenv ("LD_LIBRARY_PATH");
505 if (!path)
506 path = getenv ("SHLIB_PATH"); /* for HP-UX */
507 if (!path)
508 path = getenv ("LIBPATH"); /* for AIX */
510 if (path)
512 src_len = strlen (path) + strlen (DIR_SEP) + strlen(LIBDIR) + 1;
519 snprintf (src, src_len, "%s%s%s", path, DIR_SEP, LIBDIR);
883 /* length of path to parent dir of dll.d/ */
922 /* expects a path relative to PATH_SANE_CONFIG_DIR */
942 char path[1024];
1002 if (find_directory(which[i],0,true,path,1024) < B_OK)
1004 strcat(path,"/SANE/");
1005 dir=opendir(path);
1277 DBG (0, "%s: the device name does not contain path\n", __func__);