porting guidance needed for HP MPE/iX OS

From: Date: Fri, 18 Aug 2000 03:07:47 +0000
Subject: porting guidance needed for HP MPE/iX OS
Groups: php.dev 
Request: Send a blank email to php-dev+get-29371@lists.php.net to get a copy of this message
Hi php-dev, I work in the HP CSY MPE/iX OS R&D lab where a big part of what I do is porting opensource software packages to the MPE/iX OS. I also port various packages such as PHP in my free time where I feel these packages add significant value to the MPE OS. Earlier this year I successfully ported PHP 3.0, but since I never submitted my diffs back to php-dev, I surely deserve to burn in Hell. ;-) Now I'm making amends by porting PHP 4.0.1pl2. Most of the effort involved porting GNU libtool which hasn't really been used on MPE prior to my working on PHP4. Now I'm down to the final 3 libphp4.so unresolved external references for functions the MPE kernel lacks. This time I want to be sure to submit my diffs back to php-dev, so I'd like to get some advice on how best to complete this port in a way that will make it easy for you to absorb my diffs. So on with my questions... The final unresolved externals are: 1) fsync (I have a non-kernel implementation of this) 2) ftruncate (I have a non-kernel implementation for this) 3) realpath (I lack an implementation for this) First question -- I see you have your own implementation of realpath in main/php_realpath.c in the form of php_realpath(). Instead of having other parts of your code call realpath(), why not call your own php_realpath()? Should I take this approach in my port? Second question -- I need to add some #ifndef HAVE_xxxxx source for fsync() & ftruncate(). Where do you want me to do this? Inside an existing source file, or do you want me to create new generic files, i.e. need_fsync.c & need_ftruncate.c, or how about I create an mpe/ subdirectory to sit alongside win32/? Please enlighten me. My goal is to have this port completed by the start of the annual HPWorld convention on Sept 11th so I can make an announcement at the SIGWEB meeting. I look forward to your advice and the MPE community looks forward to being able to use PHP4. - Mark Bixby home: mark@bixby.org web: http://www.bixby.org/mark/ (lists most of my major ports) work: mark_bixby@hp.com

« previous php.dev (#29371) next »