Build registrar for x86_64.
This commit is contained in:
parent
d93ed09564
commit
50cedfd5b0
@ -46,7 +46,7 @@ SYSTEM_LIBS = libbe.so libroot.so libroot-addon-icu.so
|
||||
|
||||
PRIVATE_SYSTEM_LIBS = ;
|
||||
|
||||
SYSTEM_SERVERS = ;
|
||||
SYSTEM_SERVERS = registrar ;
|
||||
|
||||
SYSTEM_ADD_ONS_BUS_MANAGERS = $(ATA_ONLY)ata pci ps2 isa scsi config_manager ;
|
||||
SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs iso9660 attribute_overlay write_overlay ;
|
||||
@ -97,14 +97,14 @@ AddFilesToHaikuImage system preferences : $(SYSTEM_PREFERENCES) ;
|
||||
AddFilesToHaikuImage system demos : $(SYSTEM_DEMOS) ;
|
||||
|
||||
AddSymlinkToHaikuImage system bin : bash : sh ;
|
||||
#AddSymlinkToHaikuImage system bin : less : more ;
|
||||
#AddSymlinkToHaikuImage system bin : gzip : gunzip ;
|
||||
#AddSymlinkToHaikuImage system bin : gzip : zcat ;
|
||||
#AddSymlinkToHaikuImage system bin : zdiff : zcmp ;
|
||||
#AddSymlinkToHaikuImage system bin : unzip : zipinfo ;
|
||||
#AddSymlinkToHaikuImage system bin : gawk : awk ;
|
||||
#AddSymlinkToHaikuImage system bin : grep : egrep ;
|
||||
#AddSymlinkToHaikuImage system bin : grep : fgrep ;
|
||||
AddSymlinkToHaikuImage system bin : less : more ;
|
||||
AddSymlinkToHaikuImage system bin : gzip : gunzip ;
|
||||
AddSymlinkToHaikuImage system bin : gzip : zcat ;
|
||||
AddSymlinkToHaikuImage system bin : zdiff : zcmp ;
|
||||
AddSymlinkToHaikuImage system bin : unzip : zipinfo ;
|
||||
AddSymlinkToHaikuImage system bin : gawk : awk ;
|
||||
AddSymlinkToHaikuImage system bin : grep : egrep ;
|
||||
AddSymlinkToHaikuImage system bin : grep : fgrep ;
|
||||
|
||||
|
||||
# scripts and data files
|
||||
|
@ -93,15 +93,15 @@ fi
|
||||
|
||||
# Launch servers
|
||||
|
||||
# We must wait for the app_server and registrar to be ready
|
||||
launch $SERVERS/registrar _roster_thread_ # launch registrar
|
||||
|
||||
# If app_server doesn't exist, just run consoled.
|
||||
if [ ! -f "/boot/$SERVERS/app_server" ]; then
|
||||
/bin/consoled
|
||||
exit
|
||||
fi
|
||||
|
||||
# We must wait for the app_server and registrar to be ready
|
||||
launch $SERVERS/registrar _roster_thread_ # launch registrar
|
||||
|
||||
launch $SERVERS/debug_server # launch debug_server
|
||||
|
||||
# Init Network
|
||||
|
@ -975,7 +975,8 @@ AuthenticationManager::_RequestThread()
|
||||
debug_printf("B_REG_UPDATE_GROUP done: currently unsupported!\n");
|
||||
break;
|
||||
default:
|
||||
debug_printf("REG: invalid message: %lu\n", message.What());
|
||||
debug_printf("REG: invalid message: %" B_PRIu32 "\n",
|
||||
message.What());
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ EventQueue::EventQueue(const char *name)
|
||||
EventQueue::~EventQueue()
|
||||
{
|
||||
Die();
|
||||
while (Event *event = (Event*)fEvents.RemoveItem(0L)) {
|
||||
while (Event *event = (Event*)fEvents.RemoveItem((int32)0)) {
|
||||
if (event->IsAutoDelete())
|
||||
delete event;
|
||||
}
|
||||
@ -347,7 +347,7 @@ EventQueue::_EventLooper()
|
||||
// do events, that are supposed to go off
|
||||
while (!fTerminating && Lock() && !fEvents.IsEmpty()
|
||||
&& system_time() >= _EventAt(0)->Time()) {
|
||||
Event *event = (Event*)fEvents.RemoveItem(0L);
|
||||
Event *event = (Event*)fEvents.RemoveItem((int32)0);
|
||||
Unlock();
|
||||
bool autoDeleteEvent = event->IsAutoDelete();
|
||||
bool deleteEvent = event->Do(this) || autoDeleteEvent;
|
||||
|
@ -181,7 +181,7 @@ MIMEManager::MessageReceived(BMessage *message)
|
||||
err = fDatabase.GuessMimeType(&ref, &str);
|
||||
else if (err == B_NAME_NOT_FOUND) {
|
||||
const void *data;
|
||||
int32 dataSize;
|
||||
ssize_t dataSize;
|
||||
err = message->FindData("data", B_RAW_TYPE, &data,
|
||||
&dataSize);
|
||||
if (!err)
|
||||
@ -290,8 +290,8 @@ MIMEManager::MessageReceived(BMessage *message)
|
||||
}
|
||||
|
||||
default:
|
||||
printf("MIMEMan: msg->what == %lx (%.4s)\n", message->what,
|
||||
(char*)&(message->what));
|
||||
printf("MIMEMan: msg->what == %" B_PRIx32 " (%.4s)\n",
|
||||
message->what, (char*)&(message->what));
|
||||
BLooper::MessageReceived(message);
|
||||
break;
|
||||
}
|
||||
|
@ -408,12 +408,13 @@ MessagingService::_CommandProcessor()
|
||||
const messaging_command *command = area->PopCommand();
|
||||
if (!command) {
|
||||
// something's seriously wrong
|
||||
ERROR("MessagingService::_CommandProcessor(): area %p (%ld) "
|
||||
"has command count %ld, but doesn't return any more "
|
||||
"commands.", area, area->ID(), area->CountCommands());
|
||||
ERROR("MessagingService::_CommandProcessor(): area %p (%"
|
||||
B_PRId32 ") has command count %" B_PRId32 ", but doesn't "
|
||||
"return any more commands.", area, area->ID(),
|
||||
area->CountCommands());
|
||||
break;
|
||||
}
|
||||
PRINT("MessagingService::_CommandProcessor(): got command %lu\n",
|
||||
PRINT("MessagingService::_CommandProcessor(): got command %" B_PRIu32 "\n",
|
||||
command->command);
|
||||
|
||||
// dispatch the command
|
||||
@ -424,7 +425,7 @@ command->command);
|
||||
command->size - sizeof(messaging_command));
|
||||
} else {
|
||||
WARNING("MessagingService::_CommandProcessor(): No handler "
|
||||
"found for command %lu\n", command->command);
|
||||
"found for command %" B_PRIu32 "\n", command->command);
|
||||
}
|
||||
}
|
||||
|
||||
@ -440,7 +441,7 @@ command->command);
|
||||
} else {
|
||||
// Bad, but what can we do?
|
||||
ERROR("MessagingService::_CommandProcessor(): Failed to clone "
|
||||
"kernel area %ld: %s\n", area->NextKernelAreaID(),
|
||||
"kernel area %" B_PRId32 ": %s\n", area->NextKernelAreaID(),
|
||||
strerror(error));
|
||||
}
|
||||
|
||||
|
@ -245,10 +245,10 @@ RecentEntries::Print()
|
||||
std::list<recent_entry*>::iterator item;
|
||||
int counter = 1;
|
||||
for (item = fEntryList.begin(); item != fEntryList.end(); item++) {
|
||||
printf("%d: device == '%ld', dir == '%lld', name == '%s', app == '%s', "
|
||||
"index == %ld\n", counter++, (*item)->ref.device,
|
||||
(*item)->ref.directory, (*item)->ref.name, (*item)->sig.c_str(),
|
||||
(*item)->index);
|
||||
printf("%d: device == '%" B_PRIdDEV "', dir == '%" B_PRIdINO "', "
|
||||
"name == '%s', app == '%s', index == %" B_PRId32 "\n", counter++,
|
||||
(*item)->ref.device, (*item)->ref.directory, (*item)->ref.name,
|
||||
(*item)->sig.c_str(), (*item)->index);
|
||||
}
|
||||
return B_OK;
|
||||
}
|
||||
@ -308,9 +308,10 @@ RecentEntries::Save(FILE* file, const char *description, const char *tag)
|
||||
for (std::list<recent_entry*>::iterator item = list.begin();
|
||||
item != list.end(); i++, item++) {
|
||||
recent_entry *entry = *item;
|
||||
if (entry)
|
||||
fprintf(file, " \"%s\" %ld", entry->sig.c_str(), entry->index);
|
||||
else {
|
||||
if (entry) {
|
||||
fprintf(file, " \"%s\" %" B_PRId32, entry->sig.c_str(),
|
||||
entry->index);
|
||||
} else {
|
||||
D(PRINT("WARNING: RecentEntries::Save(): The entry %ld "
|
||||
"entries from the front of the compiled recent_entry* "
|
||||
"list for the entry ref (%ld, %lld, '%s') was found to "
|
||||
|
@ -398,9 +398,10 @@ AssociatedTypes::BuildAssociatedTypesTable()
|
||||
if (!err) {
|
||||
fHaveDoneFullBuild = true;
|
||||
// PrintToStream();
|
||||
} else {
|
||||
DBG(OUT("Mime::AssociatedTypes::BuildAssociatedTypesTable() failed, "
|
||||
"error code == 0x%" B_PRIx32 "\n", err));
|
||||
}
|
||||
else
|
||||
DBG(OUT("Mime::AssociatedTypes::BuildAssociatedTypesTable() failed, error code == 0x%lx\n", err));
|
||||
return err;
|
||||
|
||||
}
|
||||
|
@ -406,7 +406,8 @@ InstalledTypes::_BuildInstalledTypesList()
|
||||
// Add this supertype
|
||||
std::map<std::string, Supertype>::iterator i;
|
||||
if (_AddSupertype(supertype, i) != B_OK)
|
||||
DBG(OUT("Mime::InstalledTypes::BuildInstalledTypesList() -- Error adding supertype '%s': 0x%lx\n",
|
||||
DBG(OUT("Mime::InstalledTypes::BuildInstalledTypesList()"
|
||||
" -- Error adding supertype '%s': 0x%" B_PRIx32 "\n",
|
||||
supertype, err));
|
||||
Supertype &supertypeRef = fSupertypes[supertype];
|
||||
|
||||
@ -435,7 +436,8 @@ InstalledTypes::_BuildInstalledTypesList()
|
||||
// Add the subtype
|
||||
if (_AddSubtype(supertypeRef, type.String()
|
||||
+ subStart + 1) != B_OK) {
|
||||
DBG(OUT("Mime::InstalledTypes::BuildInstalledTypesList() -- Error adding subtype '%s/%s': 0x%lx\n",
|
||||
DBG(OUT("Mime::InstalledTypes::BuildInstalledTypesList()"
|
||||
" -- Error adding subtype '%s/%s': 0x%" B_PRIx32 "\n",
|
||||
supertype, type.String() + subStart + 1, err));
|
||||
}
|
||||
}
|
||||
|
@ -125,9 +125,9 @@ MimeUpdateThread::ThreadFunction()
|
||||
status_t error = fManagerMessenger.SendMessage(&msg, (BHandler*)NULL, 500000);
|
||||
if (error)
|
||||
OUT("WARNING: ThreadManager::ThreadEntryFunction(): Termination notification "
|
||||
"failed with error 0x%lx\n", error);
|
||||
"failed with error 0x%" B_PRIx32 "\n", error);
|
||||
}
|
||||
DBG(OUT("(id: %ld) exiting mime update thread with result 0x%lx\n",
|
||||
DBG(OUT("(id: %ld) exiting mime update thread with result 0x%" B_PRIx32 "\n",
|
||||
find_thread(NULL), err));
|
||||
return err;
|
||||
}
|
||||
|
@ -199,8 +199,9 @@ RegistrarThreadManager::KillThreads()
|
||||
(*i)->Id()));
|
||||
status_t err = kill_thread((*i)->Id());
|
||||
if (err)
|
||||
OUT("WARNING: RegistrarThreadManager::KillThreads(): kill_thread(%ld) failed with "
|
||||
"error code 0x%lx\n", (*i)->Id(), err);
|
||||
OUT("WARNING: RegistrarThreadManager::KillThreads(): kill_thread(%"
|
||||
B_PRId32 ") failed with error code 0x%" B_PRIx32 "\n",
|
||||
(*i)->Id(), err);
|
||||
}
|
||||
DBG(OUT("RegistrarThreadManager::KillThreads(): Cleaning up thread %ld\n",
|
||||
(*i)->Id()));
|
||||
|
@ -408,8 +408,10 @@ SnifferRules::BuildRuleList()
|
||||
fMaxBytesNeeded = maxBytesNeeded;
|
||||
fHaveDoneFullBuild = true;
|
||||
// PrintToStream();
|
||||
} else
|
||||
DBG(OUT("Mime::SnifferRules::BuildRuleList() failed, error code == 0x%lx\n", err));
|
||||
} else {
|
||||
DBG(OUT("Mime::SnifferRules::BuildRuleList() failed, error code == 0x%"
|
||||
B_PRIx32 "\n", err));
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user