Searched defs:file (Results 1 - 10 of 10) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dremove.c40 remove(const char *file) argument
44 if (lstat(file, &st) < 0)
47 return (rmdir(file));
48 return (unlink(file));
H A Dfopen.c44 fopen(const char *file, const char *mode) argument
54 if ((f = open(file, oflags, DEFFILEMODE)) < 0) {
79 * the file extends, this will fail, but there is not much
H A Dfreopen.c45 * Re-direct an existing, open (probably) file to some other file.
46 * ANSI is written such that the original file gets closed if at
50 freopen(const char *file, const char *mode, FILE *fp) argument
68 * Remember whether the stream was open to begin with, and which file
71 * should work. This is unnecessary if it was not a Unix file.
89 /* Get a new descriptor to refer to the new file. */
90 f = open(file, oflags, DEFFILEMODE);
96 f = open(file, oflags, DEFFILEMODE);
132 * If reopening something that was open before on a real file, tr
[all...]
/bionic/libc/bionic/
H A Dassert.cpp35 void __assert(const char* file, int line, const char* failed_expression) { argument
36 __libc_fatal("%s:%d: assertion \"%s\" failed", file, line, failed_expression);
39 void __assert2(const char* file, int line, const char* function, const char* failed_expression) { argument
40 __libc_fatal("%s:%d: %s: assertion \"%s\" failed", file, line, function, failed_expression);
H A Derror.cpp76 void error_at_line(int status, int error, const char* file, unsigned int line, const char* fmt, ...) { argument
80 if (last_line == line && last_file != NULL && strcmp(last_file, file) == 0) {
83 last_file = file;
88 fprintf(stderr, "%s:%d: ", file, line);
/bionic/tools/relocation_packer/src/
H A Dmain.cc3 // found in the LICENSE file.
39 "Usage: %s [-u] [-v] [-p] file\n\n"
42 " -v, --verbose trace object file modifications (for debugging)\n"
96 const char* file = argv[argc - 1]; local
97 ScopedFd fd(open(file, O_RDWR));
99 LOG(ERROR) << file << ": " << strerror(errno);
110 LOG(ERROR) << file << ": failed to read elf header:" << strerror(errno);
115 LOG(ERROR) << file << ": lseek to 0 failed:" << strerror(errno);
140 LOG(ERROR) << file << ": unknown ELFCLASS: " << e_ident[EI_CLASS];
145 LOG(ERROR) << file << "
[all...]
/bionic/libc/dns/resolv/
H A Dres_data.c156 fp_query(const u_char *msg, FILE *file) { argument
157 fp_nquery(msg, PACKETSZ, file);
161 fp_nquery(const u_char *msg, int len, FILE *file) { argument
165 res_pquery(&_nres, msg, len, file);
H A Dres_debug.c137 fp_resstat(const res_state statp, FILE *file) { argument
140 fprintf(file, ";; res options:");
143 fprintf(file, " %s", p_option(mask));
144 putc('\n', file);
151 int pflag, FILE *file)
168 fprintf(file, ";; memory allocation failure\n");
177 fprintf(file, ";; ns_parserr: %s\n",
181 putc('\n', file);
185 fprintf(file, ";; %s SECTION:\n",
188 fprintf(file, ";;\
149 do_section(const res_state statp, ns_msg *handle, ns_sect section, int pflag, FILE *file) argument
279 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) argument
351 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) argument
365 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument
394 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument
[all...]
H A Dres_send.c1272 Aerror(const res_state statp, FILE *file, const char *string, int error, argument
1287 fprintf(file, "res_send: %s ([%s].%s): %s\n",
1294 Perror(const res_state statp, FILE *file, const char *string, int error) { argument
1298 fprintf(file, "res_send: %s: %s\n",
/bionic/libc/upstream-netbsd/lib/libc/isc/
H A Deventlib_p.h20 /*! \file
84 #define EV_CONN_SELECTED 0x0002 /*%< evSelectFD(conn->file). */
86 evFileID file; member in struct:evConn
129 evFileID file; member in struct:evStream
172 struct { evFile *this; int eventmask; } file; member in union:evEvent_p::__anon952

Completed in 152 milliseconds