Searched refs:computer_name (Results 1 - 3 of 3) sorted by relevance

/macosx-10.10/bootp-298/IPConfiguration.bproj/
H A Dipconfigd_threads.h152 extern char * computer_name();
H A Dipconfigd.c952 computer_name() function
964 myCFStringCopyShortenedString(CFStringRef computer_name, int desired_length) argument
972 if (computer_name == NULL
976 short_name = CFStringCreateMutableCopy(kCFAllocatorDefault, 0, computer_name);
981 CFStringFindAndReplace(short_name, CFSTR("macbook-air"), CFSTR("Air"), CFRangeMake(0, CFStringGetLength(computer_name)), kCFCompareCaseInsensitive);
982 CFStringFindAndReplace(short_name, CFSTR("macbook-pro"), CFSTR("MBP"), CFRangeMake(0, CFStringGetLength(computer_name)), kCFCompareCaseInsensitive);
983 CFStringFindAndReplace(short_name, CFSTR("mac-mini"), CFSTR("Mini"), CFRangeMake(0, CFStringGetLength(computer_name)), kCFCompareCaseInsensitive);
984 CFStringFindAndReplace(short_name, CFSTR("mac-pro"), CFSTR("Pro"), CFRangeMake(0, CFStringGetLength(computer_name)), kCFCompareCaseInsensitive);
H A Ddhcp.c361 char * name = computer_name();

Completed in 190 milliseconds