9 More Discussions You Might Find Interesting
1. UNIX and Linux Applications
Hello ,
I am working on unix FIFO IPC. i have a doubt regarding that.
If the fifo is updated(write()) through one process....can we able to send any signal that fifo is updated and ready to get read...to other process.?? (0 Replies)
Discussion started by: Harry443
0 Replies
2. AIX
Hi All,
Have a few doubts on SMIT.
1. Is SMIT available in seperate packages if it is not installed by default with the AIX ?
2. how to check the smit version.. is there anything of that kind ?
3. what is the effect of smit.cat file ?
4. What are all the files present in /etc/objrepos/... (4 Replies)
Discussion started by: BalajiUthira
4 Replies
3. Programming
Dear friends
i'm want to implement a program which one file is split into fragments by the server (by some random size) and sent to some processes, so these processes get randomly the fragments of the original file from the server, then the downloader randomly connects to some of these processes... (0 Replies)
Discussion started by: saman_glorious
0 Replies
4. Shell Programming and Scripting
Hi,
If I have a variable in a configuration file like this:
BTS=53,1-2-3-6
export BTS
As might get each of the variables in this parameter?
"53"
"1"
"2"
.... (3 Replies)
Discussion started by: danietepa
3 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
1. how and who calls .profile when you login
2. what is PPID and what means by PPID = 0
Thanks in Advance (2 Replies)
Discussion started by: ravi.sadani19
2 Replies
6. Shell Programming and Scripting
Hi All,
I am tring to set a shedule for cron to execute my script in every 15 min, n want a mail alert on my mail id if cron fails to get data as input for my script, how can i set that?
Thanks in advance
Subin (1 Reply)
Discussion started by: subin_bala
1 Replies
7. UNIX for Dummies Questions & Answers
Write unix command to list or view auto links (0 Replies)
Discussion started by: ashishshah.engg
0 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
I am very new to UNIX. Please help me to find answers of below questions.
1.A script is saved with name ls. When we execute the script what it will execute?
a) Will execute ls command
b) Will execute the script
c) Will execute script or command depends on the path
... (2 Replies)
Discussion started by: aswathy
2 Replies
9. Programming
hi, I have a problem. I've done a lil program which gets from the server the given persons username a personal folder. I made it with a pipe calling popen with a command, but how can i make the same thing using fifo. I make the fifo with mkfifo() func. and than what. How do I tell the sertver using... (3 Replies)
Discussion started by: atticus
3 Replies
MKFIFO(3) Linux Programmer's Manual MKFIFO(3)
NAME
mkfifo - make a FIFO special file (a named pipe)
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
int mkfifo(const char *pathname, mode_t mode);
DESCRIPTION
mkfifo() makes a FIFO special file with name pathname. mode specifies the FIFO's permissions. It is modified by the process's umask in
the usual way: the permissions of the created file are (mode & ~umask).
A FIFO special file is similar to a pipe, except that it is created in a different way. Instead of being an anonymous communications chan-
nel, a FIFO special file is entered into the file system by calling mkfifo().
Once you have created a FIFO special file in this way, any process can open it for reading or writing, in the same way as an ordinary file.
However, it has to be open at both ends simultaneously before you can proceed to do any input or output operations on it. Opening a FIFO
for reading normally blocks until some other process opens the same FIFO for writing, and vice versa. See fifo(7) for nonblocking handling
of FIFO special files.
RETURN VALUE
On success mkfifo() returns 0. In the case of an error, -1 is returned (in which case, errno is set appropriately).
ERRORS
EACCES One of the directories in pathname did not allow search (execute) permission.
EDQUOT The user's quota of disk blocks or inodes on the file system has been exhausted.
EEXIST pathname already exists. This includes the case where pathname is a symbolic link, dangling or not.
ENAMETOOLONG
Either the total length of pathname is greater than PATH_MAX, or an individual filename component has a length greater than
NAME_MAX. In the GNU system, there is no imposed limit on overall filename length, but some file systems may place limits on the
length of a component.
ENOENT A directory component in pathname does not exist or is a dangling symbolic link.
ENOSPC The directory or file system has no room for the new file.
ENOTDIR
A component used as a directory in pathname is not, in fact, a directory.
EROFS pathname refers to a read-only file system.
CONFORMING TO
POSIX.1-2001.
SEE ALSO
mkfifo(1), close(2), open(2), read(2), stat(2), umask(2), write(2), mkfifoat(3), fifo(7)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
2013-01-27 MKFIFO(3)