[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PROPOSED] renameatu: rename from renameat2
From: |
Bruno Haible |
Subject: |
Re: [PROPOSED] renameatu: rename from renameat2 |
Date: |
Wed, 04 Jul 2018 12:09:48 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-128-generic; KDE/5.18.0; x86_64; ; ) |
Hi Paul,
> It's looking like Glibc will add a renameat2 function
> that is incompatible with Gnulib renameat2; see:
> https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
Yup, by https://sourceware.org/ml/libc-alpha/2018-07/msg00039.html
it is clear that non-atomic fallback implementations are more acceptable
in gnulib than in glibc.
> To help avoid future confusion, rename renameat2 to something else.
This is a good idea. Let's not repeat the confusion we had with the
'strftime' module.
Additionally, I would add a placeholder for the old module name,
for a period of transition. So that users of the 'renameat2' module
are not forced to migrate in a hurry, but instead can migrate when
it is fit for their project and schedule.
============================== modules/renameat2 ==============================
Description:
renameat2() function: rename a file, relative to two directories
Status:
obsolete
Notice:
This module is obsolete. Use module 'renameatu' instead.
Files:
Depends-on:
renameatu
configure.ac:
Makefile.am:
Include:
"renameat2.h"
License:
GPL
Maintainer:
all
===============================================================================
=============================== lib/renameat2.h ===============================
#include "renameatu.h"
#define renameat2 renameatu
===============================================================================
Bruno