From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Wed, 2 Oct 2002 04:39:02 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 333 ************************************************** Tuesday 01 October 2002 Number 333 ************************************************** Subjects for today 1 Aw: Re: Some news : andreas.buening at nexgo.de 2 Aw: Re: Some news : andreas.buening at nexgo.de **= Email 1 ==========================** Date: Wed, 2 Oct 2002 17:49:53 +0200 (CEST) From: andreas.buening at nexgo.de Subject: Aw: Re: Some news ----- Original Nachricht ---- Von: Stefan Neis An: "os2-unix at eyup.org" Datum: 25.09.02 18:55 Betreff: Re: Some news > On Wed, 25 Sep 2002, Andreas Buening wrote: > > > posix_spawn or fork() and the new gettext > > requires one of them, so I've implemented posix_spawn. > > That's the first time I hear something about posix_spawn. > What's the difference between posix_spawn and "normal" spawn? Unfortunately, I don't have a description of what these functions are doing. It's a quite new standard, google can't find anything about it (look at www.opengroups.org? for some infos). How it basically works: You initialize a specific struct that contains some "to do" flags, i.e. which file descriptors have to be opened or closed for the child process, which signals have to be set and so on. Then you start the child process with posix_spawn() or posix_spawnp() (with or without using PATH), and that's it. The glibc implementation used (v)fork(), of course, so I rewrote the "real" spawn function to use spawnve(P_NOWAIT,...). (But I cannot guarantee that it's bug free :-) ). > BTW, is there a way to efficiently start a new process from a > shared/object, DLL under OS/2? Under Unix I can use fork, under > Windows I can spawn "rundll32 my_dll,startup_function_of_child" Never heard of it. I use spawn...() for this purpose. > but I have no idea what to do under OS/2 (well, fork will work for > my purposes, but it's not exactly efficient under OS/2 ...) bye, Andreas ----------------------------------------------------------------------- Ihr persönlicher Fünfkampf: Fünf Filme Ihrer Wahl an fünf Tagen für 4,99 Euro! Vom 3. bis 7. Oktober aus mehr als 1.000 Filmen wählen! Sie erhalten einzelne Filme zum Sonderpreis von EUR 1,99! http://www.arcor.de/home/redir.php/email.fuenfk ----------------------------------------------------------------------- **= Email 2 ==========================** Date: Wed, 2 Oct 2002 17:52:58 +0200 (CEST) From: andreas.buening at nexgo.de Subject: Aw: Re: Some news ----- Original Nachricht ---- Von: Franz Bakan An: "os2-unix at eyup.org" Datum: 30.09.02 00:53 Betreff: Re: Some news > On Wed, 25 Sep 2002 11:29:31 +0200, Andreas Buening wrote: > > ... > >gettext 0.11.2 beta > >Uses iconv2 (statically linked) and libunixos2. It's more a proof > >of concept than a fully featured package. :-) [error messages] Thanks. I'll have a look at it as soon I have some time. bye, Andreas ----------------------------------------------------------------------- Ihr persönlicher Fünfkampf: Fünf Filme Ihrer Wahl an fünf Tagen für 4,99 Euro! Vom 3. bis 7. Oktober aus mehr als 1.000 Filmen wählen! Sie erhalten einzelne Filme zum Sonderpreis von EUR 1,99! http://www.arcor.de/home/redir.php/email.fuenfk -----------------------------------------------------------------------