ELinks 0.18.0
generic.h File Reference
#include <limits.h>
#include <stddef.h>
Include dependency graph for generic.h:
This graph shows which files directly or indirectly include this file:

Macros

#define PIPE_BUF   512 /* POSIX says that. -- Mikulas */
#define INET_ADDRSTRLEN   16
#define INET6_ADDRSTRLEN   46
#define IP_ADDRESS_BUFFER_SIZE   INET_ADDRSTRLEN
#define PF_INET   AF_INET
#define PF_INET6   AF_INET6
#define safe_read(fd, buf, count)
#define safe_write(fd, buf, count)
#define ftello(stream)
#define fseeko(stream, offset, whence)
#define offsetof(type, ident)
#define alignof(TYPE)
#define copy_struct(destination, source)
#define sizeof_array(array)

Macro Definition Documentation

◆ alignof

#define alignof ( TYPE)
Value:
offsetof(struct { unsigned char dummy1; TYPE dummy2; }, dummy2)
#define offsetof(type, ident)
Definition generic.h:106

◆ copy_struct

#define copy_struct ( destination,
source )
Value:
do { (*(destination) = *(source)); } while (0)

◆ fseeko

#define fseeko ( stream,
offset,
whence )
Value:
fseek(stream, offset, whence)

◆ ftello

#define ftello ( stream)
Value:
ftell(stream)

◆ INET6_ADDRSTRLEN

#define INET6_ADDRSTRLEN   46

◆ INET_ADDRSTRLEN

#define INET_ADDRSTRLEN   16

◆ IP_ADDRESS_BUFFER_SIZE

#define IP_ADDRESS_BUFFER_SIZE   INET_ADDRSTRLEN

◆ offsetof

#define offsetof ( type,
ident )
Value:
((size_t) &(((type *) 0)->ident))
const char * type
Definition download.c:1899

◆ PF_INET

#define PF_INET   AF_INET

◆ PF_INET6

#define PF_INET6   AF_INET6

◆ PIPE_BUF

#define PIPE_BUF   512 /* POSIX says that. -- Mikulas */

◆ safe_read

#define safe_read ( fd,
buf,
count )
Value:
read(fd, buf, count)

◆ safe_write

#define safe_write ( fd,
buf,
count )
Value:
write(fd, buf, count)

◆ sizeof_array

#define sizeof_array ( array)
Value:
(sizeof(array)/sizeof(*(array)))