William James writes:
> On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote:
> > On Linux, I don't think you can do it. This isn't a Linux-related
> > list, though, so if you're trying to port from Solaris to Linux
> > (why?), perhaps you'd get better answers on a different list.
>
> I wish to write an application which is portable between Solaris and
> Linux.
A couple of possible ideas:
- stick to just the common interfaces, and avoid those that are
either Solaris-specific or Linux-specific.
- isolate the platform-specific bits in separate files or via
ifdefs.
As I said, I don't think you'll find a forkall() replacement on Linux.
As best I understand it, they have fork1() semantics only.
I don't think it's really a goal for most Solaris developers to make
porting Solaris applications to Linux "easy." Going the other
direction is more interesting.
> Could you point me to a list which is appropriate for my
> questions?
No idea. Perhaps comp.unix.programmer?
--
James Carlson, Solaris Networking <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code