/device/huawei/angler/thermal/ |
H A D | thermal.c | 5 * you may not use this file except in compliance with the License. 63 * @param sensor_num Number of sensor file with temperature. 77 FILE *file; local 82 file = fopen(file_name, "r"); 83 if (file == NULL) { 87 if (1 != fscanf(file, "%f", &temp)) { 88 fclose(file); 93 fclose(file); 185 FILE *file; local 192 file [all...] |
/device/lge/bullhead/thermal/ |
H A D | thermal.c | 5 * you may not use this file except in compliance with the License. 63 * @param file_name Name of file with temperature. 64 * @param temperature_format Format of temperature file. 77 FILE *file; local 80 file = fopen(file_name, "r"); 81 if (file == NULL) { 85 if (1 != fscanf(file, temperature_format, &temp)) { 86 fclose(file); 91 fclose(file); 187 FILE *file; local [all...] |
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/ |
H A D | main.c | 86 /* Image file names (inputs) */ 92 /* Certificate file names (outputs) */ 103 /* Key file names (input/output) */ 189 printf(" --%s <file> \\\n", long_opt[i].name); 276 FILE *file = NULL; local 689 file = fopen(certs[i].fn, "w"); 690 if (file != NULL) { 691 i2d_X509_fp(file, certs[i].x); 692 fclose(file); 694 ERROR("Cannot create file [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/ |
H A D | minigzip.c | 9 * full-featured gzip. No attempt is made to deal with file systems
12 * real thing. On MSDOS, use only on file names without extension
38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
40 # define SET_BINARY_MODE(file)
54 # define fileno(file) file->__file
171 FILE *file;
member in struct:gzFile_s 222 gz->file = path == NULL ? fdopen(fd, gz->write ? "wb" : "rb") :
224 if (gz->file 562 gzFile file; local [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/ |
H A D | build.c | 86 buildAction( char *action, int file, int line, int is_predicate )
argument 88 buildAction( action, file, line, is_predicate )
90 int file;
147 a->file = file;
660 p->file = CurFile;
694 p->file = CurFile;
733 p->file = CurFile;
|
H A D | generic.h | 175 int file;
member in struct:_PredEntry 196 int file, line;
member in struct:_UserAction 236 /**** #define MaxFileName 300 ****/ /* MR9 Move to pcctscfg.h */ /* largest file name size */
|
H A D | syn.h | 4 * This file includes definitions and macros associated with syntax diagrams
193 int file; /* index in FileStr */
member in class:Node 200 int file; /* index in FileStr */
member in struct:_node 212 int file; /* index in FileStr (name of file with action) */
member in struct:ActionNode::_anode 247 int file; /* index in FileStr (name of file with rule) */
member in struct:TokNode::_toknode 291 int file; /* index in FileStr (name of file with rule)
member in struct:RuleRefNode::_rrnode 324 int file; /* inde member in struct:Junction::_junct [all...] |
/device/google/marlin/power/ |
H A D | power.c | 688 static int extract_stats(uint64_t *list, char *file, argument 696 fp = fopen(file, "r"); 719 if (!strcmp(file, RPM_MASTER_STAT)) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
H A D | rfc822.py | 16 To create a Message object: first open a file, e.g.:
18 fp = open(file, 'r')
20 You can use any other legal way of getting an open file object, e.g. use
21 sys.stdin or call os.popen(). Then pass the open file object to the Message()
37 an unseekable object such as a a file object created from a socket object. If
39 file object is called once; if this raises an exception, seekable is reset to
117 """Rewind the file to the start of the body (if seekable)."""
119 raise IOError, "unseekable file"
135 file).
979 file variable [all...] |
H A D | smtplib.py | 168 """A fake file like object that really wraps a SSLObject.
220 file = None
variable in class:SMTP 340 Raises SMTPServerDisconnected if end-of-file is reached.
343 if self.file is None:
344 self.file = self.sock.makefile('rb')
347 line = self.file.readline()
632 self.file = SSLFakeFile(self.sock)
735 if self.file:
736 self.file.close()
737 self.file [all...] |
H A D | cgi.py | 73 """Write a log message, if there is a log file.
77 (initially), to dolog (once the log file has been opened), or to
83 will write "a: b" to the log file, followed by a newline.
85 If the global logfp is not None, it should be a file object to
89 giving a filename to open, in append mode. This file should be
90 world writable!!! If the file can't be opened, logging is
108 """Write a log message to the log file. See initlog() for docs."""
126 """Parse a query in the environment or from a file (default stdin)
130 fp : file pointer; default: sys.stdin
198 fp : input file
336 file = None variable in class:MiniFieldStorage [all...] |
H A D | ftplib.py | 92 To download a file, use ftp.retrlines('RETR ' + filename),
94 To upload a file, use ftp.storlines() or ftp.storbinary(),
95 which have an open file as argument (see their definitions
105 file = None
variable in class:FTP 134 self.file = self.sock.makefile('rb')
183 line = self.file.readline()
230 '''Abort a file transfer. Uses out-of-band data.
439 """Store a file in binary mode. A new port is created for you.
443 fp: A file-like object with a read(num_bytes) method.
464 """Store a file i [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | test_math.py | 27 # locate file with test values
29 file = sys.argv[0]
variable 31 file = __file__
variable 32 test_dir = os.path.dirname(file) or os.curdir
83 """Parse a file with test values
108 """Parse a file with test values
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
H A D | threadmodule.c | 620 PyObject *file;
local 623 file = PySys_GetObject("stderr");
624 if (file)
625 PyFile_WriteObject(boot->func, file, 0);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/ |
H A D | gzio.c | 5 * Compile this file with -DNO_GZCOMPRESS to avoid the compression code.
49 #define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */
52 #define ORIG_NAME 0x08 /* bit 3 set: original file name present */
53 #define COMMENT 0x10 /* bit 4 set: file comment present */
59 int z_eof; /* set if end of input file */
60 FILE *file; /* .gz file */
member in struct:gz_stream 66 int transparent; /* 1 if input file is not a .gz file */
68 z_off_t start; /* start of compressed data in file (heade 603 gzprintf(gzFile file, const char *format, ...) argument [all...] |
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
H A D | res_send.c | 135 # define Aerror(file, string, error, address) /*empty*/
136 # define Perror(file, string, error) /*empty*/
146 FILE *file,
155 fprintf(file, "res_send: %s ([%s].%u): %s\n",
167 FILE *file,
175 fprintf(file, "res_send: %s: %s\n",
145 Aerror( FILE *file, char *string, int error, struct sockaddr_in address ) argument 166 Perror( FILE *file, char *string, int error ) argument
|
H A D | res_debug.c | 139 fp_resstat(struct __res_state *statp, FILE *file) {
argument 142 fprintf(file, ";; res options:");
147 fprintf(file, " %s", p_option(mask));
148 putc('\n', file);
152 do_section(ns_msg *handle, ns_sect section, int pflag, FILE *file) {
argument 169 fprintf(file, ";; ns_parserr: %s\n",
173 putc('\n', file);
177 fprintf(file, ";; %s SECTION:\n",
180 fprintf(file, ";;\t%s, type = %s, class = %s\n",
191 fprintf(file, ";; ns_sprintr 211 fp_query(const u_char *msg, FILE *file) argument 220 fp_nquery(const u_char *msg, int len, FILE *file) argument 295 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) argument 309 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument 342 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument [all...] |
/device/google/dragon/recovery/updater/ |
H A D | vboot_interface.c | 5 * you may not use this file except in compliance with the License. 42 FILE *file; local 47 file = fopen(filename, "r"); 48 if (!file) { 52 fseek(file, 0, SEEK_END); 53 size = ftell(file); 60 rewind(file); 61 if (fread(data, 1, size, file) != size) { 65 fclose(file); 73 fclose(file); 80 FILE *file; local [all...] |
/device/huawei/angler/power/ |
H A D | power.c | 611 static int extract_stats(uint64_t *list, char *file, argument 619 fp = fopen(file, "r"); 642 if (!strcmp(file, RPM_MASTER_STAT)) {
|
/device/lge/bullhead/power/ |
H A D | power.c | 564 static int extract_stats(uint64_t *list, char *file, argument 572 fp = fopen(file, "r"); 595 if (!strcmp(file, RPM_MASTER_STAT)) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/ |
H A D | _iomodule.c | 88 " I/O classes. open() uses the file's blksize (as obtained by os.stat) if\n"
182 "Open file and return a stream. Raise IOError upon failure.\n"
184 "file is either a text or byte string giving the name (and the path\n"
185 "if the file isn't in the current working directory) of the file to\n"
186 "be opened or an integer file descriptor of the file to be\n"
187 "wrapped. (If a file descriptor is given, it is closed when the\n"
190 "mode is an optional string that specifies the mode in which the file\n"
192 "mode. Other common values are 'w' for writing (truncating the file i 293 PyObject *file; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/ |
H A D | _iomodule.c | 88 " I/O classes. open() uses the file's blksize (as obtained by os.stat) if\n"
182 "Open file and return a stream. Raise IOError upon failure.\n"
184 "file is either a text or byte string giving the name (and the path\n"
185 "if the file isn't in the current working directory) of the file to\n"
186 "be opened or an integer file descriptor of the file to be\n"
187 "wrapped. (If a file descriptor is given, it is closed when the\n"
190 "mode is an optional string that specifies the mode in which the file\n"
192 "mode. Other common values are 'w' for writing (truncating the file i 293 PyObject *file; local [all...] |
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/ |
H A D | CrtWrapper.c | 1 /** @file
311 int X509_load_cert_file (VOID *ctx, const char *file, int type)
argument 316 int X509_load_crl_file (VOID *ctx, const char *file, int type)
argument
|
/device/google/contexthub/sensorhal/ |
H A D | hubconnection.cpp | 5 * you may not use this file except in compliance with the License. 26 #include "file.h" 146 ALOGW("Mag bias file open failed: %s", strerror(errno)); 160 ALOGW("Double touch file open failed: %s", strerror(errno)); 328 static sp<JSONObject> readSettings(File *file) { argument 329 off64_t size = file->seekTo(0, SEEK_END); 330 file->seekTo(0, SEEK_SET); 336 CHECK_EQ(file->read(buf, size), (ssize_t)size); 337 file->seekTo(0, SEEK_SET); 425 ALOGW("settings file ope [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/ |
H A D | import.c | 35 a .pyc file in text mode the magic number will be wrong; also, the
139 Py_FatalError("Can't initialize import file table.");
703 /* Given a pathname for a Python source file, fill a buffer with the
704 pathname for the corresponding compiled file. Return the pathname
705 for the compiled file, or NULL if there's no space in the buffer.
729 /* Given a pathname for a Python source file, its time of last
730 modification, and a pathname for a compiled file, check whether the
731 compiled file represents the same version of the source. If so,
732 return a FILE pointer for the compiled file, positioned just after
766 /* Read a code object from a file an 1041 PyObject *file = NULL; local [all...] |