Lines Matching defs:NULL

55 #define HAS_FS_CALL(vnode, op)			(vnode->ops->op != NULL)
56 #define HAS_FS_MOUNT_CALL(mount, op) (mount->volume->ops->op != NULL)
109 is NULL, though).
263 NULL,
264 NULL,
265 NULL, // read_dir()
266 NULL, // rewind_dir()
274 NULL, // read()
275 NULL, // write()
276 NULL, // seek()
278 NULL, // select()
279 NULL, // deselect()
289 NULL, // read()
290 NULL, // write()
291 NULL, // seek()
293 NULL, // select()
294 NULL, // deselect()
308 NULL, // select()
309 NULL, // deselect()
310 NULL, // read_dir()
311 NULL, // rewind_dir()
319 NULL, // read()
320 NULL, // write()
321 NULL, // seek()
322 NULL, // ioctl()
323 NULL, // select()
324 NULL, // deselect()
327 NULL, // read_stat()
328 NULL, // write_stat()
335 NULL, // read()
336 NULL, // write()
337 NULL, // seek()
338 NULL, // ioctl()
339 NULL, // select()
340 NULL, // deselect()
341 NULL, // dir_read()
342 NULL, // dir_rewind()
344 NULL, // write_stat()
345 NULL, // dir_close()
346 NULL // free_fd()
351 NULL, // read()
352 NULL, // write()
353 NULL, // seek()
354 NULL, // ioctl()
355 NULL, // select()
356 NULL, // deselect()
359 NULL, // read_stat()
360 NULL, // write_stat()
369 VNodePutter(struct vnode *vnode = NULL) : fVNode(vnode) {}
386 fVNode = NULL;
393 fVNode = NULL;
447 if (mount == NULL)
450 if (mount->root_vnode == NULL) {
452 // case the root node may still be NULL
480 * Returns a pointer to file system module interface, or NULL if it
492 fsName = NULL;
497 return NULL;
507 * Returns NULL if the required memory is no available.
522 if (end == NULL) {
530 if (name == NULL)
531 return NULL;
559 if (vnode != NULL)
585 vnode->mount_link.next = vnode->mount_link.prev = NULL;
597 if (vnode == NULL)
741 * \return The vnode structure, if it was found in the hash table, \c NULL
820 if (status == FSSH_B_OK && vnode->private_node == NULL)
869 * \a vnodeToDisconnect, or if this is NULL, all vnodes of the specified
896 * indeed a mount point, or \c NULL otherwise.
903 return NULL;
905 struct vnode *volumeRoot = NULL;
974 * root and not "/", or \c NULL otherwise.
981 return NULL;
983 struct vnode *mountPoint = NULL;
1058 return vnode_path_to_vnode(directory, clonedName, false, 0, _vnode, NULL);
1074 if (*_vnode == NULL) {
1085 \a path must not be NULL.
1101 if (path == NULL) {
1169 if (buffer == NULL) {
1250 struct vnode *start = NULL;
1259 if (sRoot == NULL) {
1273 if (start != NULL)
1277 if (start == NULL)
1297 return path_to_vnode(path, true, _vnode, NULL, kernel);
1314 * \param path The absolute or relative path. Must not be \c NULL. The buffer
1339 return fd_and_path_to_vnode(fd, path, true, _vnode, NULL, kernel);
1356 if (vnode->mount->root_vnode == vnode && vnode->mount->covers_vnode != NULL) {
1371 if (parent == NULL)
1440 if (vnode == NULL || buffer == NULL)
1591 if (descriptor == NULL)
1592 return NULL;
1594 if (fd_vnode(descriptor) == NULL) {
1596 return NULL;
1614 if (descriptor == NULL)
1615 return NULL;
1618 if (vnode != NULL)
1628 * NULL.
1629 * If \a fd is a valid file descriptor, \a path may be NULL for directories,
1630 * and should be NULL for files.
1640 if (fd < 0 || (path != NULL && path[0] == '/')) {
1650 if (path != NULL) {
1673 if (vnode && vnode->mandatory_locked_by != NULL)
1890 if (privateNode == NULL)
1902 if (vnode != NULL) {
1934 if (vnode != NULL && vnode->busy && vnode->unpublished
1937 } else if (vnode == NULL && privateNode != NULL) {
1949 if (status == FSSH_B_OK && volume->sub_volume != NULL) {
1953 while (status == FSSH_B_OK && subVolume->sub_volume != NULL) {
1988 if (volume == NULL)
2008 if (privateNode != NULL)
2010 } else if (privateNode != NULL)
2026 if (vnode == NULL)
2043 if (vnode == NULL)
2060 if (vnode == NULL)
2063 if (vnode->covered_by != NULL) {
2126 if (_vnode == NULL)
2127 return NULL;
2180 fssh_iovec* newVecs = NULL;
2221 fssh_iovec* newVecs = NULL;
2329 if (descriptor == NULL)
2342 if (*vnode == NULL)
2362 fssh_status_t status = path_to_vnode(buffer, true, &vnode, NULL, kernel);
2441 if (vnode == NULL)
2471 status = path_to_vnode(buffer, true, &vnode, NULL, true);
2475 status = vnode_path_to_vnode(vnode, buffer, true, 0, &vnode, NULL);
2517 status = path_to_vnode(pathBuffer, true, &dir, NULL, true);
2531 if (nextPath == NULL)
2547 status = vnode_path_to_vnode(dir, path, true, 0, &file, NULL);
2638 error = vnode_path_to_vnode(dirNode, leaf, false, 0, &dirNode, NULL);
2684 if (context->cwd != NULL) {
2727 return get_vnode_name((struct vnode *)_vnode, NULL, name, nameSize);
2739 if (leaf != NULL && (leaf[0] == '\0' || fssh_strchr(leaf, '/')))
2747 leaf = NULL;
2782 if (vnode != NULL && vnode->mandatory_locked_by == descriptor)
2783 vnode->mandatory_locked_by = NULL;
2803 if (descriptor != NULL && fd_close_on_exec(context, i)) {
2804 context->fds[i] = NULL;
2832 if (context == NULL)
2833 return NULL;
2846 if (context->fds == NULL) {
2848 return NULL;
2871 if (descriptor != NULL && !fd_close_on_exec(parentContext, i)) {
2925 if (sVnodeTable == NULL)
2932 if (sMountsTable == NULL)
2935 sRoot = NULL;
2977 if (vnode == NULL) {
2982 if ((status = get_new_fd(FDTYPE_FILE, NULL, vnode, cookie, openMode, kernel)) >= 0)
3011 status = get_new_fd(FDTYPE_FILE, NULL, vnode, cookie, openMode, kernel);
3035 status = get_new_fd(FDTYPE_DIR, NULL, vnode, cookie, 0, kernel);
3065 status = get_new_fd(FDTYPE_ATTR_DIR, NULL, vnode, cookie, 0, kernel);
3123 if (name == NULL || *name == '\0')
3152 struct vnode *vnode = NULL;
3188 if (vnode != NULL) {
3268 if (name == NULL || *name == '\0')
3345 struct vnode *vnode = NULL;
3379 if (vnode != NULL) {
3412 0, &vnode, NULL);
3420 struct vnode *vnode = NULL;
3477 if (path != NULL) {
3480 if (lastSlash != NULL) {
3539 if (descriptor == NULL)
3631 if (descriptor == NULL)
3651 if (descriptor == NULL)
3679 if (descriptor == NULL)
3707 status = fd_and_path_to_vnode(fd, path, false, &vnode, NULL, kernel);
3761 status = path_to_vnode(toPath, true, &vnode, NULL, kernel);
3814 status = path_to_vnode(path, true, &vnode, NULL, kernel);
3913 status = fd_and_path_to_vnode(fd, path, traverseLeafLink, &vnode, NULL, kernel);
3939 status = fd_and_path_to_vnode(fd, path, traverseLeafLink, &vnode, NULL, kernel);
3962 status = fd_and_path_to_vnode(fd, path, true, &vnode, NULL, kernel);
3993 if (vnode != NULL) {
4036 if (name == NULL || *name == '\0')
4040 if (vnode == NULL)
4052 if ((status = get_new_fd(FDTYPE_ATTR, NULL, vnode, cookie, openMode, kernel)) >= 0)
4074 if (name == NULL || *name == '\0')
4078 if (vnode == NULL)
4091 if ((status = get_new_fd(FDTYPE_ATTR, NULL, vnode, cookie, openMode, kernel)) >= 0)
4123 if (vnode != NULL) {
4236 if (name == NULL || *name == '\0')
4242 if (descriptor == NULL)
4263 if (fromName == NULL || *fromName == '\0' || toName == NULL || *toName == '\0')
4269 if (fromDescriptor == NULL)
4273 if (toDescriptor == NULL) {
4320 status = get_new_fd(FDTYPE_INDEX_DIR, mount, NULL, cookie, 0, kernel);
4353 if (mount != NULL) {
4484 status = get_new_fd(FDTYPE_QUERY, mount, NULL, cookie, 0, kernel);
4517 if (mount != NULL) {
4565 // A NULL fsName is OK, if a device was given and the FS is not virtual.
4567 if (fsName == NULL) {
4593 if (mount == NULL)
4597 if (mount->volume == NULL) {
4605 if (mount->fs_name == NULL) {
4611 // "device" can be NULL
4614 if (mount->fs == NULL) {
4623 mount->root_vnode = NULL;
4624 mount->covers_vnode = NULL;
4630 mount->volume->private_volume = NULL;
4631 mount->volume->ops = NULL;
4632 mount->volume->sub_volume = NULL;
4633 mount->volume->super_volume = NULL;
4658 status = path_to_vnode(path, true, &coveredVnode, NULL, kernel);
4690 if (mount->root_vnode == NULL || mount->root_vnode->ref_count != 1) {
4742 err = path_to_vnode(path, true, &vnode, NULL, kernel);
4769 vnode = NULL;
4770 while ((vnode = (struct vnode *)list_get_next_item(&mount->vnodes, vnode)) != NULL) {
4811 disconnect_mount_or_vnode_fds(mount, NULL);
4821 while ((vnode = (struct vnode *)list_get_next_item(&mount->vnodes, vnode)) != NULL) {
4837 mount->covers_vnode->covered_by = NULL;
4844 while ((vnode = (struct vnode *)list_get_first_item(&mount->vnodes)) != NULL) {
4883 struct vnode *previousVnode = NULL;
4892 if (vnode != NULL)
4897 if (vnode == NULL)
4903 if (previousVnode != NULL)
4919 if (previousVnode != NULL)
4945 if (mount->device_name != NULL) {
4980 struct fs_mount *mount = NULL;
4992 if (mount != NULL && mount->volume->private_volume != NULL)
4998 if (mount != NULL)
5034 struct vnode *vnode = NULL;
5042 status = fd_and_path_to_vnode(fd, path, true, &vnode, NULL, kernel);
5107 if (info == NULL)
5117 if (info == NULL)
5166 * \param path The absolute or relative path. May be \c NULL.
5189 * The supplied name may be \c NULL, in which case directory identified
5200 * \param name The entry name of the directory to be opened. If \c NULL,
5222 * \param path The absolute or relative path. May be \c NULL.
5282 * \param path The absolute or relative path. Must not be \c NULL.
5310 return dir_remove(fd, NULL, true);
5326 * \param path The absolute or relative path. May be \c NULL.
5345 return common_read_link(fd, NULL, buffer, _bufferSize, true);
5358 * \param toPath The absolute or relative path. Must not be \c NULL.
5405 * \param path The absolute or relative path. Must not be \c NULL.
5432 * be \c NULL.
5435 * be \c NULL.
5475 * \param path The absolute or relative path. Must not be \c NULL.
5489 fssh_struct_stat *originalStat = NULL;
5513 if (descriptor == NULL)
5524 if (status == FSSH_B_OK && originalStat != NULL)
5542 * \param path The absolute or relative path. Must not be \c NULL.
5583 if (descriptor == NULL)
5605 if (path != NULL)
5608 return attr_dir_open(fd, path ? pathBuffer.LockBuffer() : NULL, true);
5685 if (path != NULL)
5688 return set_cwd(fd, path != NULL ? pathBuffer.LockBuffer() : NULL, true);
5708 if (fsModule == NULL) {