[M3devel] unused/little used stuff in m3core/unix?

Jay K jay.krell at cornell.edu
Sun Apr 11 07:43:35 CEST 2010


Following are not used:

 


fchmod
fchown
getpagesize
sbrk
creat
isatty

 

That isn't necessarily all.


Some are used only in:

 


C:\dev2\cm3.2\m3-libs\libm3\src\os\POSIX
e.g.
  chdir
  getdtablesize
  execve

 


Some are used only in the unused m3-pkgtools directory or by cvsup.
 e.g. umask

 


These all traffic in pretty "plain" types (e.g. no structs, no time_t). So just keep them all?

 

 

Note of course, uses of these somewhat or significantly inhibit
porting to native Win32.

 

 

Account for somewhat arbirary Posix-specific code outside the cm3 tree

and err toward wrapping stuff that is easy?

 

 

Or push the idea that m3core/libm3 are a good (and safe) portability layer and only provide what they need, and

gradually move them towards C to reduce their needs?

 


 - Jay

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100411/af94869c/attachment-0001.html>


More information about the M3devel mailing list