Lines Matching refs:file
4 * The contents of this file are subject to the terms of the
6 * (the "License"). You may not use this file except in compliance
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
62 file = fopen(filename, "r");
63 if (file)
64 xdrstdio_create(&(xdr), file, XDR_DECODE);
66 file = fopen(filename, "w");
67 if (file) {
68 setvbuf(file, NULL, _IOFBF, 81920);
69 xdrstdio_create(&(xdr), file, XDR_ENCODE);
72 file = fopen(filename, "a");
73 if (file)
74 xdrstdio_create(&(xdr), file, XDR_ENCODE);
76 if (file == NULL) {
93 ret = fclose(file);
102 * Returns 0 if successful; 1 if file cannot be opened in mode
115 fsync(fileno(file));