nwrap 157 lib/nss_wrapper/nss_wrapper.c static bool nwrap_pw_parse_line(struct nwrap_cache *nwrap, char *line); nwrap 158 lib/nss_wrapper/nss_wrapper.c static void nwrap_pw_unload(struct nwrap_cache *nwrap); nwrap 171 lib/nss_wrapper/nss_wrapper.c static bool nwrap_gr_parse_line(struct nwrap_cache *nwrap, char *line); nwrap 172 lib/nss_wrapper/nss_wrapper.c static void nwrap_gr_unload(struct nwrap_cache *nwrap); nwrap 218 lib/nss_wrapper/nss_wrapper.c static bool nwrap_parse_file(struct nwrap_cache *nwrap) nwrap 224 lib/nss_wrapper/nss_wrapper.c if (nwrap->st.st_size == 0) { nwrap 230 lib/nss_wrapper/nss_wrapper.c if (nwrap->st.st_size > INT32_MAX) { nwrap 232 lib/nss_wrapper/nss_wrapper.c __location__, (unsigned)nwrap->st.st_size)); nwrap 236 lib/nss_wrapper/nss_wrapper.c ret = lseek(nwrap->fd, 0, SEEK_SET); nwrap 242 lib/nss_wrapper/nss_wrapper.c buf = (uint8_t *)malloc(nwrap->st.st_size + 1); nwrap 248 lib/nss_wrapper/nss_wrapper.c ret = read(nwrap->fd, buf, nwrap->st.st_size); nwrap 249 lib/nss_wrapper/nss_wrapper.c if (ret != nwrap->st.st_size) { nwrap 251 lib/nss_wrapper/nss_wrapper.c __location__, (unsigned)nwrap->st.st_size, ret)); nwrap 255 lib/nss_wrapper/nss_wrapper.c buf[nwrap->st.st_size] = '\0'; nwrap 283 lib/nss_wrapper/nss_wrapper.c ok = nwrap->parse_line(nwrap, line); nwrap 290 lib/nss_wrapper/nss_wrapper.c nwrap->buf = buf; nwrap 298 lib/nss_wrapper/nss_wrapper.c static void nwrap_cache_unload(struct nwrap_cache *nwrap) nwrap 300 lib/nss_wrapper/nss_wrapper.c nwrap->unload(nwrap); nwrap 302 lib/nss_wrapper/nss_wrapper.c if (nwrap->buf) free(nwrap->buf); nwrap 304 lib/nss_wrapper/nss_wrapper.c nwrap->buf = NULL; nwrap 307 lib/nss_wrapper/nss_wrapper.c static void nwrap_cache_reload(struct nwrap_cache *nwrap) nwrap 315 lib/nss_wrapper/nss_wrapper.c if (nwrap->fd < 0) { nwrap 316 lib/nss_wrapper/nss_wrapper.c nwrap->fd = open(nwrap->path, O_RDONLY); nwrap 317 lib/nss_wrapper/nss_wrapper.c if (nwrap->fd < 0) { nwrap 320 lib/nss_wrapper/nss_wrapper.c nwrap->path, nwrap->fd, nwrap 324 lib/nss_wrapper/nss_wrapper.c NWRAP_VERBOSE(("%s: open '%s'\n", __location__, nwrap->path)); nwrap 327 lib/nss_wrapper/nss_wrapper.c ret = fstat(nwrap->fd, &st); nwrap 331 lib/nss_wrapper/nss_wrapper.c nwrap->path, nwrap 339 lib/nss_wrapper/nss_wrapper.c __location__, nwrap->path)); nwrap 341 lib/nss_wrapper/nss_wrapper.c memset(&nwrap->st, 0, sizeof(nwrap->st)); nwrap 342 lib/nss_wrapper/nss_wrapper.c close(nwrap->fd); nwrap 343 lib/nss_wrapper/nss_wrapper.c nwrap->fd = -1; nwrap 347 lib/nss_wrapper/nss_wrapper.c if (st.st_mtime == nwrap->st.st_mtime) { nwrap 354 lib/nss_wrapper/nss_wrapper.c (unsigned)nwrap->st.st_mtime)); nwrap 356 lib/nss_wrapper/nss_wrapper.c nwrap->st = st; nwrap 358 lib/nss_wrapper/nss_wrapper.c nwrap_cache_unload(nwrap); nwrap 360 lib/nss_wrapper/nss_wrapper.c ok = nwrap_parse_file(nwrap); nwrap 363 lib/nss_wrapper/nss_wrapper.c __location__, nwrap->path)); nwrap 364 lib/nss_wrapper/nss_wrapper.c nwrap_cache_unload(nwrap); nwrap 367 lib/nss_wrapper/nss_wrapper.c __location__, nwrap->path)); nwrap 373 lib/nss_wrapper/nss_wrapper.c static bool nwrap_pw_parse_line(struct nwrap_cache *nwrap, char *line) nwrap 382 lib/nss_wrapper/nss_wrapper.c nwrap_pw = (struct nwrap_pw *)nwrap->private_data; nwrap 525 lib/nss_wrapper/nss_wrapper.c static void nwrap_pw_unload(struct nwrap_cache *nwrap) nwrap 528 lib/nss_wrapper/nss_wrapper.c nwrap_pw = (struct nwrap_pw *)nwrap->private_data; nwrap 580 lib/nss_wrapper/nss_wrapper.c static bool nwrap_gr_parse_line(struct nwrap_cache *nwrap, char *line) nwrap 590 lib/nss_wrapper/nss_wrapper.c nwrap_gr = (struct nwrap_gr *)nwrap->private_data; nwrap 705 lib/nss_wrapper/nss_wrapper.c static void nwrap_gr_unload(struct nwrap_cache *nwrap) nwrap 709 lib/nss_wrapper/nss_wrapper.c nwrap_gr = (struct nwrap_gr *)nwrap->private_data;