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
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
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
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
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
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
i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies
7. Linux
Hi,
What is the difference between Linux and Windows?
Thanks. (1 Reply)
Discussion started by: billcrosby
1 Replies
8. Linux
Hi,
What is the difference between Linux and Windows?
Thanks. (5 Replies)
Discussion started by: billcrosby
5 Replies
9. UNIX for Dummies Questions & Answers
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
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
PIPE(2) System Calls Manual PIPE(2)
NAME
pipe - create an interprocess communication channel
SYNOPSIS
#include <unistd.h>
int pipe(int fildes[2])
DESCRIPTION
The pipe system call creates an I/O mechanism called a pipe. The file descriptors returned can be used in read and write operations. When
the pipe is written using the descriptor fildes[1] up to PIPE_MAX bytes of data are buffered before the writing process is suspended. A
read using the descriptor fildes[0] will pick up the data.
PIPE_MAX equals 7168 under Minix, but note that most systems use 4096.
It is assumed that after the pipe has been set up, two (or more) cooperating processes (created by subsequent fork calls) will pass data
through the pipe with read and write calls.
The shell has a syntax to set up a linear array of processes connected by pipes.
Read calls on an empty pipe (no buffered data) with only one end (all write file descriptors closed) returns an end-of-file.
The signal SIGPIPE is generated if a write on a pipe with only one end is attempted.
RETURN VALUE
The function value zero is returned if the pipe was created; -1 if an error occurred.
ERRORS
The pipe call will fail if:
[EMFILE] Too many descriptors are active.
[ENFILE] The system file table is full.
[ENOSPC] The pipe file system (usually the root file system) has no free inodes.
[EFAULT] The fildes buffer is in an invalid area of the process's address space.
SEE ALSO
sh(1), read(2), write(2), fork(2).
NOTES
Writes may return ENOSPC errors if no pipe data can be buffered, because the pipe file system is full.
BUGS
Should more than PIPE_MAX bytes be necessary in any pipe among a loop of processes, deadlock will occur.
4th Berkeley Distribution August 26, 1985 PIPE(2)