mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
1682f0b760
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
36 lines
769 B
C
36 lines
769 B
C
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <bits/FILE.h>
|
|
#include <sys/cdefs.h>
|
|
#include <sys/types.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
struct passwd {
|
|
char* pw_name;
|
|
char* pw_passwd;
|
|
uid_t pw_uid;
|
|
gid_t pw_gid;
|
|
char* pw_gecos;
|
|
char* pw_dir;
|
|
char* pw_shell;
|
|
};
|
|
|
|
struct passwd* getpwent();
|
|
void setpwent();
|
|
void endpwent();
|
|
struct passwd* getpwnam(const char* name);
|
|
struct passwd* getpwuid(uid_t);
|
|
int putpwent(const struct passwd* p, FILE* stream);
|
|
|
|
int getpwnam_r(const char* name, struct passwd* pwd, char* buf, size_t buflen, struct passwd** result);
|
|
int getpwuid_r(uid_t, struct passwd* pwd, char* buf, size_t buflen, struct passwd** result);
|
|
|
|
__END_DECLS
|