/device/linaro/bootloader/edk2/StdLib/LibC/Main/ |
H A D | assert.c | 1 /** @file
31 @param[in] file The name of the file containing the assert.
43 IN const char *file,
50 printf("Assertion failed: (%s), file %s, line %d.\n",
51 failedexpr, file, line);
53 printf("Assertion failed: (%s), file %s, function %s, line %d.\n",
54 failedexpr, file, func, line);
42 __assert( IN const char *file, IN const char *func, IN int line, IN const char *failedexpr ) argument
|
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
H A D | remove.c | 1 /** @file
57 remove(const char *file)
argument 61 _DIAGASSERT(file != NULL);
63 if (lstat(file, &sb) < 0)
67 * The file system may prohibit using unlink(2) on directories,
71 return (rmdir(file));
73 return (unlink(file));
|
H A D | fopen.c | 1 /** @file
60 fopen(const char *file, const char *mode)
argument 66 _DIAGASSERT(file != NULL);
71 if ((f = open(file, oflags, DEFFILEMODE)) < 0)
99 * the file extends, this will fail, but there is not much
|
H A D | freopen.c | 1 /** @file
63 * Re-direct an existing, open (probably) file to some other file.
64 * ANSI is written such that the original file gets closed if at
68 freopen(const char *file, const char *mode, FILE *fp)
argument 73 _DIAGASSERT(file != NULL);
92 * Remember whether the stream was open to begin with, and which file
95 * should work. This is unnecessary if it was not a Unix file.
113 /* Get a new descriptor to refer to the new file. */
114 f = open(file, oflag [all...] |
/device/linaro/bootloader/arm-trusted-firmware/lib/stdlib/ |
H A D | assert.c | 36 void __assert (const char *function, const char *file, unsigned int line, argument
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/ |
H A D | 7zFile.h | 27 FILE *file;
36 /* reads max(*size, remain file's size) bytes */
51 CSzFile file;
member in struct:__anon3703 60 CSzFile file;
member in struct:__anon3704 69 CSzFile file;
member in struct:__anon3705
|
/device/google/marlin/dataservices/datatop/src/ |
H A D | datatop_fileops.c | 31 * @file datatop_fileops.c 51 * @param file File which is read from 55 * @param len Maximum amount of data which should be read from the file. 58 int dt_read_file(const char *file, char **buffer, int len) argument 69 fp = fopen(file, "r"); 71 fprintf(stderr, "%s(): Failed to open %s: ", __func__, file); 95 * @brief Checks for access to a file for writing. 109 printf("Permission to write to specified file denied\n"); 117 * @brief Opens file and handles possible errors. 120 * @param to_file Pointer to the *file tha 158 FILE *file = fopen(name, "r"); local [all...] |
H A D | datatop_cpu_stats_poll.c | 31 * @file datatop_cpu_stats_poll.c 108 * @param name Name of file dpg represents. 112 char *file = malloc(strlen(name) + 1); local 118 strlcpy(file, name, strlen(name) + 1); 129 dpg->prefix = file; 130 dpg->file = file; 142 * Creates file names based on number of CPUs found and calls the 145 * @param file Directory where the CPUs are found. 146 * @param add String which is concatenated onto file an 150 cpu_poll_helper(char *file, char *add, int cpu_amt) argument 175 char *file = "/sys/devices/system/cpu/cpu"; local [all...] |
H A D | datatop_value_only_poll.c | 31 * @file datatop_value_only_poll.c 35 * value_only files, meaning a file with a single line, containing 64 FILE *check = fopen(dpg->file, "r"); 67 read = dt_read_file(dpg->file, &data, DTOP_SINGLE_SIZE); 104 free(dpset->file); 109 * @brief Creates a dpg for a single line file. 114 * @param name Name of file dpg represents. 124 dpg->file = name; 134 * @brief Scans a single line file in order to autodetect dps. 136 * Searches through a file tha 198 char *file = malloc(strlen(name) + 1); local [all...] |
H A D | datatop_sys_snap.c | 48 static int dtop_system_snapshot_helper_print(char *file, const char *str) argument 50 FILE *snap_file = fopen(file, "a"); 69 * @return FILE_ERROR - Writing to file was unsuccessful. 70 * @return FILE_SUCCESS - Writing to file was successful. 72 static int dtop_run_and_log(char *file, const char *c1, const char **args) argument 78 dtop_system_snapshot_helper_print(file, "\n" 82 dtop_system_snapshot_helper_print(file, args[i++]); 83 dtop_system_snapshot_helper_print(file, " "); 85 dtop_system_snapshot_helper_print(file, "\n"); 90 int fd = open(file, O_WRONL 156 dtop_print_system_snapshot(char *file) argument [all...] |
H A D | datatop_interface.h | 31 * @file datatop_interface.h 88 * @brief Individual datapoint in a file. 123 * @var dtop_data_point_gatherer::file 136 char *file; member in struct:dtop_data_point_gatherer 158 int dtop_print_system_snapshot(char *file);
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/ |
H A D | PBlackBox.h | 65 FILE *file;
member in class:ParserBlackBox 75 , file(0)
80 cerr << "invalid file pointer\n";
85 file = f;
101 , file(0)
111 file = f;
126 fclose(file);
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ |
H A D | PBlackBox.h | 56 FILE *file;
member in class:ParserBlackBox 63 file = f;
81 file = f;
96 fclose(file);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/ |
H A D | gzwrite.c | 13 /* Initialize state for writing a gzip file. Mark initialization by setting
64 /* Compress whatever is at avail_in and next_in and write to the output file.
65 Return -1 if there is an error writing to the output file, otherwise 0.
68 is true, then simply write to the output file without compressing, and
165 int ZEXPORT gzwrite(file, buf, len)
166 gzFile file;
175 if (file == NULL)
177 state = (gz_statep)file;
232 /* directly compress user buffer to file */
245 int ZEXPORT gzputc(file, 310 gzvprintf(gzFile file, const char *format, va_list va) argument 372 gzprintf(gzFile file, const char *format, ...) argument [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
H A D | posixfile.py | 1 """Extended file operations available in POSIX.
7 will create a posixfile object from a builtin file object
9 f.file()
10 will return the original builtin file object
13 will return a new file object based on a new filedescriptor
16 will return a new file object based on the given filedescriptor
60 """File wrapper class that provides extra POSIX file routines."""
68 file = self._file_
70 (self.states[file.closed], file 96 def file(self): member in class:_posixfile_ [all...] |
H A D | shlex.py | 75 print 'shlex: pushing to file %s' % (self.infile,)
131 self.token = '' # past end of file
135 self.state = None # end of file
168 if not nextchar: # end of file
187 if not nextchar: # end of file
201 self.state = None # end of file
285 file = sys.argv[1]
variable 286 lexer = shlex(open(file), file)
|
H A D | cgitb.py | 119 for frame, file, lnum, func, lines, index in records:
120 if file:
121 file = os.path.abspath(file)
variable 122 link = '<a href="file://%s">%s</a>' % (file, pydoc.html.escape(file))
124 file = link = '?'
135 try: return linecache.getline(file, lnum[0])
207 for frame, file, lnu 208 file = file and os.path.abspath(file) or '?' variable [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/ |
H A D | support.c | 44 void internal_error(char *s, char *file,int line) /* MR9 23-Sep-97 */
argument 46 void internal_error(s,file,line) /* MR9 23-Sep-97 */
47 char *s,*file;
51 fprintf(stderr,s,file,line);
56 char *dlg_malloc(int bytes,char *file,int line)
argument 58 char *dlg_malloc(bytes,file,line)
60 char *file;
70 file,line);
77 char *dlg_calloc(int n,int bytes,char *file,int line)
argument 79 char *dlg_calloc(n,bytes,file,lin [all...] |
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
H A D | file.h | 33 * @(#)file.h 8.3 (Berkeley) 1/9/95
34 * $Id: file.h,v 1.1.1.1 2006/05/30 06:12:53 hhzhou Exp $
55 struct file {
struct 56 LIST_ENTRY(file) f_list;/* list of active files */
58 #define DTYPE_VNODE 1 /* file */
67 int (*fo_read) __P((struct file *fp, struct uio *uio,
69 int (*fo_write) __P((struct file *fp, struct uio *uio,
72 int (*fo_ioctl) __P((struct file *fp, u_long com,
74 int (*fo_poll) __P((struct file *fp, int events,
76 int (*fo_close) __P((struct file *f [all...] |
/device/google/contexthub/util/stm32_flash/ |
H A D | flash.c | 5 * you may not use this file except in compliance with the License. 83 FILE *file; local 99 printf(" -c (add type, length, file contents, and CRC)\n"); 187 file = fopen(write_filename, "r"); 188 if (!file) { 189 perror("Error opening input file"); 193 if (fstat(fileno(file), &buf) < 0) { 194 perror("error stating file"); 208 if (fread(&buffer[sizeof(uint32_t)], 1, length, file) < (size_t)length) { 209 perror("Error reading input file"); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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
35 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
37 # define SET_BINARY_MODE(file)
47 # define fileno(file) file->__file
80 void file_compress OF((char *file, char *mode));
81 void file_uncompress OF((char *file));
128 /* Try compressing the input file a 274 gzFile file; local [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Ecc/ |
H A D | Database.py | 1 ## @file
2 # This file is used to create a database used by ECC tool
149 # Commit to file
159 ## Insert one file information
161 # Insert one file's information to the database
171 # Insert a record for file
180 # Insert function of file
200 # Insert Identifier of file
206 # Insert Pcd of file
212 EdkLogger.verbose("Insert information from file 334 file = DataClass.FileClass(-1, 'F1', 'c', 'C:\\\\', 'C:\\\\F1.exe', DataClass.MODEL_FILE_C, '2007-12-28', [fun1], [identifier1, identifier2, identifier3, identifier4], []) variable in class:Database [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/ |
H A D | Database.py | 1 ## @file
2 # This file is used to create a database used by EOT tool
49 # @param DbPath: The file path of the database
154 # Commit to file
163 # Insert one file's information to the database
172 # @param File: The object of the file to be inserted
175 # Insert a record for file
181 # Insert function of file
192 # Insert Identifier of file
197 EdkLogger.verbose("Insert information from file 246 file = DataClass.FileClass(-1, 'F1', 'c', 'C:\\\\', 'C:\\\\F1.exe', DataClass.MODEL_FILE_C, '2007-12-28', [fun1], [identifier1, identifier2, identifier3, identifier4], []) variable in class:Database [all...] |
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
H A D | res_query.c | 394 char *file;
local 404 file = getenv("HOSTALIASES");
405 if (file == NULL || (fp = fopen(file, "r")) == NULL)
|
/device/google/marlin/thermal/ |
H A D | thermal.c | 5 * you may not use this file except in compliance with the License. 64 * @param sensor_num Number of sensor file with temperature. 78 FILE *file; local 83 file = fopen(file_name, "r"); 84 if (file == NULL) { 88 if (1 != fscanf(file, "%f", &temp)) { 89 fclose(file); 94 fclose(file); 186 FILE *file; local 193 file [all...] |