There is a libuuid in linux, you may take a look at the file
~Addons/general/misc/guid.ijs

use shell cmds such as df, cp and mv for the other 3 file system cd calls

Вск, 08 Май 2011, John Baker писал(а):
> Greetings J'ugglers,
> 
> In the last week I have set up a Linux Ubuntu box and installed J 7.01 on
> it.  The JGTK version is very zippy in this environment and I am looking
> forward to porting JOD to Linux systems.
> 
> JOD is 99% J with a few key WINAPI calls.  I need to find Linux equivalents
> to the following WINAPI calls. I am new to Linux and unfamiliar with Linux
> APIs so if any of you could provide pointers I would appreciate it.
> 
> The calls I am looking to replace are:
> 
> NB. generates a GUID with dll call
> genguid=:'ole32.dll CoCreateGuid i *c'&cd
> 
> NB. returns free disk space
> 'kernel32 GetDiskFreeSpaceA i *c *i *i *i *i' cd y;(,0);(,0);(,0);(,0)
> 
> NB. Win32 procedure that copies files
> copyfile=:'kernel32 CopyFileA i *c *c i'&cd
> 
> NB. Win32 procedure that moves/renames files
> movefile=:'kernel32 MoveFileA i *c *c'&cd
> 
> -- 
> John D. Baker
> [email protected]
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to