Sponsored Content
Top Forums Programming Difference in LINUX and SOLARIS Post 43163 by Perderabo on Wednesday 12th of November 2003 11:47:07 AM
Old 11-12-2003
It's not Linux verses Solaris, it's Intel x86 verses Sparc. Your program would work on an Intel x86 running Solaris. The Intel x86 is little endian while the Sparc is big endian.

Code like this:

int c;
read(data_pipe[0], &c, 1);

is garbage. Take another look at the man pages for read and write.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What's the difference between Unix, Linux, and Solaris?

If anyone can tell me the difference between the three or where I can find more info I would appreciated it. I see alot of companies looking for people with knowledge in Unix but every time I try to find information about it I see Linux instead. Is there a market trend in these operating... (2 Replies)
Discussion started by: ITmommy
2 Replies

2. UNIX for Dummies Questions & Answers

difference between unix and linux?

Ok, I'm confused. Can someone answer these (stupid) questions please for me? 1. What is the difference between unix and linux? 2. Is FreeBSD a unix distribution? 3. If not, then what is Unix? I actually gone to Unix.com because I thought this is it's official website where I could download... (1 Reply)
Discussion started by: RellioN
1 Replies

3. UNIX for Dummies Questions & Answers

Difference between sun solaris and linux?

Hi All, Iam curious to know wat are the differences between a sun machine and a linux machine?( In terms of architecture,applications etc) Thanks in advance (3 Replies)
Discussion started by: raz
3 Replies

4. Solaris

Difference between solaris 9 and 10

Hi..., what is the difference between solaris 9 and 10.what are the major changes happend in sol 10.(including boot) (3 Replies)
Discussion started by: rjay.com
3 Replies

5. Solaris

time difference on solaris 10

Hi, in the log file, it shows like this <Sep 4, 2009 1:31:06 PM PDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> and i filter this log file to capture the time stamp -1:31:06 PM PDT. Can any one please provide the detail on how to find the difference between... (1 Reply)
Discussion started by: alnhk
1 Replies

6. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

7. Linux

Difference between Windows and Linux

Hi, What is the difference between Linux and Windows? Thanks. (1 Reply)
Discussion started by: billcrosby
1 Replies

8. Linux

What is the difference between Linux and Windows?

Hi, What is the difference between Linux and Windows? Thanks. (5 Replies)
Discussion started by: billcrosby
5 Replies

9. UNIX for Dummies Questions & Answers

Difference between UNIX and Linux

hi experts please tell me the real difference between unix and linux at kernel structure (1 Reply)
Discussion started by: linurag
1 Replies

10. Red Hat

Difference Redhat Linux/RH Enterprise Linux

what is the difference between Redhat Linux and Redhat Enterprise Linux. whereas Redhat linux have Server installation options too. (2 Replies)
Discussion started by: hananabbas
2 Replies
FIFO(7) 						     Linux Programmer's Manual							   FIFO(7)

NAME
fifo - first-in first-out special file, named pipe DESCRIPTION
A FIFO special file (a named pipe) is similar to a pipe, except that it is accessed as part of the file system. It can be opened by multi- ple processes for reading or writing. When processes are exchanging data via the FIFO, the kernel passes all data internally without writ- ing it to the file system. Thus, the FIFO special file has no contents on the file system; the file system entry merely serves as a refer- ence point so that processes can access the pipe using a name in the file system. The kernel maintains exactly one pipe object for each FIFO special file that is opened by at least one process. The FIFO must be opened on both ends (reading and writing) before data can be passed. Normally, opening the FIFO blocks until the other end is opened also. A process can open a FIFO in nonblocking mode. In this case, opening for read only will succeed even if no-one has opened on the write side yet, opening for write only will fail with ENXIO (no such device or address) unless the other end has already been opened. Under Linux, opening a FIFO for read and write will succeed both in blocking and nonblocking mode. POSIX leaves this behavior undefined. This can be used to open a FIFO for writing while there are no readers available. A process that uses both ends of the connection in order to communicate with itself should be very careful to avoid deadlocks. NOTES
When a process tries to write to a FIFO that is not opened for read on the other side, the process is sent a SIGPIPE signal. FIFO special files can be created by mkfifo(3), and are indicated by ls -l with the file type 'p'. SEE ALSO
mkfifo(1), open(2), pipe(2), sigaction(2), signal(2), socketpair(2), mkfifo(3), pipe(7) COLOPHON
This page is part of release 3.27 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/. Linux 2008-12-03 FIFO(7)
All times are GMT -4. The time now is 04:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy