New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkfifo works only in '/dev/' directory. #1465
Comments
@samirsahu1947 Here is no activity. Please check this issue asap. |
@pholat I heard our network stack, lwip, does not support AF_UNIX. When we upgrade lwip version to 2.0.2, we removed AF_UNIX definition. Sorry for confusing. |
@sunghan-chang Thanks for confirmation, I actually lost quite a bit of time wondering why it worked different on Artik then in tests. I could only suggest that it would be nice if sub-repositories could be handled as git submodules - it would be easier to check different versions of them. |
@pholat Do you mean arch for artik? |
@pholat , In TizenRT, unlike linux, mkfifo is created as device driver file and not a special file type. It's a device driver instance. while creating the device driver file, it does not allow to create a device file inside any mount partition. Flow => mkfifo-> register_driver -> inode_reserve -> inode_search inode_reserve() 200 if (inode_search(&name, &left, &parent, (FAR const char *)NULL) != NULL) { inode_search() 327 if (!name || INODE_IS_MOUNTPT(node)) { } Since it's a device driver file instance, We can use mkfifo to create file in any other pseudo file paths . for ex /tmp/fifo |
@sunghan-chang I've checked it on artik053s Btw. thanks for explanation. |
When I was trying to create FIFO somewhere other it failed, I could only open normal file there. Only when checking examples I saw that these uses
/dev/
directory.I had issues with AF_UNIX sockets too, afair I could open it, but couldn't make any data transfer. As I was checking internal sockets tests were made on loopback interface, which I don't consider a good practice - which is why FIFO is in use.
The text was updated successfully, but these errors were encountered: