Module sgx_trts::libc[][src]

This mod provides the interface connecting Rust's memory management system to the Intel's SGX SDK's malloc system.

It is a c-style interface and self-explained. Currently we don't have much time for documenting it.

Structs

addrinfo
fd_set
hostent
in6_addr
in_addr
iovec
ip_mreq
ipv6_mreq
linger
pollfd
sigval
sockaddr
sockaddr_in
sockaddr_in6
sockaddr_ll
sockaddr_nl
sockaddr_storage
sockaddr_un
stat
stat64
timespec
timeval
tm
winsize

Enums

c_void

Constants

AF_ALG
AF_APPLETALK
AF_ASH
AF_ATMPVC
AF_ATMSVC
AF_AX25
AF_BLUETOOTH
AF_BRIDGE
AF_CAIF
AF_CAN
AF_DECnet
AF_ECONET
AF_IEEE802154
AF_INET
AF_INET6
AF_IPX
AF_IRDA
AF_ISDN
AF_IUCV
AF_KEY
AF_LLC
AF_LOCAL
AF_NETBEUI
AF_NETLINK
AF_NETROM
AF_PACKET
AF_PHONET
AF_PPPOX
AF_RDS
AF_ROSE
AF_ROUTE
AF_RXRPC
AF_SECURITY
AF_SNA
AF_TIPC
AF_UNIX
AF_UNSPEC
AF_WANPIPE
AF_X25
AIO_ALLDONE
AIO_CANCELED
AIO_NOTCANCELED
CLOCK_BOOTTIME
CLOCK_BOOTTIME_ALARM
CLOCK_MONOTONIC
CLOCK_MONOTONIC_COARSE
CLOCK_MONOTONIC_RAW
CLOCK_PROCESS_CPUTIME_ID
CLOCK_REALTIME
CLOCK_REALTIME_ALARM
CLOCK_REALTIME_COARSE
CLOCK_THREAD_CPUTIME_ID
DCCP_SERVICE_LIST_MAX_LEN

maximum number of services provided on the same listening port

DCCP_SOCKOPT_AVAILABLE_CCIDS
DCCP_SOCKOPT_CCID
DCCP_SOCKOPT_CCID_RX_INFO
DCCP_SOCKOPT_CCID_TX_INFO
DCCP_SOCKOPT_CHANGE_L
DCCP_SOCKOPT_CHANGE_R
DCCP_SOCKOPT_GET_CUR_MPS
DCCP_SOCKOPT_PACKET_SIZE
DCCP_SOCKOPT_QPOLICY_ID
DCCP_SOCKOPT_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OF
EOPNOTSUPP
EOVERFLOW
EOWNERDEAD
EPERM
EPFNOSUPPORT
EPIPE
EPOLLERR
EPOLLET
EPOLLHUP
EPOLLIN
EPOLLMSG
EPOLLOUT
EPOLLPRI
EPOLLRDBAND
EPOLLRDNORM
EPOLLWRBAND
EPOLLWRNORM
EPOLL_CTL_ADD
EPOLL_CTL_DEL
EPOLL_CTL_MOD
EPROTO
EPROTONOSUPPORT
EPROTOTYPE
ERANGE
EREMCHG
EREMOTE
EREMOTEIO
ERESTART
ERFKILL
EROFS
ESGX
ESHUTDOWN
ESOCKTNOSUPPORT
ESPIPE
ESRCH
ESRMNT
ESTALE
ESTRPIPE
ETIME
ETIMEDOUT
ETOOMANYREFS
ETXTBSY
EUCLEAN
EUNATCH
EUSERS
EWOULDBLOCK
EXDEV
EXFULL
EXIT_FAILURE
EXIT_SUCCESS
FD_SETSIZE
FILENAME_MAX
FIOCLEX
FIONBIO
FOPEN_MAX
F_ADD_SEALS
F_CANCELLK
F_DUPFD
F_DUPFD_CLOEXEC
F_GETFD
F_GETFL
F_GETLEASE
F_GETLK
F_GETOWN
F_GETPIPE_SZ
F_GET_SEALS
F_NOTIFY
F_OK
F_SEAL_GROW
F_SEAL_SEAL
F_SEAL_SHRINK
F_SETFD
F_SETFL
F_SETLEASE
F_SETLK
F_SETLKW
F_SETOWN
F_SETPIPE_SZ
IFF_ALLMULTI
IFF_AUTOMEDIA
IFF_BROADCAST
IFF_DEBUG
IFF_DYNAMIC
IFF_LOOPBACK
IFF_MASTER
IFF_MULTICAST
IFF_NOARP
IFF_NOTRAILERS
IFF_POINTOPOINT
IFF_PORTSEL
IFF_PROMISC
IFF_RUNNING
IFF_SLAVE
IFF_UP
IPPROTO_AH

IP6 Auth Header

IPPROTO_BEETPH
IPPROTO_COMP

IP Payload Comp. Protocol

IPPROTO_DCCP

DCCP

IPPROTO_DSTOPTS

IP6 destination option

IPPROTO_EGP

exterior gateway protocol

IPPROTO_ENCAP

encapsulation header

IPPROTO_ESP

IP6 Encap Sec. Payload

IPPROTO_FRAGMENT

IP6 fragmentation header

IPPROTO_GRE

General Routing Encap.

IPPROTO_HOPOPTS

Hop-by-hop option header

IPPROTO_ICMP
IPPROTO_ICMPV6
IPPROTO_IDP

xns idp

IPPROTO_IGMP

group mgmt protocol

IPPROTO_IP
IPPROTO_IPIP

for compatibility

IPPROTO_IPV6
IPPROTO_MAX
IPPROTO_MH
IPPROTO_MPLS
IPPROTO_MTP
IPPROTO_NONE

