Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes and stubs to the glibc option for systemd #1200

Merged
merged 2 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions options/glibc/generic/shadow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,8 @@ struct spwd *fgetspent(FILE *) {
void endspent(void) {
mlibc::infoLogger() << "mlibc: endspent is a stub" << frg::endlog;
}

struct spwd *sgetspent(const char *) {
__ensure(!"Not implemented");
__builtin_unreachable();
}
1 change: 1 addition & 0 deletions options/glibc/include/shadow.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct spwd *getspnam(const char *__name);
int getspnam_r(const char *__name, struct spwd *__sp, char *__buf, size_t __size, struct spwd **__res);
struct spwd *fgetspent(FILE *__f);
void endspent(void);
struct spwd *sgetspent(const char *__s);

#endif /* !__MLIBC_ABI_ONLY */

Expand Down
2 changes: 1 addition & 1 deletion options/glibc/include/sys/procfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ typedef unsigned long elf_greg_t;
typedef elf_greg_t elf_gregset_t[ELF_NGREG];

typedef struct user_fpregs_struct elf_fpregset_t;
typedef struct user_regs_struct prgregset_t;
typedef elf_gregset_t prgregset_t;
typedef struct user_fpregs_struct prfpregset_t;

#define ELF_PRARGSZ 80
Expand Down
Loading