Re: comment utiliser symlinkat(2) en programmation C

Basile Starynkevitch <[email protected]>
Newsgroups gmane.linux.debian.user.french
Message-ID <[email protected]>
On Thu, 2026-08-20 at 11:13 +0200, Pierre-Elliott Bécue wrote:
> Salut !
> 
> Basile STARYNKEVITCH <[email protected]> wrote on 20/08/2026
> at 10:18:30+0200:
> 
> > Bonjour la liste,
> > 
> > je cherche à comprendre (à travers un exemple de code en C ou C++
> > en
> > logiciel libre existant) l'utilisation de l'appel système
> > symlinkat(2).
> 
> symlinkat est juste symlink quand tu veux éviter de changer de CWD
> avant
> de faire ton appel.


[...]

Merci pour les explications et les exemples très clairs.

(je pensais à tort que open(2) avec O_DIRECTORY ne servait qu'à
implémenter readdir(3)...)

-- 

Basile STARYNKEVITCH                           
<[email protected]>
8 rue de la Faïencerie                      
http://starynkevitch.net/Basile/  
92340 Bourg-la-Reine                        
https://github.com/bstarynk
France                               
https://github.com/RefPerSys/RefPerSys
                  https://orcid.org/0000-0003-0908-5250
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.