chiark
/
gitweb
/
~mdw
/
qmail
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1aa557fd1b5902001368e943fe0b60a5ccc4bfc0
[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
}