Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - I would like to tell some impression via porting from NetBSD to QNX6: (1 Item)
   
I would like to tell some impression via porting from NetBSD to QNX6  
Dear  Eric and Boudreau:



I would like to tell some impression via porting from NetBSD to QNX6.

It need to prepare guide line for porting task of the above.


It made by twice categories, one hand as from Linux with POSIX,
  2nd hand as BSD(NetBSD, OpenBSD, FreeBSD).


The QNX6 is one of reliable  operating systems.

At the above tasks more need to 
carefully touch that spoil reliability  for target systems.

In this case, 

We really use one of commands, and little bit thing compare other large porting system.


But probably some users firms need to refer the policy described document,
such as Guide books(Of course pdf),



finally, We hope many users receive the benefit of relation-ability of UNIX.



Regards,
Kengo Kinoshita

----- Original Message -----


>
>Don't worry about it.  Your previous define to nothing
>is fine.  setprogname() in libnbutil:
>
>#include <nbutil.h>
>
>void
>setprogname(const char *name)
>{
> /* Nothing as in NetBSD if called from anytime other than startup */
>  return;
>}
>
>
>-seanb
>
>On Sun, Aug 08, 2010 at 06:32:12AM -0400, Kengo Kinoshita wrote:
>> Dear  Eric and Boudreau:
>> 
>> 
>> 
>> We Just gotten related information about setprogname and getprogname.
>> 
>> 
>> And We change implement style for it.
>> 
>> 
>> Please see below codes and May We receive your reply of comment.
>> 
>> 
>> Regards,
>> Kengo Kinoshita.
>> 
>> ________________________________________________
>> 
>> extern char *__progname;
>> 
>> void setprogname(const char *progname)
>> {
>>  __progname = strrchr(progname, '/');
>>  if (__progname == NULL)
>>   __progname = progname;
>>  else
>>   __progname++;
>> }
>> 
>> 
>>     or
>> 
>> 
>> #include <libgen.h>
>> 
>> void setprogname(const char *progname)
>> {
>>  basename( progname );
>> }
>> 
>> 
>> _________________________________
>> extern char *__progname;
>> 
>> char *getprogname(void)
>> {
>>  return __progname;
>> }
>> 
>>  
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> General
>> http://community.qnx.com/sf/go/post62208
>> 
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post62209
>
>