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