Lines Matching defs:length

513 	const fssh_size_t length = fssh_strlen("file_systems/");
515 if (fssh_strncmp(fsName, "file_systems/", length)) {
520 fsName += length;
1451 int32_t length;
1515 length = fssh_strlen(name);
1516 insert -= length;
1521 fssh_memcpy(path + insert, name, length);
1532 length = pathBuffer.BufferSize() - insert;
1533 if (length <= (int)bufferSize)
1534 fssh_memcpy(buffer, path + insert, length);
1544 /** Checks the length of every path component, and adds a '.'
1553 int32_t length = 0;
1555 // check length of every path component
1560 to++, length++;
1564 to++, length++;
1570 if (length == 0)
1576 if (length > FSSH_B_PATH_NAME_LENGTH - 2)
1752 size = fileVecs[0].length;
1762 // When our own drivers honour the length, we can:
1766 if ((uint64_t)size > (uint64_t)fileVecs[0].length) {
1767 //dprintf("warning: device driver %p doesn't respect total length in read_pages() call!\n", ref->device);
1768 size = fileVecs[0].length;
1771 ASSERT(size <= fileVecs[0].length);
1778 if ((uint64_t)size != (uint64_t)fileVecs[0].length) {
1807 fssh_off_t fileLeft = fssh_min_c((uint64_t)fileVec.length, (uint64_t)bytesLeft);
1809 TRACE(("FILE VEC [%lu] length %lld\n", fileVecIndex, fileLeft));
2511 fssh_size_t length;
2522 length = fssh_strlcpy(pathBuffer, basePath, bufferSize);
2523 if (pathBuffer[length - 1] != '/')
2524 pathBuffer[length++] = '/';
2526 path = pathBuffer + length;
2527 bufferSize -= length;
2532 length = fssh_strlen(moduleName);
2534 length = nextPath - moduleName;
2538 if (length + 1 >= bufferSize) {
2543 fssh_memcpy(path, moduleName, length);
2544 path[length] = '\0';
2555 path[length] = '/';
2556 path[length + 1] = '\0';
2557 path += length + 1;
2558 bufferSize -= length + 1;
3196 file_read(struct file_descriptor *descriptor, fssh_off_t pos, void *buffer, fssh_size_t *length)
3200 FUNCTION(("file_read: buf %p, pos %lld, len %p = %ld\n", buffer, pos, length, *length));
3201 return FS_CALL(vnode, read, descriptor->cookie, pos, buffer, length);
3206 file_write(struct file_descriptor *descriptor, fssh_off_t pos, const void *buffer, fssh_size_t *length)
3210 FUNCTION(("file_write: buf %p, pos %lld, len %p\n", buffer, pos, length));
3211 return FS_CALL(vnode, write, descriptor->cookie, pos, buffer, length);
3515 fssh_size_t length)
3521 descriptor->cookie, op, buffer, length);
4131 attr_read(struct file_descriptor *descriptor, fssh_off_t pos, void *buffer, fssh_size_t *length)
4135 FUNCTION(("attr_read: buf %p, pos %lld, len %p = %ld\n", buffer, pos, length, *length));
4139 return FS_CALL(vnode, read_attr, descriptor->cookie, pos, buffer, length);
4144 attr_write(struct file_descriptor *descriptor, fssh_off_t pos, const void *buffer, fssh_size_t *length)
4148 FUNCTION(("attr_write: buf %p, pos %lld, len %p\n", buffer, pos, length));
4152 return FS_CALL(vnode, write_attr, descriptor->cookie, pos, buffer, length);
5330 * \return The length of the link on success or an appropriate error code