Lines Matching defs:filename
56 open_tmp_file(const char *filename)
69 if (unlink(filename) == -1) {
73 fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, 0600);
86 write_struct(const char *filename, xdrproc_t structproc, void *list)
91 fp = open_tmp_file(filename);
97 fp = open_tmp_file(filename);
100 "cannot open file = %s for writing", filename);
109 syslog(LOG_ERR, "rpcbind: xdr_%s: failed", filename);
119 read_struct(const char *filename, xdrproc_t structproc, void *list)
126 fd = open(filename, O_RDONLY, 0600);
129 "rpcbind: cannot open file = %s for reading\n", filename);
136 "rpcbind: cannot open file = %s for reading\n", filename);
141 "rpcbind: cannot stat file = %s for reading\n", filename);
150 "reading\n", filename);
159 if (lstat(filename, &sbuf_lstat) != 0) {
161 "rpcbind: cannot lstat file = %s for reading\n", filename);
172 "%s for reading\n", filename);
179 fprintf(stderr, "rpcbind: xdr_%s: failed\n", filename);