ladybird/Userland/Libraries/LibC/shadow.h
Daniel Bertalan a99685ece7 LibC: Remove #ifdef AK_OS_MACOS checks from shadow.h
These checks were added because macOS doesn't have `shadow.h`, so we
would end up including our own LibC's `shadow.h` when we built Lagom.

All inclusions of this header in our code base are now guarded by
`#ifndef AK_OS_BSD_GENERIC`, so these checks are now pointless.
2022-01-08 19:22:00 +01:00

39 lines
989 B
C

/*
* Copyright (c) 2021, Gunnar Beutner <gbeutner@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 spwd {
char* sp_namp;
char* sp_pwdp;
long int sp_lstchg;
long int sp_min;
long int sp_max;
long int sp_warn;
long int sp_inact;
long int sp_expire;
unsigned long int sp_flag;
};
struct spwd* getspent(void);
void setspent(void);
void endspent(void);
struct spwd* getspnam(const char* name);
int putspent(struct spwd* p, FILE* stream);
int getspent_r(struct spwd* spbuf, char* buf, size_t buflen, struct spwd** spbufp);
int getspnam_r(const char* name, struct spwd* spbuf, char* buf, size_t buflen, struct spwd** spbufp);
int fgetspent_r(FILE* fp, struct spwd* spbuf, char* buf, size_t buflen, struct spwd** spbufp);
int sgetspent_r(const char* s, struct spwd* spbuf, char* buf, size_t buflen, struct spwd** spbufp);
__END_DECLS