[Ardour-Dev] GTK+ (concepts and advice)
fons at kokkinizita.net
Mon Jun 16 14:54:00 PDT 2008
On Mon, Jun 16, 2008 at 09:51:43PM -0000, John Emmas wrote:
> 1) If we have 2 x hard links to a particular file, can they each refer to
> the file by a different name?
> 2) Whether they can or they can't can both hard links be in the same
If by 'name' you mean the complete path, then of course they
have to be different, otherwise there's only one name.
Apart from that, you can have
pointing to the same inode, and hence the same file,
can point to the same inode, and the same file.
> 3) Instead of me using fopen/fread on the source file and fopen'fwrite on
> the destination file, what would be involved in creating one of these hard
On the command line, the commands are 'ln' to create a new link,
and 'rm' to remove one.
>From C, you use
int link (const char *oldpath, const char *newpath);
int unlink (const char *path);
both declared in <unistd.h>
Laboratorio di Acustica ed Elettroacustica
Lascia la spina, cogli la rosa.
More information about the Ardour-Dev