bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hi a problem with mkfifo, mknod


From: Qianfeng Zhang
Subject: Hi a problem with mkfifo, mknod
Date: Sat, 24 Mar 2001 17:26:19 -0800

   These days, I am implementing a software. I tested my program on
different versions of Linux.
My program can run well on Linux 2.14, but failed on Linux 2.16 . Since
my program used named pipe to
communicate data between two processes, I checked mkfifo command and
mkfifo() function on the two
Linux versions, and I find that Linux 2.16 failed to create named pipe.
The following is my result:

1. on Linux 2.14
 >uname -a
  Linux Goodearth 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown

 >mkfifo feng
 >file feng
  feng: fifo (named pipe)
 >ls -l feng
  prw-r--r--    1 wave1    root            0 Mar 23 15:41 feng|

  The result is same if using mkfifo() in a C program.

2. on Linux 2.16
 >uname -a
Linux pixie.cs.ubc.ca 2.2.16-3 #1 Mon Jun 19 18:10:14 EDT 2000 i686
unknown
 >mkfifo feng
 >file feng
  feng: empty
 >ls -l feng
 -rw-------    1 qfzhang  grads           0 Mar 23 15:45 feng

  The result is same if using mkfifo() in a C program.

   I test mknod ( or mknod() in C) to create a named pipe on my Linux
2.16. The result is the same. I find
that both mknod() and mkfifo() are provide by libc.a, and I think the
two functions should be wrapper functions
for the related system call.  So there may be some problem with the
kernel codes of those system calls.  I hope
you  can check this problem. The gcc version that I use is

         egcs-2.91.66 19990314/Linux


     Thank you !

-- Qianfeng Zhang







reply via email to

[Prev in Thread] Current Thread [Next in Thread]