Results 1 to 5 of 5

Thread: Implementation of mkfifo() : C

  1. #1
    Join Date
    Dec 2009
    Posts
    22

    Implementation of mkfifo() : C

    Hello, I am student of the MscCS . I have the knowledge of the C language. But, I do not know anything about the function that can be used in the C language whose name can be mkfifo() function. So, I would like to know about the Implementation of the mkfifo() function in C language. I also would like to know how can I implement the mkfifo() function in my C program to create the directory. Anyone has the solution for me on the mkfifo() function reply me!!

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Implementation of mkfifo() : C

    I guess you should understood from the following code of lines :
    #include <sys/types.h>
    #include <sys/stat.h>
    void main()
    {
    mkfifo( "//3/hd/qnx", T_IUSR | T_WUSR );
    }

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Implementation of mkfifo() : C

    Hi, The mkfifo() function can creates a new FIFO special file that can be named by the path name that can be pointed to by the path. The file permissions that can be modified by the process creation mask, could be the bits of the new FIFO are initialized from mode. Other than the bits of the file permission can be ignored. The process's effective user ID can be set by the the owner ID of the FIFO. The process's effective group ID can be set by the group ID of the FIFO.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Implementation of mkfifo() : C

    The fields of the file sftim, sctim, satim and smtim can be marked for update, If the mkfifo() function can succeeds. And also the fields such as the s_ctim and s_mtim of the directory can be marked for the update those which contains the the new entry. For the FIFO file, the creation mode can be specified by the -m option. The mode can be in the symbolic or can be in the absolute form.

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    mkfifo() : C

    The mkfifo() function can returns the -1, if there is a success. The mkfifo() function can returns the zero, if there an error can occur. the following can be the list of the errors of the mkfifo() function :
    1. EACCES
    2. EEXIST
    3. ENAMETOOLONG
    4. ENOENT
    5. ENOSPC
    6. ENOSYS
    7. ENOTDIR
    8. EROFS

Similar Threads

  1. Implementation of mkdir() : C
    By Agustíne in forum Software Development
    Replies: 4
    Last Post: 02-02-2010, 06:16 PM
  2. C : Implementation of ctime()
    By Gavyn in forum Software Development
    Replies: 4
    Last Post: 01-02-2010, 04:21 PM
  3. C : Implementation of sin(),pow(),sqrt()
    By Adolfa in forum Software Development
    Replies: 4
    Last Post: 30-01-2010, 12:41 PM
  4. Implementation of vsprintf() : C
    By Gaelic in forum Software Development
    Replies: 4
    Last Post: 28-01-2010, 11:28 AM
  5. Implementation of mysql
    By Aloke in forum Software Development
    Replies: 5
    Last Post: 23-01-2010, 01:26 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,698,688.89809 seconds with 17 queries