Put confstr() in unistd.h

Fixes #1184
This commit is contained in:
Justine Tunney 2024-05-21 15:35:06 -07:00
parent cf70a44756
commit 0b59f01b43
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,6 @@
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "libc/paths.h" #include "libc/paths.h"
#include "libc/stdio/stdio.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/errfuns.h" #include "libc/sysv/errfuns.h"
#include "libc/unistd.h" #include "libc/unistd.h"

View file

@ -79,7 +79,6 @@ int setvbuf(FILE *, char *, int, size_t) libcesque;
int pclose(FILE *) libcesque; int pclose(FILE *) libcesque;
char *ctermid(char *) libcesque; char *ctermid(char *) libcesque;
void perror(const char *) libcesque relegated; void perror(const char *) libcesque relegated;
size_t confstr(int, char *, size_t) libcesque;
typedef uint64_t fpos_t; typedef uint64_t fpos_t;
char *gets(char *) libcesque paramsnonnull(); char *gets(char *) libcesque paramsnonnull();

View file

@ -4,6 +4,8 @@ COSMOPOLITAN_C_START_
#define _CS_PATH 0 #define _CS_PATH 0
size_t confstr(int, char *, size_t) libcesque;
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || \ #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || \
defined(_COSMO_SOURCE) defined(_COSMO_SOURCE)
void encrypt(char *, int) libcesque; void encrypt(char *, int) libcesque;