Home
last modified time | relevance | path

Searched refs:rootpath (Results 1 – 8 of 8) sorted by relevance

/dragonfly/stand/boot/common/
HDdev_net.c266 if (bp_getfile(sock, "root", &rootip, rootpath)) { in net_getparams()
276 for (i = 0; i < FNAME_SIZE && rootpath[i] != '\0'; i++) in net_getparams()
277 if (rootpath[i] == ':') in net_getparams()
279 if (i && i != FNAME_SIZE && rootpath[i] == ':') { in net_getparams()
280 rootpath[i++] = '\0'; in net_getparams()
281 if (inet_addr(&rootpath[0]) != INADDR_NONE) in net_getparams()
282 rootip.s_addr = inet_addr(&rootpath[0]); in net_getparams()
283 bcopy(&rootpath[i], &temp[0], strlen(&rootpath[i])+1); in net_getparams()
284 bcopy(&temp[0], &rootpath[0], strlen(&rootpath[i])+1); in net_getparams()
287 printf("net_open: server path: %s\n", rootpath); in net_getparams()
[all …]
HDrel_open.c213 char *rootpath; in rel_rootpath() local
219 rootpath = strdup(path); in rel_rootpath()
221 rootpath = malloc(strlen(path) + sizeof("/boot")); in rel_rootpath()
222 sprintf(rootpath, "/boot%s", path); in rel_rootpath()
224 rootpath = malloc(strlen(DirBase) + strlen(path) + in rel_rootpath()
226 sprintf(rootpath, "/boot%s%s", DirBase, path); in rel_rootpath()
229 return (rootpath); in rel_rootpath()
HDmodule.c566 char *rootpath; in file_findfile() local
568 rootpath = NULL; in file_findfile()
570 rootpath = rel_rootpath(name); in file_findfile()
573 if (((rootpath == NULL) || !strcmp(rootpath, fp->f_name)) && in file_findfile()
578 if (rootpath != NULL) in file_findfile()
579 free(rootpath); in file_findfile()
/dragonfly/stand/boot/pc32/libi386/
HDpxe.c82 static void pxe_setnfshandle(char *rootpath);
287 if (!rootpath[1]) in pxe_open()
288 strcpy(rootpath, PXENFSROOTPATH); in pxe_open()
290 for (i = 0; i < FNAME_SIZE && rootpath[i] != '\0'; i++) { in pxe_open()
291 if (rootpath[i] == ':') in pxe_open()
294 if (i && i != FNAME_SIZE && rootpath[i] == ':') { in pxe_open()
295 rootpath[i++] = '\0'; in pxe_open()
296 if (inet_addr(&rootpath[0]) != INADDR_NONE) in pxe_open()
297 rootip.s_addr = inet_addr(&rootpath[0]); in pxe_open()
298 bcopy(&rootpath[i], &temp[0], strlen(&rootpath[i])+1); in pxe_open()
[all …]
/dragonfly/stand/lib/
HDbootp.c359 strncpy(rootpath, (char *)cp, sizeof(rootpath)); in vend_rfc1048()
360 rootpath[size] = '\0'; in vend_rfc1048()
HDglobals.c19 char rootpath[FNAME_SIZE] = "/"; /* root mount path */ variable
HDnet.h74 extern char rootpath[FNAME_SIZE];
HDnfs.c408 printf("nfs_open: %s (rootpath=%s)\n", path, rootpath); in nfs_open()
410 if (!rootpath[0]) { in nfs_open()
427 if ((error = nfs_getrootfh(desc, rootpath, nfs_root_node.fh))) in nfs_open()