mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 23:13:34 +00:00
df8ab0aa0c
redbean will now set Referer-Policy to no-referrer-when-downgrade on text/html responses by default. There's better explanations on the bits of security redbean is offering. In short, it's 128+ for modern clients and 112+ for legacy. If the -B flag is used then it's 192+ for modern and 150+ for non-EC.
29 lines
857 B
C
29 lines
857 B
C
#ifndef COSMOPOLITAN_LIBC_STDIO_APPEND_INTERNAL_H_
|
|
#define COSMOPOLITAN_LIBC_STDIO_APPEND_INTERNAL_H_
|
|
#include "libc/fmt/pflink.h"
|
|
|
|
#define APPEND_COOKIE 21578
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
struct appendz {
|
|
size_t i; /* data size */
|
|
size_t n; /* allocation size */
|
|
};
|
|
|
|
int appendf(char **, const char *, ...);
|
|
int vappendf(char **, const char *, va_list);
|
|
int appends(char **, const char *);
|
|
int appendd(char **, const void *, size_t);
|
|
int appendw(char **, uint64_t);
|
|
struct appendz appendz(char *);
|
|
|
|
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
#define appendf(BUF, FMT, ...) (appendf)(BUF, PFLINK(FMT), ##__VA_ARGS__)
|
|
#define vappendf(BUF, FMT, VA) (vappendf)(BUF, PFLINK(FMT), VA)
|
|
#endif
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_STDIO_APPEND_INTERNAL_H_ */
|