Added symbol exports for the user/group ID functions, and [sg]ethostname(), although those are not yet implemented. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1421 a95241bf-73f2-0310-859d-f6bbb57e9c96
63 lines
742 B
C
63 lines
742 B
C
/*
|
|
** Copyright 2002, Axel Dörfler, [email protected]. All rights reserved.
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
*/
|
|
|
|
|
|
#include <pwd.h>
|
|
#include <syscalls.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
|
|
|
|
// ToDo: implement pwd stuff for real!
|
|
|
|
|
|
struct passwd *
|
|
getpwent(void)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
|
|
void
|
|
setpwent(void)
|
|
{
|
|
}
|
|
|
|
|
|
void
|
|
endpwent(void)
|
|
{
|
|
}
|
|
|
|
|
|
struct passwd *
|
|
getpwnam(const char *name)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
|
|
int
|
|
getpwnam_r(const char *name, struct passwd *passwd, char *buffer,
|
|
size_t bufferSize, struct passwd **result)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
|
|
struct passwd *
|
|
getpwuid(uid_t uid)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
|
|
int
|
|
getpwuid_r(uid_t uid, struct passwd *passwd, char *buffer,
|
|
size_t bufferSize, struct passwd **result)
|
|
{
|
|
return -1;
|
|
}
|