Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
lib
fdio
fdio.h
Go to the documentation of this file.
1
/* Copyright (c) 2003-2004, Roger Dingledine
2
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3
* Copyright (c) 2007-2021, The Tor Project, Inc. */
4
/* See LICENSE for licensing information */
5
6
/**
7
* \file fdio.h
8
*
9
* \brief Header for fdio.c
10
**/
11
12
#ifndef TOR_FDIO_H
13
#define TOR_FDIO_H
14
15
#include <stddef.h>
16
#ifdef HAVE_SYS_TYPES_H
17
#include <sys/types.h>
18
#endif
19
20
off_t
tor_fd_getpos
(
int
fd);
21
int
tor_fd_setpos
(
int
fd, off_t pos);
22
int
tor_fd_seekend
(
int
fd);
23
int
tor_ftruncate
(
int
fd);
24
int
write_all_to_fd_minimal
(
int
fd,
const
char
*buf,
size_t
count);
25
26
#endif
/* !defined(TOR_FDIO_H) */
tor_fd_seekend
int tor_fd_seekend(int fd)
Definition:
fdio.c:61
tor_fd_getpos
off_t tor_fd_getpos(int fd)
Definition:
fdio.c:48
write_all_to_fd_minimal
int write_all_to_fd_minimal(int fd, const char *buf, size_t count)
Definition:
fdio.c:108
tor_ftruncate
int tor_ftruncate(int fd)
Definition:
fdio.c:92
tor_fd_setpos
int tor_fd_setpos(int fd, off_t pos)
Definition:
fdio.c:80
Generated by
1.9.4