ucspi-ssl
0.99e
TLS encryption for IPv6 communication
ucspi-ssl-0.99e
src
fd_move.c
Go to the documentation of this file.
1
/* Public domain. */
2
3
#include <unistd.h>
4
#include "
fd.h
"
5
6
int
fd_move
(
int
to,
int
from)
7
{
8
if
(to == from)
return
0;
9
if
(
fd_copy
(to,from) == -1)
return
-1;
10
close(from);
11
return
0;
12
}
fd_copy
int fd_copy(int, int)
Definition:
fd_copy.c:7
fd.h
fd_move
int fd_move(int to, int from)
Definition:
fd_move.c:6
Generated on Wed Jul 11 2018 22:50:46 for ucspi-ssl by
1.8.13