site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=7dTPK1ldRdJwYfstRVBg3QQ8RwL75ExFo2onHoMT5Rc=; b=GHRSMiNIZ10DCwjyKFfYnZiInyr+eztaD/FuN4Byx64IwTtqSVK+b2SMQngeSsJJzC 5T9/62upuN5A4PITRljQMi5+Rxe9/OLdLLoueM2OvlmwBwyjCNFGqxuB6BvtD5Kgimuk c3xhYgbeVvQdQzR8qu6JrNkS8W0UlIPnjnzpc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=SPRCDo1kA2xD0UHgk432X5HNMvZNgSy7sf8hAXYjZ7JFhAZRo0EN/3hpIZ98oBDVUA ppLp0N12zvqKHORZAa2b8IpPWJzFzPaNLD+/wnEwLaFFAPDNHqJ1u8ooxpTD7OjhNo/6 sNOR8XWGrClkD0AHxl+fxuuvLdERPBQoFJwP8= I have put 2 dynamic libraries in /usr/lib/ folder and trying to use them using dlopen API. It is working fine with PPC 10.4.9 but I am trying now on 10.5.4 Intel. I do knot know what is happening. It shows: dyld: Library not loaded: /Developer/Library/PrivateFrameworks/ZeroLink.framework/Versions/A/ZeroLink Referenced from: /myProject/myApp Reason: image not found Trace/BPT trap Please suggest me. Thanks in advance. Regards rksinghal On Mon, Dec 1, 2008 at 10:11 AM, Rakesh Singhal <rakesh.singhal@gmail.com> wrote:
The dylib will be installed in /usr/lib/ so I can give path "/usr/lib/libMyDylib.dylib". Yes it is a good idea. Currently both are in different folders and I am giving "./" path in both (dylib and app) and generating same key. I hope it would work. Thanks a lot.
Regards rksinghal
On Mon, Dec 1, 2008 at 9:48 AM, Luke Hiesterman <luketheh@apple.com> wrote:
How about the path of the library? It must be in some known location to be loaded at runtime.
Luke
Sent from my iPhone.
On Nov 30, 2008, at 8:07 PM, Rakesh Singhal <rakesh.singhal@gmail.com> wrote:
Yes that is my query what path to choose to make sure that it would generate same key in both dylib and app.
regards
On Mon, Dec 1, 2008 at 9:16 AM, Luke Hiesterman <luketheh@apple.com> wrote:
If you use the same path and same id for ftok on both processes then you will get the same key for use with semget. This is precisely the purpose of ftok.
Luke
Sent from my iPhone.
On Nov 30, 2008, at 7:15 PM, Rakesh Singhal <rakesh.singhal@gmail.com> wrote:
Thanks. The problem I have to give file path to generate key. How will I ensure that the path I am giving will work always to generate the same key? I have one application and another is dynamic library and I want to generate the same key in both to use.
Regards rksinghal
On Mon, Dec 1, 2008 at 12:56 AM, Luke Hiesterman <luketheh@apple.com> wrote:
Why exactly do you want to avoid ftok? It's a good way to generate shared keys.
It's always possible to generate an integer key some other way yourself and then you just have to figure out how to communicate it across processes. You could write it to a file or send it over a socket.
Luke
Sent from my iPhone.
On Nov 30, 2008, at 3:25 AM, Rakesh Singhal <rakesh.singhal@gmail.com> wrote:
> Is it possible to use semget() without using ftok() for IPC > communication? > > Please suggest me. > > Regards > rksinghal > > On Fri, Nov 28, 2008 at 9:54 AM, Rakesh Singhal > <rakesh.singhal@gmail.com> wrote: >> >> Thanks. Now I am using following set of APIs: >> >> ftok() >> semget() >> semop() >> semctl() >> >> It is working till now :) >> >> Regards >> rksinghal >> >> On Thu, Nov 27, 2008 at 9:49 AM, Terry Lambert <tlambert@apple.com> >> wrote: >>> >>> On Nov 26, 2008, at 7:31 PM, Rakesh Singhal wrote: >>>> >>>> Hi all >>>> >>>> I tried to use sem_init() but I think it is not there to use. It is >>>> declared in semaphore.h but when I do man sem_init() then it gives >>>> the >>>> message "No manual entry for sem_init". >>>> >>>> Now, I am using sem_open(). I think it is right API to create >>>> unique >>>> semaphore between multi-processes. But creating it in one process >>>> if >>>> I >>>> try to create in another process, the value of semaphore is not >>>> same. >>>> I am using same name in both process(1st argument of sem_open()). >>>> >>>> Please suggest to create semaphore (cross-processes). >>> >>> POSIX unnamed semaphores are not supported. >>> >>> Use either POSIX named semaphores, or use System V semaphores: >>> >>> man sem_open >>> man semget >>> >>> -- Terry >>> >>
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Rakesh Singhal