mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Add lchown, lchmod, statvfs, fstatvfs
This commit is contained in:
parent
7b74f6e20e
commit
5a632cf72d
24 changed files with 231 additions and 32 deletions
11
third_party/python/Modules/posixmodule.c
vendored
11
third_party/python/Modules/posixmodule.c
vendored
|
@ -13,12 +13,14 @@
|
|||
#include "libc/calls/struct/iovec.h"
|
||||
#include "libc/calls/struct/sched_param.h"
|
||||
#include "libc/calls/struct/stat.macros.h"
|
||||
#include "libc/calls/struct/statvfs.h"
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
#include "libc/calls/struct/timeval.h"
|
||||
#include "libc/calls/struct/tms.h"
|
||||
#include "libc/calls/struct/utsname.h"
|
||||
#include "libc/calls/struct/winsize.h"
|
||||
#include "libc/calls/syscall-sysv.internal.h"
|
||||
#include "libc/calls/sysparam.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/dce.h"
|
||||
|
@ -49,6 +51,7 @@
|
|||
#include "libc/sysv/consts/prio.h"
|
||||
#include "libc/sysv/consts/s.h"
|
||||
#include "libc/sysv/consts/sched.h"
|
||||
#include "libc/sysv/consts/seek.h"
|
||||
#include "libc/sysv/consts/sf.h"
|
||||
#include "libc/sysv/consts/sicode.h"
|
||||
#include "libc/sysv/consts/st.h"
|
||||
|
@ -122,14 +125,6 @@ module os
|
|||
|
||||
#define NAMLEN(dirent) strlen((dirent)->d_name)
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
#if defined(PATH_MAX) && PATH_MAX > 1024 /* TODO: wut? */
|
||||
#define MAXPATHLEN PATH_MAX
|
||||
#else
|
||||
#define MAXPATHLEN 1024
|
||||
#endif
|
||||
#endif /* MAXPATHLEN */
|
||||
|
||||
#ifdef UNION_WAIT
|
||||
/* Emulate some macros on systems that have a union instead of macros */
|
||||
|
||||
|
|
8
third_party/python/pyconfig.h
vendored
8
third_party/python/pyconfig.h
vendored
|
@ -142,8 +142,8 @@
|
|||
#define HAVE_FSYNC 1
|
||||
#define HAVE_GETENTROPY 1
|
||||
#define HAVE_GETLOADAVG 1
|
||||
#define HAVE_FSTATVFS 1
|
||||
/* #undef HAVE_FEXECVE */
|
||||
/* #undef HAVE_FSTATVFS */
|
||||
/* #undef HAVE_FTIME */
|
||||
/* #define HAVE_GETGROUPS 1 */
|
||||
/* #define HAVE_SETGROUPS 1 */
|
||||
|
@ -205,8 +205,8 @@
|
|||
|
||||
#define HAVE_GETLOGIN 1
|
||||
#define HAVE_LCHOWN 1
|
||||
#define HAVE_LCHMOD 1
|
||||
/* #undef HAVE_LCHFLAGS */
|
||||
/* #undef HAVE_LCHMOD */
|
||||
|
||||
/* Define to 1 if you have the `dl' library (-ldl). */
|
||||
/* #undef HAVE_LIBDL */
|
||||
|
@ -311,6 +311,7 @@
|
|||
#define HAVE_WAIT3 1
|
||||
#define HAVE_WAIT4 1
|
||||
#define HAVE_WAITPID 1
|
||||
#define HAVE_STATVFS 1
|
||||
|
||||
/* #define HAVE_MREMAP 1 */
|
||||
/* #undef HAVE_PLOCK */
|
||||
|
@ -320,7 +321,6 @@
|
|||
/* #undef HAVE_TMPNAM */
|
||||
/* #undef HAVE_TMPNAM_R */
|
||||
/* #undef HAVE_SETPGRP */
|
||||
/* #undef HAVE_STATVFS */
|
||||
/* #undef HAVE_STAT_TV_NSEC2 */
|
||||
/* #undef HAVE_SIGPENDING */
|
||||
/* #undef HAVE_SIGRELSE */
|
||||
|
@ -513,7 +513,7 @@
|
|||
/* #define _Py_MEMORY_SANITIZER */
|
||||
|
||||
/* #define HAVE_DEV_PTMX 1 */
|
||||
/* #define HAVE_OPENPTY 1 */
|
||||
/* #define HAVE_OPENPTY 1 */
|
||||
/* #undef HAVE__GETPTY */
|
||||
/* #undef HAVE_DEV_PTC */
|
||||
/* #define HAVE_FORKPTY 1 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue