Lines Matching defs:tinfo
210 char tinfo[MAXPATHLEN];
211 int l = snprintf(tinfo, sizeof(tinfo), "%s/%s", termpath,
213 if (stat(tinfo, &st) == -1)
214 err(1, "Cannot stat `%s'", tinfo);
216 tinfo[l - 4] = '\0';
217 if (setenv("TERMINFO", tinfo, 1) != 0)
221 char *tinfo;
224 if ((tinfo = mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_FILE,
227 if (setenv("TERMINFO", tinfo, 1) != 0)
230 munmap(tinfo, (size_t)st.st_size);