Lines Matching refs:filename
74 write_struct(const char *filename, xdrproc_t structproc, void *list)
80 (void)unlink(filename);
81 fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
83 syslog(LOG_ERR, "Cannot open `%s' (%m)", filename);
91 syslog(LOG_ERR, "xdr_%s: failed", filename);
101 read_struct(const char *filename, xdrproc_t structproc, void *list)
107 if (stat(filename, &sbuf) != 0) {
108 warn("Cannot stat `%s'", filename);
113 warnx("Invalid permissions on `%s'", filename);
116 fp = fopen(filename, "r");
118 warn("cannot open `%s'", filename);
124 warnx("xdr_%s failed", filename);