LibC: Implement getpass

This commit is contained in:
2024-12-02 05:10:09 +02:00
parent ffcc4fd03a
commit b8013c883c
3 changed files with 43 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ __BEGIN_DECLS
#define OPEN_MAX 64
#define NAME_MAX 255
#define PATH_MAX 256
#define PASS_MAX 256
#define LOGIN_NAME_MAX 256
#define HOST_NAME_MAX 255
#define TTY_NAME_MAX PATH_MAX

View File

@@ -234,6 +234,7 @@ int usleep(useconds_t usec);
ssize_t write(int fildes, const void* buf, size_t nbyte);
int getpagesize(void);
char* getpass(const char* prompt);
extern char* optarg;
extern int opterr, optind, optopt;