IP6 no next header

IPPROTO_PIM

Protocol indep. multicast

IPPROTO_PUP

pup

IPPROTO_RAW

raw IP packet

IPPROTO_ROUTING

IP6 routing header

IPPROTO_RSVP

resource reservation

IPPROTO_SCTP

SCTP

IPPROTO_TCP
IPPROTO_TP

tp-4 w/ class negotiation

IPPROTO_UDP
IPPROTO_UDPLITE
IPV6_ADD_MEMBERSHIP
IPV6_DROP_MEMBERSHIP
IPV6_MULTICAST_LOOP
IPV6_V6ONLY
IP_ADD_MEMBERSHIP
IP_DROP_MEMBERSHIP
IP_HDRINCL
IP_MULTICAST_IF
IP_MULTICAST_LOOP
IP_MULTICAST_TTL
IP_TRANSPARENT
IP_TTL
LIO_NOP
LIO_NOWAIT
LIO_READ
LIO_WAIT
LIO_WRITE
LOCK_EX
LOCK_NB
LOCK_SH
LOCK_UN
MAP_ANON
MAP_ANONYMOUS
MAP_DENYWRITE
MAP_EXECUTABLE
MAP_NONBLOCK
MAP_POPULATE
MAP_STACK
MSG_CMSG_CLOEXEC
MSG_CONFIRM
MSG_CTRUNC
MSG_DONTROUTE
MSG_DONTWAIT
MSG_EOR
MSG_ERRQUEUE
MSG_FASTOPEN
MSG_FIN
MSG_MORE
MSG_NOSIGNAL
MSG_OOB
MSG_PEEK
MSG_RST
MSG_SYN
MSG_TRUNC
MSG_WAITALL
MSG_WAITFORONE
NCCS
NI_DGRAM
NI_NAMEREQD
NI_NOFQDN
NI_NUMERICHOST
NI_NUMERICSERV
O_ACCMODE
O_APPEND
O_ASYNC
O_C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PF_EXTENSIONS
SO_BROADCAST
SO_BSDCOMPAT
SO_BUSY_POLL
SO_DEBUG
SO_DETACH_BPF
SO_DETACH_FILTER
SO_DOMAIN
SO_DONTROUTE
SO_ERROR
SO_GET_FILTER
SO_INCOMING_CPU
SO_KEEPALIVE
SO_LINGER
SO_LOCK_FILTER
SO_MARK
SO_MAX_PACING_RATE
SO_NOFCS
SO_NO_CHECK
SO_OOBINLINE
SO_PASSCRED
SO_PASSSEC
SO_PEEK_OFF
SO_PEERCRED
SO_PEERNAME
SO_PEERSEC
SO_PRIORITY
SO_PROTOCOL
SO_RCVBUF
SO_RCVBUFFORCE
SO_RCVLOWAT
SO_RCVTIMEO
SO_REUSEADDR
SO_REUSEPORT
SO_RXQ_OVFL
SO_SECURITY_AUTHENTICATION
SO_SECURITY_ENCRYPTION_NETWORK
SO_SECURITY_ENCRYPTION_TRANSPORT
SO_SELECT_ERR_QUEUE
SO_SNDBUF
SO_SNDBUFFORCE
SO_SNDLOWAT
SO_SNDTIMEO
SO_TIMESTAMP
SO_TIMESTAMPING
SO_TIMESTAMPNS
SO_TYPE
SO_WIFI_STATUS
SS_DISABLE
SS_ONSTACK
STDERR_FILENO
STDIN_FILENO
STDOUT_FILENO
SYNC_FILE_RANGE_WAIT_AFTER
SYNC_FILE_RANGE_WAIT_BEFORE
SYNC_FILE_RANGE_WRITE
S_IFBLK
S_IFCHR
S_IFDIR
S_IFIFO
S_IFLNK
S_IFMT
S_IFREG
S_IFSOCK
S_IRGRP
S_IROTH
S_IRUSR
S_IRWXG
S_IRWXO
S_IRWXU
S_IWGRP
S_IWOTH
S_IWUSR
S_IXGRP
S_IXOTH
S_IXUSR
TCP_CONGESTION
TCP_COOKIE_TRANSACTIONS
TCP_CORK
TCP_DEFER_ACCEPT
TCP_FASTOPEN
TCP_INFO
TCP_KEEPCNT
TCP_KEEPIDLE
TCP_KEEPINTVL
TCP_LINGER2
TCP_MAXSEG
TCP_NODELAY
TCP_QUEUE_SEQ
TCP_QUICKACK
TCP_REPAIR
TCP_REPAIR_OPTIONS
TCP_REPAIR_QUEUE
TCP_SYNCNT
TCP_THIN_DUPACK
TCP_THIN_LINEAR_TIMEOUTS
TCP_TIMESTAMP
TCP_USER_TIMEOUT
TCP_WINDOW_CLAMP
W_OK
X_OK
_IOFBF
_IOLBF
_IONBF

Functions

calloc
free
malloc
malloc_usable_size
memchr
memrchr
posix_memalign
realloc
strlen

Type Definitions

blkcnt64_t
blkcnt_t
blksize_t
c_char
c_double
c_float
c_int
c_long
c_longlong
c_schar
c_short
c_uchar
c_uint
c_ulong
c_ulonglong
c_ushort
clockid_t
dev_t
gid_t
in_addr_t
in_port_t
ino64_t
ino_t
int16_t
int32_t
int64_t
int8_t
intmax_t
intptr_t
mode_t
nlink_t
off64_t
off_t
ptrdiff_t
sa_family_t
size_t
socklen_t
ssize_t
suseconds_t
time_t
uid_t
uint16_t
uint32_t
uint64_t
uint8_t
uintmax_t
uintptr_t