blob: 2c79775109806bdc53fcc4c803c03743746e71b5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <OpenDirectory/OpenDirectory.h>
ODNodeRef CreateNode(void);
ODRecordRef CopyGroupRecordWithGID(ODNodeRef, gid_t);
ODRecordRef CopyUserRecordWithUID(ODNodeRef, uid_t);
ODRecordRef CopyUserRecordWithUsername(ODNodeRef, char *);
CFArrayRef CopyGroupRecordsForUser(ODNodeRef, ODRecordRef, CFIndex);
CFStringRef CopyAttrFromRecord(ODRecordRef record, CFStringRef attribute);
int GetIntAttrFromRecord(ODRecordRef record, CFStringRef attribute, int *output);
uid_t GetUIDFromRecord(ODRecordRef);
gid_t GetGIDFromRecord(ODRecordRef);
int cfprintf(FILE *file, const char *format, ...);
int cprintf(const char *format, ...);
|