/haiku/src/apps/soundrecorder/ |
H A D | FileUtils.cpp | 35 size_t bufSize = src_stat.st_blksize; in CopyFileData() local 36 if (bufSize == 0) in CopyFileData() 37 bufSize = 32768; in CopyFileData() 39 char* buf = new (nothrow) char[bufSize]; in CopyFileData() 44 printf("copy data, bufSize = %ld\n", bufSize); in CopyFileData() 47 ssize_t bytes = src.Read(buf, bufSize); in CopyFileData()
|
/haiku/src/system/boot/platform/efi/ |
H A D | serial.cpp | 43 size_t bufSize = 1; in serial_putc() local 44 sEFISerialIO->Write(sEFISerialIO, &bufSize, &ch); in serial_putc()
|
/haiku/src/tools/locale/ |
H A D | DefaultCatalog.cpp | 236 static const int bufSize = 256; in UpdateAttributes() local 237 char buf[bufSize]; in UpdateAttributes() 240 bufSize) <= 0 in UpdateAttributes() 246 &buf, bufSize) <= 0 in UpdateAttributes() 252 &buf, bufSize) <= 0 in UpdateAttributes()
|
/haiku/src/add-ons/locale/catalogs/plaintext/ |
H A D | Catalog.cpp | 345 static const int bufSize = 256; in UpdateAttributes() local 346 char buf[bufSize]; in UpdateAttributes() 348 if (catalogFile.ReadAttr("BEOS:TYPE", B_MIME_STRING_TYPE, 0, &buf, bufSize) in UpdateAttributes() 355 &buf, bufSize) <= 0 || fLanguageName != buf) { in UpdateAttributes() 359 &buf, bufSize) <= 0 || fSignature != buf) { in UpdateAttributes()
|
/haiku/src/tests/kits/storage/ |
H A D | QueryTest.cpp | 1053 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; in TestFetchPredicate() local 1054 char buffer[bufSize]; in TestFetchPredicate() 1056 while (query.GetNextDirents(ents, bufSize, 1) == 1) { in TestFetchPredicate() 1068 CPPUNIT_ASSERT( query.GetNextDirents(ents, bufSize, 1) == 0 ); in TestFetchPredicate() 1076 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; in TestFetchPredicate() local 1077 char buffer[bufSize]; in TestFetchPredicate() 1081 while (query.GetNextDirents(ents, bufSize, 1) == 1) { in TestFetchPredicate() 1105 CPPUNIT_ASSERT( query.GetNextDirents(ents, bufSize, 1) == 0 ); in TestFetchPredicate() 1253 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; in FetchTest() local 1254 char buffer[bufSize]; in FetchTest() [all …]
|
H A D | DirectoryTest.cpp | 1195 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; in EntryIterationTest() local 1196 char buffer[bufSize]; in EntryIterationTest() 1199 while (dir.GetNextDirents(ents, bufSize, 1) == 1) in EntryIterationTest() 1275 while (dir.GetNextDirents(ents, bufSize, 1) == 1) in EntryIterationTest() 1293 while (dir.GetNextDirents(ents, bufSize, 1) == 1) { in EntryIterationTest() 1319 CPPUNIT_ASSERT( dir.GetNextDirents(ents, bufSize, 1) == B_FILE_ERROR ); in EntryIterationTest() 1330 CPPUNIT_ASSERT( dir.GetNextDirents(ents, bufSize, 1) == B_FILE_ERROR ); in EntryIterationTest() 1341 CPPUNIT_ASSERT( equals(dir.GetNextDirents(NULL, bufSize, 1), in EntryIterationTest()
|
/haiku/src/add-ons/mail_daemon/inbound_protocols/pop3/ |
H A D | POP3.cpp | 576 const int bufSize = 1024 * 30; in RetrieveInternal() local 584 if (amountToReceive >= bufSize || amountToReceive <= 0) in RetrieveInternal() 585 amountToReceive = bufSize - 1; in RetrieveInternal() 588 char* buf = bufBString.LockBuffer(bufSize); in RetrieveInternal() 608 if (amountToReceive > bufSize - 1 - amountInBuffer) in RetrieveInternal() 609 amountToReceive = bufSize - 1 - amountInBuffer; in RetrieveInternal() 623 amountToReceive = bufSize - 1; // For next time, read a full buffer. in RetrieveInternal()
|
/haiku/src/kits/locale/ |
H A D | DefaultCatalog.cpp | 334 static const int bufSize = 256; in UpdateAttributes() local 335 char buf[bufSize]; in UpdateAttributes() 338 bufSize) <= 0 in UpdateAttributes() 344 &buf, bufSize) <= 0 in UpdateAttributes() 350 &buf, bufSize) <= 0 in UpdateAttributes()
|
/haiku/src/kits/device/ |
H A D | SerialPort.cpp | 516 BSerialPort::GetDeviceName(int32 n, char *name, size_t bufSize) in GetDeviceName() argument 525 strncpy(name, dev, bufSize); in GetDeviceName() 526 name[bufSize - 1] = '\0'; in GetDeviceName()
|
H A D | Joystick.cpp | 304 BJoystick::GetDeviceName(int32 index, char *name, size_t bufSize) in GetDeviceName() argument 317 if (deviceName->Length() > (int32)bufSize) in GetDeviceName() 320 strlcpy(name, deviceName->String(), bufSize); in GetDeviceName()
|
/haiku/src/kits/midi/ |
H A D | MidiPort.cpp | 243 BMidiPort::GetDeviceName(int32 n, char* name, size_t bufSize) in GetDeviceName() argument 250 if (size >= bufSize) in GetDeviceName()
|
/haiku/headers/os/device/ |
H A D | SerialPort.h | 107 size_t bufSize = B_OS_NAME_LENGTH);
|
H A D | Joystick.h | 42 size_t bufSize = B_OS_NAME_LENGTH);
|
/haiku/headers/os/midi/ |
H A D | MidiPort.h | 60 int32 n, char* name, size_t bufSize = B_OS_NAME_LENGTH);
|
/haiku/headers/os/storage/ |
H A D | Directory.h | 51 virtual int32 GetNextDirents(dirent *buf, size_t bufSize,
|
/haiku/headers/build/os/storage/ |
H A D | Directory.h | 49 virtual int32 GetNextDirents(dirent *buf, size_t bufSize,
|
/haiku/src/kits/storage/ |
H A D | Directory.cpp | 373 BDirectory::GetNextDirents(dirent* buf, size_t bufSize, int32 count) in GetNextDirents() argument 379 return _kern_read_dir(fDirFd, buf, bufSize, count); in GetNextDirents()
|
/haiku/src/build/libbe/storage/ |
H A D | Directory.cpp | 353 BDirectory::GetNextDirents(dirent* buf, size_t bufSize, int32 count) in GetNextDirents() argument 359 return _kern_read_dir(fDirFd, buf, bufSize, count); in GetNextDirents()
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/ |
H A D | FUSEVolume.h | 210 char* buf, size_t bufSize, const char* name, int type,
|
/haiku/docs/user/storage/ |
H A D | Directory.dox | 446 \fn int32 BDirectory::GetNextDirents(dirent* buf, size_t bufSize, 459 \param bufSize The size of \a buf.
|