Hey,
Just wondering if GPC supports standard unix things like crypt()
I've found GPC to be great for doing little utils under solaris, and the ability to use stuff like crypt() and chown() would be very nice.
Thanks
Jamie
jamie wrote:
Just wondering if GPC supports standard unix things like crypt()
I've found GPC to be great for doing little utils under solaris, and the ability to use stuff like crypt() and chown() would be very nice.
I've put in ChOwn now (will be uploaded soon). Other things like ChMod have already been there for some time, but probably not every function that exists. If you need anything else, let me know.
I won't put in crypt, however. First, it's not POSIX, AFAIK (my manpage says CONFORMING TO SVID, X/OPEN, BSD 4.3) -- but that wouldn't be a real problem as we could do an autoconf check like we do for other functions. But given the various laws of cryptography in different countries, I don't want to "endanger" GPC in any way (though I'm not sure if including a routine that merely calls a cryptographic library routine would be problematic, but I don't want to take any risk).
That said, I do in fact use crypt in one of my GPC projects. I simply wrapped the library in a separate unit. I hereby release this unit (attached) to the public domain -- to avoid any possible problems between (L)GPL and laws, and because there's not much copyrightable code in it, anyway. (This can also serve as an example on how to call any library function.)
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html