mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +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/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) {
|
||||
int64_t rc, proc, handle;
|
||||
_unassert(oldfd >= 0);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "libc/sysv/errfuns.h"
|
||||
|
||||
/**
|
||||
* Supports fstat(), etc. implementations.
|
||||
* Forms fstat() on System Five.
|
||||
* @asyncsignalsafe
|
||||
*/
|
||||
int32_t sys_fstat(int32_t fd, struct stat *st) {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include "libc/sysv/errfuns.h"
|
||||
|
||||
/**
|
||||
* Supports stat(), lstat(), fstatat(), etc. implementations.
|
||||
* Performs fstatat() on System Five.
|
||||
* @asyncsignalsafe
|
||||
*/
|
||||
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/errfuns.h"
|
||||
|
||||
/**
|
||||
/*
|
||||
* Polls on the New Technology.
|
||||
*
|
||||
* This function is used to implement poll() and select(). You may poll
|
||||
|
|
|
@ -28,9 +28,7 @@
|
|||
#include "libc/nt/runtime.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) {
|
||||
unsigned i;
|
||||
int64_t volume;
|
||||
|
|
|
@ -17,22 +17,15 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/internal.h"
|
||||
#include "libc/intrin/strace.internal.h"
|
||||
#include "libc/calls/struct/iovec.h"
|
||||
#include "libc/calls/struct/fd.internal.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/winsock.h"
|
||||
#include "libc/sock/internal.h"
|
||||
#include "libc/sock/syscall_fd.internal.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,
|
||||
size_t iovlen, uint32_t flags) {
|
||||
int err;
|
||||
|
|
|
@ -25,12 +25,6 @@
|
|||
#include "libc/sock/syscall_fd.internal.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,
|
||||
size_t iovlen, uint32_t flags,
|
||||
void *opt_out_srcaddr,
|
||||
|
|
|
@ -23,12 +23,6 @@
|
|||
#include "libc/sock/internal.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,
|
||||
uint32_t flags) {
|
||||
ssize_t rc;
|
||||
|
|
|
@ -23,12 +23,6 @@
|
|||
#include "libc/sock/internal.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,
|
||||
size_t iovlen, uint32_t flags,
|
||||
void *opt_in_addr, uint32_t in_addrsize) {
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
/**
|
||||
/*
|
||||
* 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue