Skip to content

Commit

Permalink
add stubs for getpwnam() and getpwuid()
Browse files Browse the repository at this point in the history
  • Loading branch information
john-tornblom committed May 26, 2024
1 parent 558e996 commit 39bab18
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions libc/passwd.c
Original file line number Diff line number Diff line change
@@ -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
<http://www.gnu.org/licenses/>. */

#include <unistd.h>

struct passwd;

struct passwd*
getpwnam(const char *name) {
return 0;
}


struct passwd*
getpwuid(uid_t uid) {
return 0;
}

0 comments on commit 39bab18

Please sign in to comment.