[osol-code] What code construct would create a "Relative relocation record

2007-02-21 Thread Rajesh Paul
Hi, I was trying to put in some code in a file . Make it a shared object (.so) with PIC and am trying to generate some Relative Relocations (R_XXX_RELATIVE) type. For verifying the same, I take the Elf Dump of the generated object (.so) file using 'elfdump'. Can any one please suggest me a C

[osol-code] [Run-Time Relocations]: What code construct would create a "Relative relocation" record

2007-02-21 Thread Rajesh Paul
Hi, I was trying to put in some code in a file . Make it a shared object (.so) with PIC and am trying to generate some Relative Relocations (R_XXX_RELATIVE) type. For verifying the same, I take the Elf Dump of the generated object (.so) file using 'elfdump'. Can you please suggest me a C code con

Re: [osol-code] Any problems with providing only shared librarys linked with libpthread.so

2007-02-21 Thread Frank Hofmann
On Thu, 22 Feb 2007, Tsutomu Enokida wrote: I wanted to check using a simple program that it is possible to call thread hot programs from nonthreaded programs using dlopen. The Sub-program needs to be linked with libpthread.so, but don't need to be compiled with -D_POSIX_C_SOURCE=. Is my und

Re: [osol-code] Address Space Primary Context

2007-02-21 Thread Bart Smaalders
Haris wrote: Hi - Concerning the MMU's primary context register. I know that this represents the active context on the processor and is used to find mappings in the TLB. My understanding is that context should be different for each OS process. However, in Ultrasparc for instance, the context

Re: [osol-code] Any problems with providing only shared librarys linked with libpthread.so

2007-02-21 Thread Tsutomu Enokida
I wanted to check using a simple program that it is possible to call thread hot programs from nonthreaded programs using dlopen. The Sub-program needs to be linked with libpthread.so, but don't need to be compiled with -D_POSIX_C_SOURCE=. Is my understanding right ? Sent: Wednesday, Februar

[osol-code] Address Space Primary Context

2007-02-21 Thread Haris
Hi - Concerning the MMU's primary context register. I know that this represents the active context on the processor and is used to find mappings in the TLB. My understanding is that context should be different for each OS process. However, in Ultrasparc for instance, the context is 13bits which

