/src/usr.bin/make/ |
buf.h | 82 /* An automatically growing null-terminated buffer of characters. */ 83 typedef struct Buffer { 84 size_t cap; /* Allocated size of the buffer, including the '\0' */ 85 size_t len; /* Number of bytes in buffer, excluding the '\0' */ 86 char *data; /* The buffer itself (always null-terminated) */ 87 } Buffer; 89 void Buf_Expand(Buffer *); 91 /* Mark the buffer as empty, so it can be filled with data again. */ 93 Buf_Clear(Buffer *buf) 99 /* Adds a single byte to a buffer. * [all...] |
buf.c | 80 /* Make space in the buffer for adding at least 16 more bytes. */ 82 Buf_Expand(Buffer *buf) 88 /* Add the bytes to the buffer. */ 90 Buf_AddBytes(Buffer *buf, const char *bytes, size_t bytes_len) 107 /* Add the bytes between start and end to the buffer. */ 109 Buf_AddRange(Buffer *buf, const char *start, const char *end) 114 /* Add the string to the buffer. */ 116 Buf_AddStr(Buffer *buf, const char *str) 121 /* Add the number to the buffer. */ 123 Buf_AddInt(Buffer *buf, int n [all...] |
/src/sys/external/bsd/acpica/dist/tools/acpisrc/ |
asutils.c | 165 char *Buffer, 169 while (*Buffer != Target) 171 if (!*Buffer) 176 Buffer++; 179 return (Buffer); 187 * DESCRIPTION: Find the next instance of the input character, return a buffer 194 char *Buffer, 198 while (*Buffer != Target) 200 if (!*Buffer) 205 Buffer++ [all...] |
asremove.c | 158 char *Buffer, 176 char *Buffer, 186 SubBuffer = Buffer; 187 SubString = Buffer; 254 char *Buffer, 267 SubString = Buffer; 329 while (*SubString != '\n' && (SubString > Buffer)) 425 char *Buffer, 433 SubBuffer = Buffer; 434 SubString = Buffer; [all...] |
acpisrc.h | 324 char *Buffer, 340 char *Buffer, 345 char *Buffer, 350 char *Buffer, 360 char *Buffer); 365 char *Buffer); 369 char *Buffer, 374 char *Buffer, 379 char *Buffer, 384 char *Buffer, [all...] |
ascase.c | 158 char *Buffer, 174 char *Buffer) 186 SubBuffer = Buffer; 187 SubString1 = Buffer; 225 /* Move buffer to end of escape block and continue */ 278 char *Buffer, 282 char *SubBuffer = Buffer; 291 * Examine the entire buffer (contains the entire file) 591 char *Buffer) 593 char *SubBuffer = Buffer; [all...] |
asconvrt.c | 169 char *Buffer, 176 char *Buffer, 182 char *Buffer, 212 char *Buffer, 216 AsMatchValidToken (Buffer, Filename, 0, NULL); 239 char *Buffer, 243 AsMatchValidToken (Buffer, Filename, 0, AsCheckBracesCallback); 261 char *Buffer, 265 char *SubBuffer = Buffer; 300 /* No match, just return original buffer */ [all...] |
/src/sys/external/bsd/acpica/dist/executer/ |
exstorob.c | 170 * DESCRIPTION: Copy a buffer object to another buffer object. 180 UINT8 *Buffer; 193 /* We know that SourceDesc is a buffer by now */ 195 Buffer = ACPI_CAST_PTR (UINT8, SourceDesc->Buffer.Pointer); 196 Length = SourceDesc->Buffer.Length; 199 * If target is a buffer of length zero or is a static buffer, 200 * allocate a new buffer of the proper lengt [all...] |
exconcat.c | 185 * String, and Buffer objects. However, we support all objects here 204 char *Buffer; 269 * guaranteed to be either Integer/String/Buffer by the operand 330 * (Both are Integer, String, or Buffer), and we can now perform 335 * 1) Two Integers concatenated to produce a new Buffer 337 * 3) Two Buffers concatenated to produce a new Buffer 343 /* Result of two Integers is a Buffer */ 344 /* Need enough buffer space for two integers */ 354 Buffer = (char *) ReturnDesc->Buffer.Pointer [all...] |
exserial.c | 168 * Buffer - Where the return data is returned 180 void *Buffer) 205 ObjDesc, 0, (UINT64 *) Buffer, ACPI_READ); 235 void *Buffer; 260 Buffer = &SourceDesc->Integer.Value; 269 ObjDesc, 0, (UINT64 *) Buffer, ACPI_WRITE); 305 * This is an SMBus, GSBus or IPMI read. We must create a buffer to 311 * Common buffer format: 312 * Status; (Byte 0 of the data buffer) 313 * Length; (Byte 1 of the data buffer) [all...] |
exoparg3.c | 287 char *Buffer = NULL; 302 * either a String or a Buffer, so just use its type. 318 * If the index is beyond the length of the String/Buffer, or if the 319 * requested length is zero, return a zero-length String/Buffer 326 /* Truncate request if larger than the actual String/Buffer */ 340 /* Always allocate a new buffer for the String */ 342 Buffer = ACPI_ALLOCATE_ZEROED ((ACPI_SIZE) Length + 1); 343 if (!Buffer) 352 /* If the requested length is zero, don't allocate a buffer */ 356 /* Allocate a new buffer for the Buffer * [all...] |
/src/sys/external/bsd/acpica/dist/utilities/ |
utalloc.c | 330 char Buffer[7]; 335 strcpy (Buffer, "MEMORY"); 336 (void) AcpiDbDisplayStatistics (Buffer); 389 * PARAMETERS: Buffer - Buffer descriptor to be validated 399 ACPI_BUFFER *Buffer) 404 if (!Buffer) 411 if ((Buffer->Length == ACPI_NO_BUFFER) || 412 (Buffer->Length == ACPI_ALLOCATE_BUFFER) || 413 (Buffer->Length == ACPI_ALLOCATE_LOCAL_BUFFER) [all...] |
utpredef.c | 169 "/Buffer", 256 * PARAMETERS: Buffer - Where the formatted string is returned 259 * RETURN: Formatted string in Buffer. 267 char *Buffer, 277 strcpy (Buffer, "NONE"); 282 Buffer[0] = 0; 291 strcat (Buffer, &UtRtypeNames[i][j]); 312 char *Buffer, 323 ", Buffer", 393 * PARAMETERS: Buffer - Scratch buffer for this functio [all...] |
utbuffer.c | 3 * Module Name: utbuffer - Buffer dump routines 163 * PARAMETERS: Buffer - Buffer to dump 170 * BaseOffset - Beginning buffer offset (display only) 174 * DESCRIPTION: Generic dump buffer in both hex and ascii. 180 UINT8 *Buffer, 193 if (!Buffer) 195 AcpiOsPrintf ("Null Buffer Pointer in DumpBuffer!\n"); 204 /* Nasty little dump buffer routine! */ 233 AcpiOsPrintf ("%02X ", Buffer[(ACPI_SIZE) i + j]) [all...] |
/src/sys/external/bsd/compiler_rt/dist/test/profile/ |
instrprof-without-libc.c | 26 static char Buffer[MaxSize]; 31 int Write = __llvm_profile_write_buffer(Buffer); 32 if (__llvm_profile_write_buffer(Buffer)) 44 if (fwrite(Buffer, 1, Size, File) != Size)
|
/src/sys/external/bsd/acpica/dist/common/ |
acgetline.c | 251 * PARAMETERS: Buffer - Where to return the command line 252 * BufferLength - Maximum length of Buffer 266 char *Buffer, 280 /* Always clear the line buffer before we read a new line */ 282 memset (Buffer, 0, BufferLength); 303 /* Echo the character (at EOL) and copy it to the line buffer */ 308 Buffer[EndOfLine] = (char) InputChar; 312 Buffer[EndOfLine] = 0; 316 /* Insert character into the middle of the buffer */ 318 memmove (&Buffer[CursorPosition + 1], &Buffer[CursorPosition] [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/ubsan/ |
ubsan_diag.cc | 130 static void RenderHex(InternalScopedString *Buffer, UIntMax Val) { 132 Buffer->append("0x%08x%08x%08x%08x", (unsigned int)(Val >> 96), 140 static void RenderLocation(InternalScopedString *Buffer, Location Loc) { 145 Buffer->append("<unknown>"); 147 RenderSourceLocation(Buffer, SLoc.getFilename(), SLoc.getLine(), 153 Buffer->append("%p", Loc.getMemoryLocation()); 158 RenderSourceLocation(Buffer, Info.file, Info.line, Info.column, 162 RenderModuleLocation(Buffer, Info.module, Info.module_offset, 165 Buffer->append("%p", Info.address); 169 Buffer->append("<unknown>") [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/symbolizer/ |
sanitizer_symbolize.cc | 27 int internal_snprintf(char *buffer, unsigned long length, const char *format, 36 char *Buffer, int MaxLength) { 45 return __sanitizer::internal_snprintf(Buffer, MaxLength, "%s", 50 char *Buffer, int MaxLength) { 59 return __sanitizer::internal_snprintf(Buffer, MaxLength, "%s", 65 int __sanitizer_symbolize_demangle(const char *Name, char *Buffer, 69 return __sanitizer::internal_snprintf(Buffer, MaxLength, "%s",
|
/src/sys/external/bsd/acpica/dist/compiler/ |
aslallocate.c | 207 * PARAMETERS: None. Updates global line buffer pointers. 211 * DESCRIPTION: Called if the current line buffer becomes filled. Reallocates 214 * all of the buffer pointers are NULL. Initial allocations are 232 "Increasing line buffer size from %u to %u\n", 250 * PARAMETERS: Buffer - Buffer to realloc 251 * OldSize - Old size of Buffer 252 * NewSize - New size of Buffer 256 * DESCRIPTION: Reallocate and initialize Buffer 262 char **Buffer, [all...] |
dtfield.c | 162 UINT8 *Buffer, 168 UINT8 *Buffer, 174 UINT8 *Buffer, 180 char *Buffer, 188 * PARAMETERS: Buffer - Output buffer 201 UINT8 *Buffer, 214 DtCompileInteger (Buffer, Field, ByteLength, Flags); 219 DtCompileString (Buffer, Field, ByteLength); 224 Status = DtCompileUuid (Buffer, Field, ByteLength) [all...] |
/src/sys/external/bsd/gnu-efi/dist/lib/ |
hand.c | 65 OUT EFI_HANDLE **Buffer 77 *Buffer = NULL; 84 while (GrowBuffer (&Status, (VOID **) Buffer, BufferSize)) { 93 *Buffer 112 OUT EFI_HANDLE **Buffer 170 *Buffer = NULL; 266 *Buffer = NULL; 271 // Allocate space for the return buffer of device handles. 274 *Buffer = AllocatePool(*NoHandles * sizeof(EFI_HANDLE)); 276 if (*Buffer == NULL) [all...] |
misc.c | 86 IN VOID *Buffer 89 uefi_call_wrapper(BS->FreePool, 1, Buffer); 96 IN VOID *Buffer, 100 RtZeroMem (Buffer, Size); 105 IN VOID *Buffer, 110 RtSetMem (Buffer, Size, Value); 136 IN OUT VOID **Buffer, 144 to allocate the proper sized buffer for various 151 Buffer - Current allocated buffer, or NUL [all...] |
/src/sys/arch/epoc32/stand/e32boot/include/ |
netbsd.h | 49 TUint8 *GetBuffer(void) { return Buffer; }; 55 TUint8 *Buffer; 64 ELF(TInt size) { Buffer = new TUint8[size]; };
|
/src/sys/external/bsd/compiler_rt/dist/lib/xray/ |
xray_fdr_log_writer.h | 30 int>::type = 0> static void serializeTo(char *Buffer, 34 internal_memcpy(Buffer, P, Size); 35 SerializerImpl<Index + 1>::serializeTo(Buffer + Size, 69 "Metadata payload longer than metadata buffer!"); 79 BufferQueue::Buffer &Buffer; 86 // read the bytes in the buffer will see the writes committed before the 89 atomic_fetch_add(Buffer.Extents, sizeof(T), memory_order_acq_rel); 93 explicit FDRLogWriter(BufferQueue::Buffer &B, char *P) 94 : Buffer(B), NextRecord(P) [all...] |
/src/sys/external/bsd/acpica/dist/debugger/ |
dbconvert.c | 256 * Object - Where the buffer object is returned 260 * DESCRIPTION: Convert a string to a buffer object. String is treated a list 261 * of buffer elements, each separated by a space or comma. 273 UINT8 *Buffer; 281 /* Generate the final buffer length */ 295 Buffer = ACPI_ALLOCATE (Length); 296 if (!Buffer) 301 /* Convert the command line bytes to the buffer */ 305 Status = AcpiDbHexByteToBinary (&String[i], &Buffer[j]); 308 ACPI_FREE (Buffer); [all...] |