Searched refs:read (Results 1 - 25 of 290) 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.cpp45 // read 8 bytes from the file and initialize
118 ssize_t read = fDeviceFile->Read(buffer, requested); local
119 if (read > kHeaderSize) {
121 size_t bytesToCopy = min_c(size, read - (size_t)kHeaderSize);
122 PRINT(("requested: %ld, read: %ld, user wants: %lu, copy bytes: %ld\n",
123 requested, read, size, bytesToCopy));
129 // read = bytesToCopy;
130 // if (read != (ssize_t)size)
131 // PRINT(("user wanted: %lu, returning: %ld\n", size, read));
132 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/tools/zip/unix/
H A Dzipup.h16 #define zread(f,b,n) read(f,b,n)
/haiku/headers/private/drivers/
H A Drandom.h26 status_t (*read)(void* cookie, void *_buffer, size_t *_numBytes); member in struct:random_module_info
/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 %Ld: %s\n",
102 printf(" Could only read %ld bytes instead of %ld at offset %Ld\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/libs/libunwind/coredump/
H A D_UCD_access_mem.c72 goto read;
78 read:
81 if (read(fd, val, sizeof(*val)) != sizeof(*val))
/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.cpp182 ssize_t read = source.Read(buffer->buffer, buffer->size); local
183 if (read < 0) {
184 ret = (status_t)read;
185 fprintf(stderr, "Failed to read data: %s\n", strerror(ret));
191 fBytesRead += read;
196 buffer->deleteFile = read == 0;
197 if (read > 0)
198 buffer->validBytes = (size_t)read;
212 if (read == 0)
402 ssize_t read local
440 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/tests/add-ons/kernel/file_systems/consistency_check/
H A Dconsistency_check.cpp67 ssize_t bytes = read(fFile, buffer, *_length);
176 // read files from hash file
186 read(file, buffer, 4);
195 read(file, &fileCount, sizeof(int));
202 read(file, &length, sizeof(int));
208 read(file, &fileCount, sizeof(int));
213 read(file, entry.hash, SHA_DIGEST_LENGTH);
214 read(file, &entry.node, sizeof(ino_t));
217 read(file, &length, sizeof(int));
218 read(fil
[all...]

Completed in 599 milliseconds

1234567891011>>