Re: How to create a symbolic link?

Jean Louis <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
Thank you Pascal, I will try to re-compile with glibc bindings. And I
use GNU/Linux and only free software, without firmware.

Jean

On Fri, Dec 16, 2016 at 06:54:55PM +0100, Pascal Bourguignon wrote:
> >> C/USER[14]> (ffi:def-call-out symlink 
> >>              (:name "symlink")
> >>              (:arguments (p1 ffi:c-string :in) (p2 ffi:c-string :in))
> >>              (:return-type ffi:int)
> >>              (:language  :stdc))
> > 
> > 
> > Jean Louis
> 
> 
> You need to compile it with the bindings/glibc module.
> It’s only available on Linux.
> 
> 
> On other systems you could to write a little stub library that would implement a create_symbolic_link function that would call symlink(2), and dynamically load it with FFI, or you could write an equivalent of bindings/glibc for your system (there’s one for MS-Windows, IIRC, but of course, no symlinks on MS-Windows).

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.