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:
@@ -32,6 +32,7 @@ void __init_heap(void);
|
|||||||
void __init_time(void);
|
void __init_time(void);
|
||||||
void __arch_init_time(struct real_time_data *data, bool setDefaults);
|
void __arch_init_time(struct real_time_data *data, bool setDefaults);
|
||||||
bigtime_t __arch_get_system_time_offset(struct real_time_data *data);
|
bigtime_t __arch_get_system_time_offset(struct real_time_data *data);
|
||||||
|
void __init_pwd_backend(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ initialize_before(image_id imageID)
|
|||||||
__init_fork();
|
__init_fork();
|
||||||
__init_heap();
|
__init_heap();
|
||||||
__init_env(__gRuntimeLoader->program_args);
|
__init_env(__gRuntimeLoader->program_args);
|
||||||
|
__init_pwd_backend();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -133,3 +133,7 @@ getpwuid_r(uid_t uid, struct passwd *passwd, char *buffer,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void __init_pwd_backend(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -620,9 +620,7 @@ struct passwd *getpwnam(const char *name)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void __init_pwd_backend(void)
|
||||||
void __init_pwd_stuff(void)
|
|
||||||
//void _multiuser_init(void)
|
|
||||||
{
|
{
|
||||||
/* dev_t for the boot volume */
|
/* dev_t for the boot volume */
|
||||||
boot_device = dev_for_path("/boot");
|
boot_device = dev_for_path("/boot");
|
||||||
@@ -630,12 +628,12 @@ void __init_pwd_stuff(void)
|
|||||||
pw_tls_id = tls_allocate();
|
pw_tls_id = tls_allocate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void __fini_pwd_stuff(void)
|
/*
|
||||||
//void _multiuser_fini(void)
|
void __fini_pwd_backend(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
#endif /* REAL_MULTIUSER */
|
#endif /* REAL_MULTIUSER */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user