<s>
In	O
computing	O
,	O
rename	B-Device
refers	O
to	O
the	O
altering	O
of	O
a	O
name	O
of	O
a	O
file	O
.	O
</s>
<s>
This	O
can	O
be	O
done	O
manually	O
by	O
using	O
a	O
shell	O
command	O
such	O
as	O
ren	B-Device
or	O
mv	O
,	O
or	O
by	O
using	O
batch	B-Application
renaming	I-Application
software	O
that	O
can	O
automate	O
the	O
renaming	O
process	O
.	O
</s>
<s>
The	B-Language
C	I-Language
standard	I-Language
library	I-Language
provides	O
a	O
function	O
called	O
rename	B-Device
which	O
does	O
this	O
action	O
.	O
</s>
<s>
In	O
POSIX	O
,	O
which	O
is	O
extended	O
from	O
the	O
C	O
standard	O
,	O
the	O
rename	B-Device
function	O
will	O
fail	O
if	O
the	O
old	O
and	O
new	O
names	O
are	O
on	O
different	O
mounted	O
file	B-Application
systems	I-Application
.	O
</s>
<s>
In	O
SQL	B-Language
,	O
renames	B-Device
are	O
performed	O
by	O
using	O
the	O
CHANGE	O
specification	O
in	O
ALTER	O
TABLE	O
statements	O
.	O
</s>
<s>
In	O
POSIX	O
,	O
a	O
successful	O
call	O
to	O
rename	B-Device
is	O
guaranteed	O
to	O
have	O
been	O
atomic	B-General_Concept
from	O
the	O
point	O
of	O
view	O
of	O
the	O
current	O
host	O
(	O
i.e.	O
,	O
another	O
program	O
would	O
only	O
see	O
the	O
file	O
with	O
the	O
old	O
name	O
or	O
the	O
file	O
with	O
the	O
new	O
name	O
,	O
not	O
both	O
or	O
neither	O
of	O
them	O
)	O
.	O
</s>
<s>
The	O
rename	B-Device
function	O
from	O
the	O
C	B-Language
library	I-Language
in	O
Windows	B-Application
does	O
not	O
implement	O
the	O
POSIX	O
atomic	B-General_Concept
behaviour	O
;	O
instead	O
it	O
fails	O
if	O
the	O
destination	O
file	O
already	O
exists	O
.	O
</s>
<s>
However	O
,	O
other	O
calls	O
in	O
the	O
Windows	B-Library
API	I-Library
do	O
implement	O
the	O
atomic	B-General_Concept
behaviour	O
.	O
</s>
