Lines Matching refs:_PATH_RESCONF
191 if ((fd = open(_PATH_RESCONF, O_RDONLY)) != -1) { in ipcp_LoadDNS()
203 (unsigned long)st.st_size, _PATH_RESCONF, strerror(errno)); in ipcp_LoadDNS()
206 (unsigned long)st.st_size, _PATH_RESCONF, strerror(errno)); in ipcp_LoadDNS()
212 _PATH_RESCONF, strerror(errno)); in ipcp_LoadDNS()
215 _PATH_RESCONF, (unsigned long)got, in ipcp_LoadDNS()
277 _PATH_RESCONF, strerror(errno)); in ipcp_LoadDNS()
293 _PATH_RESCONF); in ipcp_WriteDNS()
303 if ((fp = ID0fopen(_PATH_RESCONF, "w")) != NULL) { in ipcp_WriteDNS()
318 log_Printf(LogERROR, "write(): Failed updating %s: %s\n", _PATH_RESCONF, in ipcp_WriteDNS()
324 log_Printf(LogERROR,"fopen(\"%s\", \"w\") failed: %s\n", _PATH_RESCONF, in ipcp_WriteDNS()
338 if ((fd = ID0open(_PATH_RESCONF, O_WRONLY|O_TRUNC, 0644)) != -1) { in ipcp_RestoreDNS()
343 _PATH_RESCONF, strerror(errno)); in ipcp_RestoreDNS()
346 _PATH_RESCONF, (long)got, (long)len); in ipcp_RestoreDNS()
350 log_Printf(LogERROR, "Failed rewriting %s: open: %s\n", _PATH_RESCONF, in ipcp_RestoreDNS()
352 } else if (remove(_PATH_RESCONF) == -1) in ipcp_RestoreDNS()
353 log_Printf(LogERROR, "Failed removing %s: %s\n", _PATH_RESCONF, in ipcp_RestoreDNS()