Works much better when actually allocating the TLS entry...

Now the backend works, Login can list users.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23509 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-01-14 02:03:34 +00:00
parent d1854cb931
commit 82062f804c
4 changed files with 10 additions and 6 deletions

View File

@ -32,6 +32,7 @@ void __init_heap(void);
void __init_time(void);
void __arch_init_time(struct real_time_data *data, bool setDefaults);
bigtime_t __arch_get_system_time_offset(struct real_time_data *data);
void __init_pwd_backend(void);
#ifdef __cplusplus
}

View File

@ -58,6 +58,7 @@ initialize_before(image_id imageID)
__init_fork();
__init_heap();
__init_env(__gRuntimeLoader->program_args);
__init_pwd_backend();
}

View File

@ -133,3 +133,7 @@ getpwuid_r(uid_t uid, struct passwd *passwd, char *buffer,
return 0;
}
void __init_pwd_backend(void)
{
}

View File

@ -620,9 +620,7 @@ struct passwd *getpwnam(const char *name)
}
void __init_pwd_stuff(void)
//void _multiuser_init(void)
void __init_pwd_backend(void)
{
/* dev_t for the boot volume */
boot_device = dev_for_path("/boot");
@ -630,12 +628,12 @@ void __init_pwd_stuff(void)
pw_tls_id = tls_allocate();
}
void __fini_pwd_stuff(void)
//void _multiuser_fini(void)
/*
void __fini_pwd_backend(void)
{
}
*/
#endif /* REAL_MULTIUSER */