MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / mkfifo

Function mkfifo

components/drivers/ipc/pipe.c:791–802  ·  view source on GitHub ↗

* @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. */

Source from the content-addressed store, hash-verified

789 * When the return value is -1, it means the operation is failed.
790 */
791int 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) */

Callers

nothing calls this directly

Calls 1

rt_pipe_createFunction · 0.85

Tested by

no test coverage detected