rem: int fd = open(fullPath.Path(), omode);
add: int fd = open(fullPath.Path(), omode, permissions);
context: _kern_open_entry_ref(dev_t device, ino_t inode, const char *name, int omode){	BPath fullPath;	node_ref ref;	ref.device = device;	ref.node = inode;	// init the dir and get the path	BDirectory dir;	status_t error = dir.SetTo(&ref);	if (error != B_OK)		return error;	error = fullPath.SetTo(&dir, name);	if (error != B_OK)		return error;	// open the file	int fd = open(fullPath.Path(), omode);	if (fd < 0)		return errno;	return fd;}