Re: [osol-code] Round two: ((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread Roland Mainz
[EMAIL PROTECTED] wrote: > > >> For good reasons, you're > >> putting the libraries with the other libraries and at some point, it's > >> not clear if keeping the files which don't really serve a purpose as > >> documentation (at least for OpenSolaris.) Anyway, this is something > >> for you to w

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Adam Leventhal
On Wed, Feb 21, 2007 at 09:44:11AM -0500, James Carlson wrote: > > This is bad. Is there no function to define that signals should be > > send to all threads for async signals? > > You don't (and can't) send signals to threads. You send them to > processes. Mike's already made this point, but it

Re: [osol-code] Chip/Core/Thread detection.

2007-02-21 Thread Mikhail Popov
> > Yes, UltraSPARC-IV as well as "OPL" (Multi-core in the first instance, > multithreaded/multi-core in the second) > "OPL" is a platfrom code name. The CPU name is SPARC64-VI and it has two cores with two threads each or 4 cpuid per chip (per die). ___

Re: [ksh93-integration-discuss] Re: [osol-code] Round two: ((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread Glenn Fowler
On Wed, 21 Feb 2007 15:04:57 -0500 James Carlson wrote: > I think that's still missing the point. > This project is integrating ksh93 into ON. Once that's done, there's > no way that the ON source will be used to build a binary for some > other release. Having Solaris-versioning-dependent objec

Re: [osol-code] codereview requested: remove I2O

2007-02-21 Thread Mark J. Nelson
On Tue, 20 Feb 2007, Dan Price wrote: Hi folks, I'd like to start codereview for the following wad: PSARC/2007/045 I2O EOL and EOF 4863632 Hey Hey! Ho Ho! I2O Has Got to Go! Codereview materials and pointers to the ARC case are posted at: http://cr.grommit.com/~dp/i2o-del All relevant

Re: [osol-code] Limiting the number of threads/LWPs per process/process group...

2007-02-21 Thread Dan Price
On Wed 21 Feb 2007 at 11:15AM, Stephen Hahn wrote: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2007-02-21 10:53]: > > > > > The way we were hoping to do this was to have "wildcard" projects, so > > > that each user would have a project synthesized automatically upon > > > login. Then all the pr

Re: [ksh93-integration-discuss] Re: [osol-code] Round two:((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread Roland Mainz
James Carlson wrote: > Glenn Fowler writes: [snip] > > now there may be some narrow path of cc/ccs flags/executables && uname -r > > matching > > that I could set up to make compatible binaries for all solaris > > but even then am I crippling later releases for the sake of compatibility > > with

Re: [ksh93-integration-discuss] Re: [osol-code] Round two:((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread Roland Mainz
James Carlson wrote: > Glenn Fowler writes: > > > However, if the ATT code already expects this to be "11" for a SunOS > > > "5.11" version, then I'm fine with what you have now. If you could > > > pass upstream the feedback, though, that this could break if the minor > > > part ever reverts to "0

Re: [ksh93-integration-discuss] Re: [osol-code] Round two: ((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread James Carlson
Glenn Fowler writes: > ksh93s built on > SunOS hostname 5.8 Generic_108528-26 sun4u sparc SUNW,Sun-Fire-15000 > and run on > SunOS hostname 5.6 Generic_105181-33 sun4u sparc SUNW,Ultra-2 That cannot be supported. Building on Solaris 2.6 (5.6) and running on Solaris 8, though, is supported. You m

Re: [osol-code] Limiting the number of threads/LWPs per process/process group...

2007-02-21 Thread Stephen Hahn
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2007-02-21 10:53]: > > > The way we were hoping to do this was to have "wildcard" projects, so > > that each user would have a project synthesized automatically upon > > login. Then all the project controls (and the cascaded task controls) > > apply pe

Re: [osol-code] Limiting the number of threads/LWPs per process/process group...

2007-02-21 Thread Casper . Dik
> The way we were hoping to do this was to have "wildcard" projects, so > that each user would have a project synthesized automatically upon > login. Then all the project controls (and the cascaded task controls) > apply per-user. This is "future work" or "work we hoped to do at one point bu

[osol-code] How to detach driver from selective instances of qlc node?

2007-02-21 Thread S Sammandam
Hi, If the qlc driver has instances 0 , 1 and 2 attached, how do I force driver detach from, let's say instance 2 alone and give that instance to a different driver let's say mayaqlc, which puts that device in target mode. I have been experimenting with the following and it doesn't detach from t

Re: [osol-code] Limiting the number of threads/LWPs per process/process group...

2007-02-21 Thread Stephen Hahn
* Roland Mainz <[EMAIL PROTECTED]> [2007-02-20 18:44]: > Stephen Hahn wrote: > > I would really rather not see the setrlimit(2) emulation in the > > resource control framework extended. > > Why ? Because the (soft, hard) semantic in the setrlimit emulation code is... unpleasant to map to

Re: [osol-code] Limiting the number of threads/LWPs per process/process group...

2007-02-21 Thread Stephen Hahn
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2007-02-21 01:19]: > > >> I would really rather not see the setrlimit(2) emulation in the > >> resource control framework extended. > > > >Why ? > > Setrlimit() suffers from a few restrictions: > > - it's per process > - it can only do a s

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Joerg Schilling
James Carlson <[EMAIL PROTECTED]> wrote: > William James writes: > > On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: > > > William James writes: > > > > > There's no race. For async signals, system just picks one thread for > > > > > delivery. > > > > > > > > This is bad. Is there no functio

Re: [ksh93-integration-discuss] Re: [osol-code] Round two: ((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread Glenn Fowler
On Wed, 21 Feb 2007 10:53:14 -0500 James Carlson wrote: > Glenn Fowler writes: > > On Wed, 21 Feb 2007 10:05:10 -0500 James Carlson wrote: > > > Binary incompatibility for _what_? > > > > at time (t) I post solaris sparc binaries for say, ksh > > at time (t+1) the solaris implementation relase ch

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Garrett D'Amore
James Carlson wrote: > Garrett D'Amore writes: > >> Hmm... checkout pthread_kill(3c) you can deliver a signal to a >> specific thread. But as far as I know you can -only- do this from >> inside the process containing the thread to be signaled. >> > > Yes, I was mixing two things. > >

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread James Carlson
Garrett D'Amore writes: > Hmm... checkout pthread_kill(3c) you can deliver a signal to a > specific thread. But as far as I know you can -only- do this from > inside the process containing the thread to be signaled. Yes, I was mixing two things. You can't send a signal to a specific thread

Re: [osol-code] Which thread receives signals?

2007-02-21 Thread Michael Shapiro
> Which thread receives signals in a application with multiple threads? > Only the running one, the main thread or is this picked randomly? Here's the deal: There are several flavors of signals. I'll suggest a canonical terminology by describing them. Synchronous: A signal that is the result of

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Garrett D'Amore
James Carlson wrote: > > > There are at least two problems with that latter concept. First, as > previously explained, there's no way to send a signal to a thread. > You can send it to a _process_, but not to a _thread_. Threads don't > have separate PIDs. (At least not on any POSIX-conforming s

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread John Levon
On Wed, Feb 21, 2007 at 03:29:51PM +, Frank Hofmann wrote: > I've recently run across this annoucement: > > http://openvz.org/news/announcements/new-features-20070215 > > which notes "live migration" as a new feature. Now since OpenVZ/Virtuozzo > isn't a hypervisor but a single-kernel thing

Re: [ksh93-integration-discuss] Re: [osol-code] Round two: ((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread James Carlson
Glenn Fowler writes: > On Wed, 21 Feb 2007 10:05:10 -0500 James Carlson wrote: > > Binary incompatibility for _what_? > > at time (t) I post solaris sparc binaries for say, ksh > at time (t+1) the solaris implementation relase changes > and posted binaries no longer work for the new release > wors

Re: [ksh93-integration-discuss] Re: [osol-code] Round two: ((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread Glenn Fowler
On Wed, 21 Feb 2007 10:05:10 -0500 James Carlson wrote: > Glenn Fowler writes: > > > However, if the ATT code already expects this to be "11" for a SunOS > > > "5.11" version, then I'm fine with what you have now. If you could > > > pass upstream the feedback, though, that this could break if the

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread Frank Hofmann
On Wed, 21 Feb 2007, James Carlson wrote: William James writes: A couple of possible ideas: - stick to just the common interfaces, and avoid those that are either Solaris-specific or Linux-specific. How can I simulate forkall behaviour in my application? You probably can't do it on L

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread Frank Hofmann
On Wed, 21 Feb 2007, William James wrote: On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: William James writes: > On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: > > William James writes: > > > Does Linux or POSIX specify a function which works like Solaris forkall? > > > > No. > >

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Frank Hofmann
On Wed, 21 Feb 2007, William James wrote: One of 'em. It's not documented. Only one of them or any number of them? I sense a misunderstanding there. UNIX signals are nothing like the messaging mechanism that e.g. the GTK+ and QT libraries use and call 'signals'. A "signalable messaging

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Frank Hofmann
On Wed, 21 Feb 2007, William James wrote: On 2/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> There's no race. For async signals, system just picks one thread for >> delivery. > >This is bad. Is there no function to define that signals should be >send to all threads for async signals?

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Casper . Dik
>I mean, just emit some sort of "internal message" (using thread >synchronization methods) from within your signal handler on e.g. Ctrl+C >and thereby rely it into the usual "exit processing" your application must >have anyway ? Note that you can't do anything complicated from a signal handler

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Casper . Dik
>On 2/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >> There's no race. For async signals, system just picks one thread for >> >> delivery. >> > >> >This is bad. Is there no function to define that signals should be >> >send to all threads for async signals? >> >> Why? In what circum

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread William James
On 2/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> There's no race. For async signals, system just picks one thread for >> delivery. > >This is bad. Is there no function to define that signals should be >send to all threads for async signals? Why? In what circumstances do all threads

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Casper . Dik
>> There's no race. For async signals, system just picks one thread for >> delivery. > >This is bad. Is there no function to define that signals should be >send to all threads for async signals? Why? In what circumstances do all threads need to handle an asynchronous signal? Casper ___

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread James Carlson
William James writes: > > ... and if that's what you are indeed doing, then consider posix_spawn > > instead. It's already MT-Safe, standardized, and available on Linux. > > Does posix_spawn clone all running threads? No. The definition of posix_spawn is that a new process is created that conta

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread James Carlson
William James writes: > > A couple of possible ideas: > > > > - stick to just the common interfaces, and avoid those that are > > either Solaris-specific or Linux-specific. > > How can I simulate forkall behaviour in my application? You probably can't do it on Linux, which is a good sign th

Re: [ksh93-integration-discuss] Re: [osol-code] Round two: ((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread James Carlson
Glenn Fowler writes: > > However, if the ATT code already expects this to be "11" for a SunOS > > "5.11" version, then I'm fine with what you have now. If you could > > pass upstream the feedback, though, that this could break if the minor > > part ever reverts to "0", that would be appreciated. >

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread James Carlson
William James writes: > > One of 'em. It's not documented. > > Only one of them or any number of them? Just one will actually go into the signal handler. > > You can control which threads can process signals, though. Just set > > the signal mask. > > You mean I can turn off signal handling in

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread William James
On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: Frank Hofmann writes: > I.e. as far as practial applicability goes, if you fork() in a MT process, > you only fork in order to exec. Don't even think of doing anything else > but exec in the child after you forked. It's not portable programming

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread William James
On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: 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 ge

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread James Carlson
Frank Hofmann writes: > I.e. as far as practial applicability goes, if you fork() in a MT process, > you only fork in order to exec. Don't even think of doing anything else > but exec in the child after you forked. It's not portable programming. ... and if that's what you are indeed doing, then

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Casper . Dik
>So all threads call the signal callback at the same time? Can I use >pthread_mutex_lock() in the signal handler to prevent a race >condition? No, at most one signal handler is called and only a (random) thread interested in receiving the signal will get it. Casper _

Re: [ksh93-integration-discuss] Re: [osol-code] Round two: ((pre-)pre-review) ksh93-integrationwebrev2007-02-02

2007-02-21 Thread Glenn Fowler
On Tue, 20 Feb 2007 23:26:33 -0800 (PST) [EMAIL PROTECTED] wrote: > >> I guess I'm wondering though what sort of release values are used with > >> other systems? Could it instead be based on something like (major # * > >> 100) + (minor #?) > > > > In any case this would AFAIK require major change

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread Frank Hofmann
On Wed, 21 Feb 2007, William James wrote: On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: William James writes: > On 2/21/07, Vincenzo Sciarra <[EMAIL PROTECTED]> wrote: > > All threads receive the signal. Better, the main thread receive the signal but it shares the signal with other thre

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread William James
On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: William James writes: > On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: > > William James writes: > > > > There's no race. For async signals, system just picks one thread for > > > > delivery. > > > > > > This is bad. Is there no function

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread James Carlson
William James writes: > On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: > > William James writes: > > > > There's no race. For async signals, system just picks one thread for > > > > delivery. > > > > > > This is bad. Is there no function to define that signals should be > > > send to all thr

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread James Carlson
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 wr

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread William James
On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: William James writes: > > There's no race. For async signals, system just picks one thread for > > delivery. > > This is bad. Is there no function to define that signals should be > send to all threads for async signals? You don't (and can't)

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread James Carlson
William James writes: > > There's no race. For async signals, system just picks one thread for > > delivery. > > This is bad. Is there no function to define that signals should be > send to all threads for async signals? You don't (and can't) send signals to threads. You send them to processes.

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread William James
On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: William James writes: > On 2/21/07, Vincenzo Sciarra <[EMAIL PROTECTED]> wrote: > > All threads receive the signal. Better, the main thread receive the signal but it shares the signal with other threads. > > > > > > > > Dott. Vincenzo Sciarra

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread William James
On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: William James writes: > On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: > > William James writes: > > > Does Linux or POSIX specify a function which works like Solaris forkall? > > > > No. > > How can I fork all running threads in an appli

Re: [osol-code] fork() in the Solaris threads semantic

2007-02-21 Thread William James
On 2/21/07, Frank Hofmann <[EMAIL PROTECTED]> wrote: On Wed, 21 Feb 2007, William James wrote: [ ... ] > Does forkall() clone all running threads? Solaris manpages are just wonderful :) fork(2) says: [ ... ] Threads A call to forkall() replicates in the child process all of t

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread James Carlson
William James writes: > On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: > > William James writes: > > > Does Linux or POSIX specify a function which works like Solaris forkall? > > > > No. > > How can I fork all running threads in an application on Linux or other > POSIX operating systems? O

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread William James
On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote: William James writes: > Does Linux or POSIX specify a function which works like Solaris forkall? No. How can I fork all running threads in an application on Linux or other POSIX operating systems? Cheers, William -- @,,@ William James

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread James Carlson
William James writes: > On 2/21/07, Vincenzo Sciarra <[EMAIL PROTECTED]> wrote: > > All threads receive the signal. Better, the main thread receive the signal > > but it shares the signal with other threads. > > > > > > > > Dott. Vincenzo Sciarra > > So all threads call the signal callback at th

Re: [osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread James Carlson
William James writes: > Does Linux or POSIX specify a function which works like Solaris forkall? No. Perhaps this will help a bit: http://developers.sun.com/solaris/articles/solaris_linux_app.html -- James Carlson, Solaris Networking <[EMAIL PROTECTED]> Sun Microsystems / 1 Netw

Re: [osol-code] fork() in the Solaris threads semantic

2007-02-21 Thread Frank Hofmann
On Wed, 21 Feb 2007, William James wrote: [ ... ] Does forkall() clone all running threads? Solaris manpages are just wonderful :) fork(2) says: [ ... ] Threads A call to forkall() replicates in the child process all of the threads (see thr_create(3C) and pthread_create(3C))

[osol-code] Linux or POSIX version of Solaris forkall?

2007-02-21 Thread William James
Does Linux or POSIX specify a function which works like Solaris forkall? Cheers, William -- @,,@ William James (\--/) [EMAIL PROTECTED] (.>__<.) GNU/Solaris hacker ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.o

Re: [osol-code] Re: Which thread receives signals?

2007-02-21 Thread William James
On 2/21/07, Vincenzo Sciarra <[EMAIL PROTECTED]> wrote: All threads receive the signal. Better, the main thread receive the signal but it shares the signal with other threads. Dott. Vincenzo Sciarra So all threads call the signal callback at the same time? Can I use pthread_mutex_lock() in

[osol-code] Re: Which thread receives signals?

2007-02-21 Thread Vincenzo Sciarra
All threads receive the signal. Better, the main thread receive the signal but it shares the signal with other threads. Dott. Vincenzo Sciarra This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.

[osol-code] Which thread receives signals?

2007-02-21 Thread William James
Which thread receives signals in a application with multiple threads? Only the running one, the main thread or is this picked randomly? Cheers, William -- @,,@ William James (\--/) [EMAIL PROTECTED] (.>__<.) GNU/Solaris hacker ___ opensolaris-c

Re: [osol-code] fork() in the Solaris threads semantic

2007-02-21 Thread William James
On 2/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >Does forkall() clone all running threads? Is it really to much to ask to read the manual page? (Yes) Sorry but I am now reinstalling Solaris and do not have access to the manual paghne. Cheers, William -- @,,@ William James (\

Re: [osol-code] fork() in the Solaris threads semantic

2007-02-21 Thread Casper . Dik
>Does forkall() clone all running threads? Is it really to much to ask to read the manual page? (Yes) Casper ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Re: [osol-code] fork() in the Solaris threads semantic

2007-02-21 Thread William James
On 2/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >The fork() in the program using the Solaris threads that is called >from the program using the POSIX thread run in the POSIX threads >semantic. >Can I run the fork() in the Solaris threads semantic on Solaris 9? Unclear; one reason why t

Re: [osol-code] fork() in the Solaris threads semantic

2007-02-21 Thread Casper . Dik
>The fork() in the program using the Solaris threads that is called >from the program using the POSIX thread run in the POSIX threads >semantic. >Can I run the fork() in the Solaris threads semantic on Solaris 9? Unclear; one reason why the Solaris thread semantics were changed is simple, it is u

[osol-code] fork() in the Solaris threads semantic

2007-02-21 Thread Enokida
The fork() in the program using the Solaris threads that is called from the program using the POSIX thread run in the POSIX threads semantic. Can I run the fork() in the Solaris threads semantic on Solaris 9? The following is how to compile and link: cc fork.c -G -o libfork.so -D_REENTRANT -lthre

Re: [osol-code] Any problems with providing only shared librarys linked with libpthread.so

2007-02-21 Thread Casper . Dik
>Do programs work properly as long as the programs use API in libpthread.so, >libthread.so or libc.so? Programs work properly as long as they: - test return codes and handle failures appropriately - do not link library against libthread/libpthread - do not attempt to crea

Re: [osol-code] Any problems with providing only shared librarys linked with libpthread.so

2007-02-21 Thread Frank Hofmann
On Wed, 21 Feb 2007, Tsutomu Enokida wrote: The following programs work well. Is there any conditions? Non-trivial testcases. Your 'libsub1.so' doesn't _DEPEND_ on being compiled -D_POSIX_C_SOURCE=..., it makes no use of any threading facilities whatsoever. What does the code below prove/d

Re: [osol-code] Any problems with providing only shared librarys linked with libpthread.so

2007-02-21 Thread Tsutomu Enokida
Do programs work properly as long as the programs use API in libpthread.so, libthread.so or libc.so? Thank you, Enokdia Sent: Wednesday, February 21, 2007 8:09 PM Subject: Re: [osol-code] Any problems with providing only shared librarys linked with libpthread.so The following programs wo

Re: [osol-code] Any problems with providing only shared librarys linked with libpthread.so

2007-02-21 Thread Casper . Dik
>The following programs work well. Is there any conditions? The linking works just fine and loading the library may also work just fine. But more complex usage can easily run into the dreaded "_rmutex_unlock: rmutex not held" errors Casper ___ openso

Re: [osol-code] Any problems with providing only shared librarys linked with libpthread.so

2007-02-21 Thread Tsutomu Enokida
The following programs work well. Is there any conditions? cc -xCC -G -D_POSIX_C_SOURCE=199506L sub1.c -o libsub1.so -lpthread cc dltest.c -ldl -- dltest.c main() { void * hd1; int (*fptr1)(void); if(!(hd1=dlopen("libsub1.so",RTLD_NOW))) printf("dlopen %s\n",dle

Re: [osol-code] Limiting the number of threads/LWPs per process/process group...

2007-02-21 Thread Joerg Schilling
Roland Mainz <[EMAIL PROTECTED]> wrote: > > Perhaps an OpenSolaris-specific > > function in ksh93 to call setrctl(2) directly would be more > > appropriate. (Plus we don't have process-level controls for some of > > these resources today.) > > There are two problems: > 1. "ulimit" works p

Re: Minor legal questions about usr/src/lib/libshell/common/data/builtins.c ... / was: Re: [ksh93-integration-discuss] Re: [osol-code] Round two:((pre-)pre-review) ksh93-integrationwebrev 2007-02-02

2007-02-21 Thread Joerg Schilling
Alan Coopersmith <[EMAIL PROTECTED]> wrote: > In the open source world, many projects follow the FSF rule of thumb, > which states changes fewer than 10-15 lines of code are not significant > enough to earn copyright protection - you can see this in the FSF > Contributor Agreement docs at: >ht

[osol-code] Re: PMI patch for OpenSSH

2007-02-21 Thread Vincenzo Sciarra
I have just published on http://nutmay.sourceforge.net a Proof of Concept document to fix what I'm doing. Thanks This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.or

Re: [osol-code] Limiting the number of threads/LWPs per process/process group...

2007-02-21 Thread Casper . Dik
>> I would really rather not see the setrlimit(2) emulation in the >> resource control framework extended. > >Why ? Setrlimit() suffers from a few restrictions: - it's per process - it can only do a soft and hard limit. Per process limits have a drawback in that the actual

Re: Minor legal questions about usr/src/lib/libshell/common/data/builtins.c ... / was: Re: [ksh93-integration-discuss] Re: [osol-code] Round two:((pre-)pre-review) ksh93-integrationwebrev 2007-02-02

2007-02-21 Thread Alan Burlison
[EMAIL PROTECTED] wrote: Actually, I don't think that's what needs to be asked. What I suggested asking Bonnie about was whether or not this change requires a Sun copyright to be added. I don't believe adding a CDDL block to the ATT code is appropriate but for ON, we typically add a Sun copyri