Searched refs:read (Results 1 - 25 of 302) sorted by relevance

1234567891011>>

/haiku/headers/private/input/
H A Dshared_cursor_area.h17 int32 read; member in struct:shared_cursor
/haiku/src/apps/soundrecorder/
H A DFileUtils.cpp60 fprintf(stderr, "Failed to read file: %s\n", strerror(
90 fprintf(stderr, "Failed to read info for attribute '%s'\n",
98 ssize_t read = src.ReadAttr(attrName, info.type, offset, buffer, local
100 if (read < 0) {
102 return (status_t)read;
105 while (read >= 0) {
107 buffer, read);
108 if (written != read) {
115 offset += read;
116 read
[all...]
/haiku/src/add-ons/translators/jpeg/
H A Dexif_parser.cpp48 static status_t parse_tiff_directory(TReadHelper& read, set<off_t>& visited,
196 parse_tiff_tag(TReadHelper& read, tiff_tag& tag, off_t& offset) argument
198 read(tag.tag);
199 read(tag.type);
200 read(tag.length);
202 offset = read.Position() + 4;
230 read(position);
232 read.Seek(position, SEEK_SET);
238 parse_tiff_directory(TReadHelper& read, set<off_t>& visited, off_t offset, argument
246 read
294 parse_tiff_directory(TReadHelper& read, set<off_t>& visited, BMessage& target, const convert_tag* tags, size_t tagCount) argument
[all...]
/haiku/src/add-ons/input_server/devices/wacom/
H A DDeviceReader.cpp50 // read the wacom_device_header from the file and initialize
121 ssize_t read = fDeviceFile->Read(buffer, requested); local
122 if (read > kHeaderSize) {
124 size_t bytesToCopy = min_c(size, read - (size_t)kHeaderSize);
125 PRINT(("requested: %ld, read: %ld, user wants: %lu, copy bytes: %ld\n",
126 requested, read, size, bytesToCopy));
132 // read = bytesToCopy;
133 // if (read != (ssize_t)size)
134 // PRINT(("user wanted: %lu, returning: %ld\n", size, read));
135 read
[all...]
/haiku/src/bin/hid_decode/
H A Dhid_decode.cpp40 ssize_t read = file.Read(reportDescriptor, descriptorLength); local
41 if (read != descriptorLength) {
42 printf("failed to read file of %lld bytes: %s\n", descriptorLength,
43 strerror(read));
/haiku/src/kits/package/
H A DFetchUtils.cpp91 ssize_t read = node.ReadAttr(attrName, type, 0, data, size);
92 if (read != (ssize_t)size) {
93 if (read < 0)
94 return (status_t)read;
/haiku/src/tests/add-ons/kernel/file_systems/random_read/
H A Drandom_read.cpp6 /*! Tests if the read functions of a file system work correctly by reading
16 read numbers wouldn't be correctly compared).
81 fprintf(stderr, "no memory to create read buffer.\n");
89 // we are lazy tester, minimum read size is 4 bytes
99 printf(" Could not read %ld bytes at offset %lld: %s\n",
102 printf(" Could only read %ld bytes instead of %ld at offset %lld\n",
114 test_t read = *(test_t *)(buffer - partial); local
119 correct = (num & 0xffffff00) == (read & 0xffffff00);
122 correct = (num & 0xffff0000) == (read & 0xffff0000);
125 correct = (num & 0xff000000) == (read
158 uint32 read = *numBuffer; local
[all...]
/haiku/src/tests/add-ons/kernel/drivers/hpet/
H A Dmain.cpp20 read(hpetFD, &value, sizeof(uint64));
24 read(hpetFD, &newValue, sizeof(uint64));
/haiku/src/add-ons/translators/exr/
H A DIStreamWrapper.cpp22 IStreamWrapper::read(char c[/*n*/], int n) function in class:IStreamWrapper
H A DIStreamWrapper.h20 virtual bool read(char c[/*n*/], int n);
/haiku/src/tests/libs/bsd/
H A Dforkpty.c40 n = read (fd, s, 1);
/haiku/src/servers/power/
H A Dlid_monitor.cpp38 if (read(fd, &status, 1) != 1)
/haiku/src/tests/kits/device/bserial/
H A DSerialIO.cpp14 ssize_t read = port->Read(buffer, sizeof(buffer)); local
15 if (read <= 0)
18 for (ssize_t i = 0; i < read; i++) {
/haiku/src/add-ons/tracker/mark_as/
H A DMarkAsRead.cpp31 // if we're marking it via the add-on, we haven't really read it
33 read_flags read = B_SEEN; local
35 // Update the MAIL:read status to match
43 BMailDaemon().MarkAsRead(account, ref, read);
45 write_read_attr(node, read);
/haiku/src/build/libbe/storage/
H A DNodeInfo.cpp144 // read the data
146 ssize_t read = fNode->ReadAttr(kNITypeAttribute, attrInfo.type, 0, local
148 if (read < 0)
149 error = read;
150 else if (read != attrInfo.size)
260 // read the attribute
264 ssize_t read; local
271 read = fNode->ReadAttr(attribute, attrType, 0, buffer,
275 read = fNode->ReadAttr(attribute, attrType, 0, icon->Bits(),
279 if (read <
413 ssize_t read = fNode->ReadAttr(kNIPreferredAppAttribute, attrInfo.type, local
506 ssize_t read = fNode->ReadAttr(kNIAppHintAttribute, attrInfo.type, 0, local
[all...]
H A DAppFileInfo.cpp162 // read the data
163 size_t read = 0; local
166 type, B_MIME_TYPE_LENGTH, read);
168 // check the read data -- null terminate the string
169 if (error == B_OK && type[read - 1] != '\0') {
170 if (read == B_MIME_TYPE_LENGTH)
173 type[read] = '\0';
211 // read the data
212 size_t read = 0; local
215 B_MIME_STRING_TYPE, signature, B_MIME_TYPE_LENGTH, read);
304 size_t read = 0; local
355 size_t read = 0; local
615 size_t read; local
727 size_t read; local
1026 ssize_t read = fNode->ReadAttr(name, type, 0, buffer, info.size); local
[all...]
/haiku/src/apps/installer/
H A DCopyEngine.cpp213 ssize_t read = source.Read(buffer->buffer, buffer->size); local
214 if (read < 0) {
215 ret = (status_t)read;
216 fprintf(stderr, "Failed to read data: %s\n", strerror(ret));
222 fBytesRead += read;
227 buffer->deleteFile = read == 0;
228 if (read > 0)
229 buffer->validBytes = (size_t)read;
243 if (read == 0)
431 ssize_t read local
463 ssize_t read = sourceNode.ReadAttr(attrName, info.type, local
[all...]
/haiku/src/kits/storage/
H A DAppFileInfo.cpp162 // read the data
163 size_t read = 0; local
166 type, B_MIME_TYPE_LENGTH, read);
168 // check the read data -- null terminate the string
169 if (error == B_OK && type[read - 1] != '\0') {
170 if (read == B_MIME_TYPE_LENGTH)
173 type[read] = '\0';
211 // read the data
212 size_t read = 0; local
215 B_MIME_STRING_TYPE, signature, B_MIME_TYPE_LENGTH, read);
304 size_t read = 0; local
355 size_t read = 0; local
613 size_t read; local
725 size_t read; local
1062 ssize_t read = fNode->ReadAttr(name, type, 0, buffer, info.size); local
[all...]
/haiku/src/apps/clock/
H A Dcl_wind.cpp72 read(ref, (char*)&leftTop, sizeof(leftTop));
75 read(ref, (char *)&face, sizeof(short));
79 read(ref, (char *)&secs, sizeof(bool));
/haiku/src/tools/hack_coff/
H A Dhack-coff.c49 if (read(fd, &fhdr, sizeof(fhdr)) != sizeof(fhdr))
57 if (read(fd, &aout, aoutsz) != aoutsz)
61 if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr))
82 fprintf(stderr, "%s: read error or file too short\n", av[1]);
/haiku/src/system/libroot/posix/glibc/include/
H A Dunistd.h14 read(fd, buffer, size)
/haiku/src/tests/add-ons/kernel/drivers/random/
H A Drandom_test.cpp24 ssize_t bytesRead = read(fd, buffer, sizeof(buffer));
26 fprintf(stderr, "Error: Failed to read from random device: %s",
/haiku/src/tools/fixup_tos_boot_checksum/
H A Dfixup_tos_boot_checksum.c17 if (read(fd, sector, 512-2) < 512-2) {
18 perror("read");
/haiku/src/tools/restest/
H A DResourceItem.cpp169 ssize_t read = file.ReadAt(fOffset, fData, fSize); local
170 if (read < 0)
171 error = read;
172 else if (read < fSize)
/haiku/src/system/libroot/os/
H A Dstack_protector.cpp29 done = read(fd, &__stack_chk_guard, sizeof(__stack_chk_guard))

Completed in 309 milliseconds

1234567891011>>