* @brief This function will create a named pipe. * * @param path is the name of pipe device. * * @param mode is not used yet. * * @return Return the operation status. * When the return value is 0, it means the operation is successful. * When the return value is -1, it means the operation is failed. */
| 789 | * When the return value is -1, it means the operation is failed. |
| 790 | */ |
| 791 | int mkfifo(const char *path, mode_t mode) |
| 792 | { |
| 793 | rt_pipe_t *pipe; |
| 794 | |
| 795 | pipe = rt_pipe_create(path, RT_USING_POSIX_PIPE_SIZE); |
| 796 | if (pipe == RT_NULL) |
| 797 | { |
| 798 | return -1; |
| 799 | } |
| 800 | |
| 801 | return 0; |
| 802 | } |
| 803 | #endif /* defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_POSIX_PIPE) */ |
nothing calls this directly
no test coverage detected