Searched refs:mpPath (Results 1 - 2 of 2) sorted by relevance

/xsrc/external/mit/xorg-server.old/dist/hw/xfree86/os-support/linux/
H A Dlnx_kmod.c42 char mpPath[MAX_PATH] = ""; local in function:xf86LoadKernelModule
49 int count = read(fd, mpPath, MAX_PATH - 1);
51 mpPath[0] = 0;
53 else if (mpPath[count - 1] == '\n') {
54 mpPath[count - 1] = 0; /* replaces \n with \0 */
57 /* if this worked, mpPath will be "/sbin/modprobe" or similar. */
60 if (mpPath[0] == 0) {
62 strcpy(mpPath, "/sbin/modprobe");
81 n = execl(mpPath, "modprobe", modName, NULL);
/xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/linux/
H A Dlnx_kmod.c39 char mpPath[MAX_PATH] = ""; local in function:xf86LoadKernelModule
46 int count = read(fd, mpPath, MAX_PATH - 1);
49 mpPath[0] = 0;
51 else if (mpPath[count - 1] == '\n') {
52 mpPath[count - 1] = 0; /* replaces \n with \0 */
55 /* if this worked, mpPath will be "/sbin/modprobe" or similar. */
58 if (mpPath[0] == 0) {
60 strcpy(mpPath, "/sbin/modprobe");
79 execl(mpPath, "modprobe", modName, NULL);

Completed in 2 milliseconds