chiark
/
gitweb
/
~mdw
/
qmail
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Upstream qmail 1.01
[qmail]
/
fd_move.c
1
#include "fd.h"
2
3
int fd_move(to,from)
4
int to;
5
int from;
6
{
7
if (to == from) return 0;
8
if (fd_copy(to,from) == -1) return -1;
9
close(from);
10
return 0;
11
}