Re: [osol-code] rm and cp return non zero value

2007-09-11 Thread mspaper
Thanks. I can try removing /dev/null and use truss. The manual copy of files succeeds(the paths are logged by the application and the same paths are used to do the manual copy). This message posted from opensolaris.org ___ opensolaris-code mailing l

Re: [osol-code] rm and cp return non zero value

2007-09-11 Thread Hugh McIntyre
The other option is to remove the "2>/dev/null" from the commands below, in which case there's a good chance you'll get an error message which may explain the exit status. As Dan says, truss can also help. The obvious possibilities are either that one of the directories don't exist or are unr

Re: [osol-code] rm and cp return non zero value

2007-09-11 Thread mspaper
Please see my previous post, I have corrected a typo. The return value is 1 (for rm and cp both) For rm the errno = 0, for cp the errno = 2 (I am not completely sure if this errno is associated with this system call as there are some other system calls called prior to this. Unable to capture the

Re: [osol-code] nop instruction generated by sun cc

2007-09-11 Thread Gavin Maltby
On 09/11/07 16:40, ?? TaoJie wrote: Dear all: there's no sun studio mailling list in opensolaris.org , i raise my problem here :) a simple piece of code, 2 nested while loops, and some if statements inside each while loop. i compiled this program in Solaris with s

Re: [osol-code] rm and cp return non zero value

2007-09-11 Thread Dan Mick
First, system returns either -1 for error, in which case, as is generally true, you need to look at errno to find the reason for the failure; otherwise it returns the exit code of the application. Second, it's often useful to use truss to diagnose errors like this: Try truss -t execve -a and

[osol-code] multiboot: panic: remapping unsupported in booter

2007-09-11 Thread Clay McClure
Howdy, Please pardon the trip down memory lane, but I'm running into a problem booting multiboot from non-pxegrub boot loaders and could use some help. When using gGPXE (the new Etherboot) to boot multiboot on a Sun X4200 M1, I get the following message: remapping page at 0x100 panic: remapp

Re: [osol-code] nop instruction generated by sun cc

2007-09-11 Thread 陶捷 TaoJie
no, it's intel P4 platform. that's why I feeled strange. and it's my fault, as Joerg memtioned, i forget to open the '-OX' option :( 2007/9/12, Garrett D'Amore <[EMAIL PROTECTED]>: > > Is this on SPARC? > > There is a branch delay on many RISC systems including SPARC, where the > instruction foll

Re: [osol-code] nop instruction generated by sun cc

2007-09-11 Thread Garrett D'Amore
Is this on SPARC? There is a branch delay on many RISC systems including SPARC, where the instruction following the branch is also executed. Usually the compiler can optimize away the nop, by putting some useful work in the branch delay slot. But sometimes, it is not possible to easily fill that

[osol-code] nop instruction generated by sun cc

2007-09-11 Thread 陶捷 TaoJie
Dear all: there's no sun studio mailling list in opensolaris.org, i raise my problem here :) a simple piece of code, 2 nested while loops, and some if statements inside each while loop. i compiled this program in Solaris with sun cc (sun studio 12) and gcc. and i compiled it in Debian with gcc

Re: [osol-code] rm and cp return non zero value

2007-09-11 Thread mspaper
I am sorry, there is a typo, the return value is 1 in both the cases. This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Re: [osol-code] librpcsvc missing lint library?

2007-09-11 Thread Peter Memishian
> > Lint libraries should not contain symbols NOT defined in their companion > > library. > > Which brings me full circle: > > How do I know which header files should be included? > > In the case of librpcsvc, is it simply everything under > /usr/include/librpcsvc? > > Is it only th

Re: [osol-code] rm and cp return non zero value

2007-09-11 Thread Paul Winder
See man system. "The invoker waits until the shell has completed, then returns the exit status of the shell in the format specified by waitpid(3C)" The man page says rc == -1 is exec() or vfork() failed. Print the errno to see why. To get the real return code, after the call t