]> git.cameronkatri.com Git - apple_cmds.git/blob - shell_cmds/id/open_directory.h
file_cmds: Fix ipcs
[apple_cmds.git] / shell_cmds / id / open_directory.h
1 #include <OpenDirectory/OpenDirectory.h>
2
3 ODNodeRef CreateNode(void);
4
5 ODRecordRef CopyGroupRecordWithGID(ODNodeRef, gid_t);
6
7 ODRecordRef CopyUserRecordWithUID(ODNodeRef, uid_t);
8 ODRecordRef CopyUserRecordWithUsername(ODNodeRef, char *);
9
10 CFArrayRef CopyGroupRecordsForUser(ODNodeRef, ODRecordRef, CFIndex);
11
12 CFStringRef CopyAttrFromRecord(ODRecordRef record, CFStringRef attribute);
13 int GetIntAttrFromRecord(ODRecordRef record, CFStringRef attribute, int *output);
14 uid_t GetUIDFromRecord(ODRecordRef);
15 gid_t GetGIDFromRecord(ODRecordRef);
16
17 int cfprintf(FILE *file, const char *format, ...);
18 int cprintf(const char *format, ...);