From 39bab1856ea5a4cb3febdaebffd14f7ea3b9d162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Sun, 26 May 2024 16:33:39 +0200 Subject: [PATCH] add stubs for getpwnam() and getpwuid() --- libc/passwd.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 libc/passwd.c diff --git a/libc/passwd.c b/libc/passwd.c new file mode 100644 index 0000000..eeaf02c --- /dev/null +++ b/libc/passwd.c @@ -0,0 +1,30 @@ +/* Copyright (C) 2024 John Törnblom + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3, or (at your option) any +later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; see the file COPYING. If not, see +. */ + +#include + +struct passwd; + +struct passwd* +getpwnam(const char *name) { + return 0; +} + + +struct passwd* +getpwuid(uid_t uid) { + return 0; +}