mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Remove a bunch of stuff that shouldn't be in docs
This commit is contained in:
parent
2cc1d5ac4c
commit
bfb85fe6d0
11 changed files with 18 additions and 39 deletions
|
@ -28,9 +28,7 @@
|
||||||
#include "libc/sysv/consts/o.h"
|
#include "libc/sysv/consts/o.h"
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
/**
|
// Implements dup(), dup2(), dup3(), and F_DUPFD for Windows.
|
||||||
* Implements dup(), dup2(), dup3(), and F_DUPFD for Windows.
|
|
||||||
*/
|
|
||||||
textwindows int sys_dup_nt(int oldfd, int newfd, int flags, int start) {
|
textwindows int sys_dup_nt(int oldfd, int newfd, int flags, int start) {
|
||||||
int64_t rc, proc, handle;
|
int64_t rc, proc, handle;
|
||||||
_unassert(oldfd >= 0);
|
_unassert(oldfd >= 0);
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supports fstat(), etc. implementations.
|
* Forms fstat() on System Five.
|
||||||
* @asyncsignalsafe
|
* @asyncsignalsafe
|
||||||
*/
|
*/
|
||||||
int32_t sys_fstat(int32_t fd, struct stat *st) {
|
int32_t sys_fstat(int32_t fd, struct stat *st) {
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supports stat(), lstat(), fstatat(), etc. implementations.
|
* Performs fstatat() on System Five.
|
||||||
* @asyncsignalsafe
|
* @asyncsignalsafe
|
||||||
*/
|
*/
|
||||||
int32_t sys_fstatat(int32_t dirfd, const char *path, struct stat *st,
|
int32_t sys_fstatat(int32_t dirfd, const char *path, struct stat *st,
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
#include "libc/sysv/consts/sig.h"
|
#include "libc/sysv/consts/sig.h"
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Polls on the New Technology.
|
* Polls on the New Technology.
|
||||||
*
|
*
|
||||||
* This function is used to implement poll() and select(). You may poll
|
* This function is used to implement poll() and select(). You may poll
|
||||||
|
|
|
@ -28,9 +28,7 @@
|
||||||
#include "libc/nt/runtime.h"
|
#include "libc/nt/runtime.h"
|
||||||
#include "libc/sysv/consts/ok.h"
|
#include "libc/sysv/consts/ok.h"
|
||||||
|
|
||||||
/**
|
// Flushes all open file handles and, if possible, all disk drives.
|
||||||
* Flushes all open file handles and, if possible, all disk drives.
|
|
||||||
*/
|
|
||||||
textwindows int sys_sync_nt(void) {
|
textwindows int sys_sync_nt(void) {
|
||||||
unsigned i;
|
unsigned i;
|
||||||
int64_t volume;
|
int64_t volume;
|
||||||
|
|
|
@ -17,22 +17,15 @@
|
||||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "libc/calls/internal.h"
|
#include "libc/calls/internal.h"
|
||||||
#include "libc/intrin/strace.internal.h"
|
#include "libc/calls/struct/fd.internal.h"
|
||||||
#include "libc/calls/struct/iovec.h"
|
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/intrin/likely.h"
|
#include "libc/nt/struct/iovec.h"
|
||||||
#include "libc/nt/struct/overlapped.h"
|
#include "libc/nt/struct/overlapped.h"
|
||||||
#include "libc/nt/winsock.h"
|
#include "libc/nt/winsock.h"
|
||||||
#include "libc/sock/internal.h"
|
#include "libc/sock/internal.h"
|
||||||
#include "libc/sock/syscall_fd.internal.h"
|
#include "libc/sock/syscall_fd.internal.h"
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* Performs stream socket receive on New Technology.
|
|
||||||
*
|
|
||||||
* @param fd must be a socket
|
|
||||||
* @return number of bytes received, or -1 w/ errno
|
|
||||||
*/
|
|
||||||
textwindows ssize_t sys_recv_nt(struct Fd *fd, const struct iovec *iov,
|
textwindows ssize_t sys_recv_nt(struct Fd *fd, const struct iovec *iov,
|
||||||
size_t iovlen, uint32_t flags) {
|
size_t iovlen, uint32_t flags) {
|
||||||
int err;
|
int err;
|
||||||
|
|
|
@ -25,12 +25,6 @@
|
||||||
#include "libc/sock/syscall_fd.internal.h"
|
#include "libc/sock/syscall_fd.internal.h"
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* Performs datagram receive on New Technology.
|
|
||||||
*
|
|
||||||
* @param fd must be a socket
|
|
||||||
* @return number of bytes received, or -1 w/ errno
|
|
||||||
*/
|
|
||||||
textwindows ssize_t sys_recvfrom_nt(struct Fd *fd, const struct iovec *iov,
|
textwindows ssize_t sys_recvfrom_nt(struct Fd *fd, const struct iovec *iov,
|
||||||
size_t iovlen, uint32_t flags,
|
size_t iovlen, uint32_t flags,
|
||||||
void *opt_out_srcaddr,
|
void *opt_out_srcaddr,
|
||||||
|
|
|
@ -23,12 +23,6 @@
|
||||||
#include "libc/sock/internal.h"
|
#include "libc/sock/internal.h"
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* Performs stream socket send on the New Technology.
|
|
||||||
*
|
|
||||||
* @param fd must be a socket
|
|
||||||
* @return number of bytes handed off, or -1 w/ errno
|
|
||||||
*/
|
|
||||||
textwindows ssize_t sys_send_nt(int fd, const struct iovec *iov, size_t iovlen,
|
textwindows ssize_t sys_send_nt(int fd, const struct iovec *iov, size_t iovlen,
|
||||||
uint32_t flags) {
|
uint32_t flags) {
|
||||||
ssize_t rc;
|
ssize_t rc;
|
||||||
|
|
|
@ -23,12 +23,6 @@
|
||||||
#include "libc/sock/internal.h"
|
#include "libc/sock/internal.h"
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* Performs datagram socket send on the New Technology.
|
|
||||||
*
|
|
||||||
* @param fd must be a socket
|
|
||||||
* @return number of bytes handed off, or -1 w/ errno
|
|
||||||
*/
|
|
||||||
textwindows ssize_t sys_sendto_nt(int fd, const struct iovec *iov,
|
textwindows ssize_t sys_sendto_nt(int fd, const struct iovec *iov,
|
||||||
size_t iovlen, uint32_t flags,
|
size_t iovlen, uint32_t flags,
|
||||||
void *opt_in_addr, uint32_t in_addrsize) {
|
void *opt_in_addr, uint32_t in_addrsize) {
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||||
COSMOPOLITAN_C_START_
|
COSMOPOLITAN_C_START_
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* XNU thread system calls.
|
* XNU thread system calls.
|
||||||
* @see darwin-libpthread/kern/kern_support.c
|
* See darwin-libpthread/kern/kern_support.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int sys_bsdthread_create(void *func, void *func_arg, void *stack, void *pthread,
|
int sys_bsdthread_create(void *func, void *func_arg, void *stack, void *pthread,
|
||||||
|
|
10
third_party/chibicc/dox1.c
vendored
10
third_party/chibicc/dox1.c
vendored
|
@ -284,13 +284,21 @@ static void LoadPublicDefinitions(struct DoxWriter *dox, Obj *prog) {
|
||||||
if (!obj->javadown) {
|
if (!obj->javadown) {
|
||||||
if (*obj->name == '_') continue;
|
if (*obj->name == '_') continue;
|
||||||
if (strchr(obj->name, '$')) continue;
|
if (strchr(obj->name, '$')) continue;
|
||||||
if (_startswith(obj->name, "__gdtoa_")) continue;
|
|
||||||
if (obj->visibility && !strcmp(obj->visibility, "hidden")) continue;
|
if (obj->visibility && !strcmp(obj->visibility, "hidden")) continue;
|
||||||
|
if (_startswith(obj->name, "nsync_") && _endswith(obj->name, "_"))
|
||||||
|
continue;
|
||||||
if (!obj->is_definition && (!obj->is_function || !obj->params ||
|
if (!obj->is_definition && (!obj->is_function || !obj->params ||
|
||||||
!obj->params->name || !*obj->params->name)) {
|
!obj->params->name || !*obj->params->name)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (_startswith(obj->name, "__gdtoa_")) continue;
|
||||||
|
if (_startswith(obj->name, "sys_")) continue;
|
||||||
|
if (_startswith(obj->name, "ioctl_")) continue;
|
||||||
|
if (_startswith(obj->name, "nsync_mu_semaphore_")) continue;
|
||||||
|
if (_startswith(obj->name, "Describe")) continue;
|
||||||
|
if (_startswith(obj->name, "__sig")) continue;
|
||||||
|
if (_startswith(obj->name, "__zipos")) continue;
|
||||||
if (obj->is_static) continue;
|
if (obj->is_static) continue;
|
||||||
if (obj->is_string_literal) continue;
|
if (obj->is_string_literal) continue;
|
||||||
if (obj->section && _startswith(obj->section, ".init_array")) continue;
|
if (obj->section && _startswith(obj->section, ".init_array")) continue;
|
||||||
|
|
Loading…
Reference in a new issue