Skip to content

giuseppe/xchg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xchg

Expose renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, RENAME_EXCHANGE) to atomically exchange two files.

Build

Assuming you have the autotools and gcc installed:

$ ./autogen.sh && ./configure && make

Usage

$ xchg /path/to/file1 /path/to/file2

About

Atomically exchange two files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors