Lines Matching defs:tinfo
201 char tinfo[MAXPATHLEN];
202 int l = snprintf(tinfo, sizeof(tinfo), "%s/%s", termpath,
204 if (stat(tinfo, &st) == -1)
205 err(1, "Cannot stat `%s'", tinfo);
207 tinfo[l - 4] = '\0';
208 if (setenv("TERMINFO", tinfo, 1) != 0)
212 char *tinfo;
215 if ((tinfo = mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_FILE,
218 if (setenv("TERMINFO", tinfo, 1) != 0)
221 munmap(tinfo, (size_t)st.st_size);