/haiku/src/system/kernel/ |
H A D | usergroup.cpp | 32 is_privileged(Team* team) in is_privileged() argument 35 return team->effective_uid == 0; in is_privileged() 42 Team* team = thread_get_current_thread()->team; in common_setregid() local 44 TeamLocker teamLocker(team); in common_setregid() 46 bool privileged = kernel || is_privileged(team); in common_setregid() 48 gid_t ssgid = team->saved_set_gid; in common_setregid() 52 rgid = team->real_gid; in common_setregid() 58 team->saved_set_gid = rgid; in common_setregid() 59 team->real_gid = rgid; in common_setregid() 60 team->effective_gid = rgid; in common_setregid() [all …]
|
H A D | team.cpp | 101 void Notify(uint32 eventCode, Team* team); 200 Team* team = sTeamHash.NextElement(&fEntry); in Next() local 201 if (team != NULL) in Next() 202 team->AcquireReference(); in Next() 204 return team; in Next() 308 SetJobControlState(team_id team, job_control_state newState, Signal* signal) in SetJobControlState() argument 310 fTeam(team), in SetJobControlState() 412 TeamNotificationService::Notify(uint32 eventCode, Team* team) in Notify() argument 418 event.AddInt32("team", team->id); in Notify() 419 event.AddPointer("teamStruct", team); in Notify() [all …]
|
H A D | image.cpp | 86 register_image(Team *team, extended_image_info *info, size_t size, bool locked) in register_image() argument 96 image->team = team->id; in register_image() 106 list_add_link_to_head(&team->image_list, image); in register_image() 108 list_add_item(&team->image_list, image); in register_image() 117 TRACE(("register_image(team = %p, image id = %ld, image = %p\n", team, id, image)); in register_image() 125 register_image(Team *team, extended_image_info *info, size_t size) in register_image() argument 127 return register_image(team, info, size, false); in register_image() 134 unregister_image(Team *team, image_id id) in unregister_image() argument 141 if (image != NULL && image->team == team->id) { in unregister_image() 191 count_images(Team *team) in count_images() argument [all …]
|
H A D | signal.cpp | 298 = thread_get_current_thread()->team->QueuedSignalsCounter(); in CreateQueuable() 318 Team* team = thread_get_current_thread()->team; in SetTo() local 323 fSendingProcess = team->id; in SetTo() 324 fSendingUser = team->effective_uid; in SetTo() 786 update_team_threads_signal_flag(Team* team) in update_team_threads_signal_flag() argument 788 for (Thread* thread = team->thread_list; thread != NULL; in update_team_threads_signal_flag() 858 Team* team = thread->team; in dequeue_thread_or_team_signal() local 860 if (team->HighestPendingSignalPriority(nonBlocked) in dequeue_thread_or_team_signal() 862 signal = team->DequeuePendingSignal(nonBlocked, buffer); in dequeue_thread_or_team_signal() 863 update_team_threads_signal_flag(team); in dequeue_thread_or_team_signal() [all …]
|
H A D | UserTimer.cpp | 42 Team* team; member 47 team(NULL), in TimerLocker() 57 void Lock(Team* team, Thread* thread) in Lock() 59 this->team = team; in Lock() 60 team->Lock(); in Lock() 76 team = thread_get_current_thread()->team; in LockAndGetTimer() 77 team->Lock(); in LockAndGetTimer() 83 if (thread->team != team) in LockAndGetTimer() 88 ? thread->UserTimerFor(timerID) : team->UserTimerFor(timerID); in LockAndGetTimer() 102 if (team != NULL) { in Unlock() [all …]
|
/haiku/src/kits/debugger/debugger_interface/ |
H A D | DebugEvent.cpp | 14 DebugEvent::DebugEvent(int32 eventType, team_id team, in DebugEvent() argument 18 fTeam(team), in DebugEvent() 40 CpuStateEvent::CpuStateEvent(debug_debugger_message eventType, team_id team, in CpuStateEvent() argument 43 DebugEvent(eventType, team, thread), in CpuStateEvent() 61 ThreadDebuggedEvent::ThreadDebuggedEvent(team_id team, thread_id thread) in ThreadDebuggedEvent() argument 63 DebugEvent(B_DEBUGGER_MESSAGE_THREAD_DEBUGGED, team, thread) in ThreadDebuggedEvent() 71 DebuggerCallEvent::DebuggerCallEvent(team_id team, thread_id thread, in DebuggerCallEvent() argument 74 DebugEvent(B_DEBUGGER_MESSAGE_DEBUGGER_CALL, team, thread), in DebuggerCallEvent() 83 BreakpointHitEvent::BreakpointHitEvent(team_id team, thread_id thread, in BreakpointHitEvent() argument 86 CpuStateEvent(B_DEBUGGER_MESSAGE_BREAKPOINT_HIT, team, thread, state) in BreakpointHitEvent() [all …]
|
H A D | DebugEvent.h | 31 team_id team, thread_id thread); 52 team_id team, thread_id thread, 65 ThreadDebuggedEvent(team_id team, 72 DebuggerCallEvent(team_id team, 84 BreakpointHitEvent(team_id team, 91 WatchpointHitEvent(team_id team, 98 SingleStepEvent(team_id team, 105 ExceptionOccurredEvent(team_id team, 118 TeamDeletedEvent(team_id team, 125 TeamExecEvent(team_id team, thread_id thread); [all …]
|
/haiku/src/tests/kits/app/broster/ |
H A D | LaunchTester.cpp | 131 ref_for_team(team_id team) in ref_for_team() argument 135 CHK(roster.GetRunningAppInfo(team, &info) == B_OK); in ref_for_team() 277 team_id team; in CommonLaunchTest1() local 278 CHK(context(caller, uninstalledType, &team) == B_LAUNCH_FAILED_APP_NOT_FOUND); in CommonLaunchTest1() 292 team_id team; in CommonLaunchTest2() local 293 CHK(context(caller, fileType1, &team) == B_LAUNCH_FAILED_NO_PREFERRED_APP); in CommonLaunchTest2() 308 team_id team; in CommonLaunchTest3() local 309 CHK(context(caller, fileType1, &team) == B_LAUNCH_FAILED_APP_NOT_FOUND); in CommonLaunchTest3() 327 team_id team; in CommonLaunchTest4() local 328 CHK(context(caller, fileType1, &team) == B_OK); in CommonLaunchTest4() [all …]
|
H A D | LaunchTesterHelper.h | 19 const char **argv, team_id *team) = 0; 45 status_t operator()(LaunchCaller &caller, const char *type, team_id *team); 48 team_id *team); 53 void TerminateApp(team_id team, bool wait = true); 57 BMessenger AppMessengerFor(team_id team) const; 59 BMessage *NextMessageFrom(team_id team, int32 &cookie, 61 bool CheckNextMessage(LaunchCaller &caller, team_id team, int32 &cookie, 63 bool CheckMainArgsMessage(LaunchCaller &caller, team_id team, 66 bool CheckMainArgsMessage(LaunchCaller &caller, team_id team, 70 bool CheckArgvMessage(LaunchCaller &caller, team_id team, int32 &cookie, [all …]
|
H A D | LaunchTesterHelper.cpp | 69 AppInfo(team_id team) in AppInfo() argument 70 : fTeam(team), in AppInfo() 204 team_id *team) in operator ()() argument 214 team); in operator ()() 221 team_id *team) in operator ()() argument 224 status_t result = caller(type, messages, argc, argv, team); in operator ()() 225 if (result == B_OK && team) in operator ()() 226 CreateAppInfo(*team); in operator ()() 317 LaunchContext::TerminateApp(team_id team, bool wait) in TerminateApp() argument 320 if (AppInfo *info = AppInfoFor(team)) in TerminateApp() [all …]
|
/haiku/src/servers/media/ |
H A D | AppManager.cpp | 62 AppManager::HasTeam(team_id team) in HasTeam() argument 65 return fMap.find(team) != fMap.end(); in HasTeam() 70 AppManager::RegisterTeam(team_id team, const BMessenger& messenger) in RegisterTeam() argument 74 TRACE("AppManager::RegisterTeam %" B_PRId32 "\n", team); in RegisterTeam() 75 if (HasTeam(team)) { in RegisterTeam() 77 " registered\n", team); in RegisterTeam() 82 fMap.insert(std::make_pair(team, messenger)); in RegisterTeam() 92 AppManager::UnregisterTeam(team_id team) in UnregisterTeam() argument 94 TRACE("AppManager::UnregisterTeam %" B_PRId32 "\n", team); in UnregisterTeam() 97 bool isRemoved = fMap.erase(team) != 0; in UnregisterTeam() [all …]
|
H A D | NotificationManager.cpp | 83 team_id team; in RequestNotifications() local 87 msg->FindInt32(NOTIFICATION_PARAM_TEAM, &team); in RequestNotifications() 97 n.team = team; in RequestNotifications() 100 "what %#lx\n",node->node, team, what); in RequestNotifications() 119 team_id team; in CancelNotifications() local 123 msg->FindInt32(NOTIFICATION_PARAM_TEAM, &team); in CancelNotifications() 130 "%#lx\n", node->node, team, what); in CancelNotifications() 149 && team == n->team && messenger == n->messenger) in CancelNotifications() 152 && what == n->what && team == n->team && messenger == n->messenger) in CancelNotifications() 155 && team == n->team && messenger == n->messenger && n->node == *node) in CancelNotifications() [all …]
|
H A D | BufferManager.cpp | 42 BufferManager::RegisterBuffer(team_id team, media_buffer_id bufferID, in RegisterBuffer() argument 48 team, bufferID); in RegisterBuffer() 53 B_PRId32 "\n", team, bufferID); in RegisterBuffer() 57 info->teams.insert(team); in RegisterBuffer() 69 BufferManager::RegisterBuffer(team_id team, size_t size, int32 flags, in RegisterBuffer() argument 75 team, area, offset, size); in RegisterBuffer() 81 B_PRIuSIZE ", size = %" B_PRIuSIZE "\n", clonedArea, team, in RegisterBuffer() 94 info.teams.insert(team); in RegisterBuffer() 110 BufferManager::UnregisterBuffer(team_id team, media_buffer_id bufferID) in UnregisterBuffer() argument 114 team, bufferID); in UnregisterBuffer() [all …]
|
/haiku/src/servers/registrar/ |
H A D | ShutdownProcess.cpp | 146 void SetTeam(team_id team) in SetTeam() argument 148 fMessage.ReplaceInt32("team", team); in SetTeam() 162 team_id team; in GetMessageTeam() local 163 if (message->FindInt32("team", &team) != B_OK) in GetMessageTeam() 164 team = -1; in GetMessageTeam() 166 return team; in GetMessageTeam() 174 InternalEvent(uint32 type, team_id team, int32 phase) in InternalEvent() argument 177 fTeam(team), in InternalEvent() 324 status_t AddApp(team_id team, BBitmap* appIcon) in AddApp() argument 332 info->team = team; in AddApp() [all …]
|
/haiku/src/system/kernel/debug/ |
H A D | user_debugger.cpp | 88 thread_get_current_thread()->team->id, port, code, buffer, bufferSize, in debugger_write() 155 Team* team = thread->team; in update_thread_breakpoints_flag() local 157 if (arch_has_breakpoints(&team->debug_info.arch_info)) in update_thread_breakpoints_flag() 170 Team* team = thread_get_current_thread()->team; in update_threads_breakpoints_flag() local 172 TeamLocker teamLocker(team); in update_threads_breakpoints_flag() 174 Thread* thread = team->thread_list; in update_threads_breakpoints_flag() 176 if (arch_has_breakpoints(&team->debug_info.arch_info)) { in update_threads_breakpoints_flag() 192 Team* team = thread->team; in update_thread_debugger_installed_flag() local 194 if (atomic_get(&team->debug_info.flags) & B_TEAM_DEBUG_DEBUGGER_INSTALLED) in update_thread_debugger_installed_flag() 206 update_threads_debugger_installed_flag(Team* team) in update_threads_debugger_installed_flag() argument [all …]
|
/haiku/src/system/libroot/os/ |
H A D | team.c | 14 wait_for_team(team_id team, status_t *_returnCode) 16 return _kern_wait_for_team(team, _returnCode); 22 _get_team_usage_info(team_id team, int32 who, team_usage_info *info, size_t size) in _get_team_usage_info() argument 24 return _kern_get_team_usage_info(team, who, info, size); in _get_team_usage_info() 29 kill_team(team_id team) in kill_team() argument 31 return _kern_kill_team(team); in kill_team() 36 _get_team_info(team_id team, team_info *info, size_t size) in _get_team_info() argument 38 return _kern_get_team_info(team, info, size); in _get_team_info()
|
/haiku/headers/private/app/ |
H A D | RosterPrivate.h | 48 uint32 flags, team_id team, thread_id thread, in AddApplication() argument 51 { return fRoster->_AddApplication(mimeSig, ref, flags, team, thread, in AddApplication() 54 status_t SetSignature(team_id team, const char *mimeSig) const in SetSignature() argument 55 { return fRoster->_SetSignature(team, mimeSig); } in SetSignature() 57 status_t CompleteRegistration(team_id team, thread_id thread, in CompleteRegistration() argument 59 { return fRoster->_CompleteRegistration(team, thread, port); } in CompleteRegistration() 61 status_t IsAppRegistered(const entry_ref *ref, team_id team, in IsAppRegistered() argument 63 { return fRoster->_IsAppRegistered(ref, team, token, preRegistered, in IsAppRegistered() 69 status_t RemoveApp(team_id team) const in RemoveApp() argument 70 { return fRoster->_RemoveApp(team); } in RemoveApp() [all …]
|
/haiku/src/kits/debugger/model/ |
H A D | TeamInfo.cpp | 25 TeamInfo::TeamInfo(team_id team, const team_info& info) in TeamInfo() argument 27 SetTo(team, info); in TeamInfo() 32 TeamInfo::SetTo(team_id team, const team_info& info) in SetTo() argument 34 fTeam = team; in SetTo() 40 TeamInfo::SetTo(team_id team, const BString& arguments) in SetTo() argument 42 fTeam = team; in SetTo()
|
H A D | TargetHost.cpp | 57 TeamInfo* teamInfo = new (std::nothrow) TeamInfo(info.team, info); in AddTeam() 70 TargetHost::RemoveTeam(team_id team) in RemoveTeam() argument 72 int32 index = fTeams.BinarySearchIndexByKey(team, in RemoveTeam() 77 _NotifyTeamRemoved(team); in RemoveTeam() 86 int32 index = fTeams.BinarySearchIndexByKey(info.team, in UpdateTeam() 92 teamInfo->SetTo(info.team, info); in UpdateTeam() 105 TargetHost::TeamInfoByID(team_id team) const in TeamInfoByID() 107 return fTeams.BinarySearchByKey(team, &_FindTeamByKey); in TeamInfoByID() 140 TargetHost::_NotifyTeamRemoved(team_id team) in _NotifyTeamRemoved() argument 144 listener->TeamRemoved(team); in _NotifyTeamRemoved() [all …]
|
/haiku/src/apps/debuganalyzer/gui/main_window/ |
H A D | TeamsPage.cpp | 39 Model::Team* team = fModel->TeamAt(rowIndex); in GetValueAt() local 40 if (team == NULL) in GetValueAt() 45 value.SetTo(team->ID()); in GetValueAt() 48 value.SetTo(team->Name(), B_VARIANT_DONT_COPY_DATA); in GetValueAt() 51 value.SetTo(team->CreationTime()); in GetValueAt() 54 value.SetTo(team->DeletionTime()); in GetValueAt() 127 Model::Team* team = fModel->TeamAt(rowIndex); in TableRowInvoked() local 128 if (team != NULL) in TableRowInvoked() 129 fParent->OpenTeamWindow(team); in TableRowInvoked()
|
/haiku/src/bin/debug/profile/ |
H A D | profile.cpp | 124 for (int32 i = 0; Team* team = fTeams.ItemAt(i); i++) in ~ThreadManager() 125 team->ReleaseReference(); in ~ThreadManager() 155 return _AddTeam(addedInfo->team, addedInfo, _team); in AddTeam() 165 return AddThread(threadInfo.team, threadID, threadInfo.name, in AddThread() 174 Team* team = FindTeam(teamID); in AddThread() local 175 if (team == NULL) in AddThread() 178 Thread* thread = new(std::nothrow) Thread(team, threadID, name, cpuTime); in AddThread() 188 error = team->InitThread(thread); in AddThread() 200 if (Team* team = FindTeam(teamID)) { in RemoveTeam() local 201 if (team == fKernelTeam) in RemoveTeam() [all …]
|
/haiku/3rdparty/mmu_man/scripts/ |
H A D | dump_windows.sh | 4 roster | sed -n 's/)$//;s/^ *//;/[^64] (/s/ .*(/\t/p' | while read team app; do 5 echo "# team $team $app" 6 c="$(hey "$team" count Window | grep result | cut -d" " -f 7)" 9 title="$(hey "$team" get Title of Window "$w" | sed -n 's/"$//;/"result"/s/.*TYPE) : "//p')" 10 frame="$(hey "$team" get Frame of Window "$w" | sed -n 's/)$//;/"result"/s/.*TYPE) : BRect(//p')"
|
/haiku/src/system/libroot/posix/sys/ |
H A D | priority.c | 125 team_info team; in getpriority() local 129 while (get_next_team_info(&team_cookie, &team) == B_OK) { in getpriority() 130 if (getpgid(team.team) != who) in getpriority() 133 while (get_next_thread_info(team.team, &th_cookie, &thread) in getpriority() 151 team_info team; in getpriority() local 154 while (get_next_team_info(&team_cookie, &team) == B_OK) { in getpriority() 155 if (team.uid != euid) in getpriority() 158 while (get_next_thread_info(team.team, &th_cookie, &thread) in getpriority()
|
/haiku/src/tests/servers/registrar/ |
H A D | RosterShell.cpp | 95 team_id team = (team_id)(uintptr_t)teamList.ItemAt(0); in CmdActivate() local 96 status_t error = roster.ActivateApp(team); in CmdActivate() 99 ": %s\n", team, strerror(error)); in CmdActivate() 147 team_id team = -1; in ParseTeamList() local 148 if (sscanf(arg.c_str(), "%" B_PRId32, &team) > 0) in ParseTeamList() 149 teamList->AddItem((void*)(addr_t)team); in ParseTeamList() 170 team_id team = (team_id)(uintptr_t)teamList.ItemAt(i); in CmdList() local 172 status_t error = roster.GetRunningAppInfo(team, &info); in CmdList() 174 printf("%-8" B_PRId32 "%-40s\n", team, info.signature); in CmdList() 176 printf("%-8" B_PRId32 "failed to get the app_info: %s\n", team, in CmdList() [all …]
|
/haiku/headers/private/kernel/ |
H A D | team.h | 26 void team_remove_team(Team *team, pid_t& _signalGroup); 27 port_id team_shutdown_team(Team *team); 28 void team_delete_team(Team *team, port_id debuggerPort); 37 struct job_control_entry* team_get_death_entry(Team *team, 39 void team_init_exit_info_on_error(Team* team); 48 void team_set_job_control_state(Team* team, job_control_state newState, 55 status_t start_watching_team(team_id team, void (*hook)(team_id, void *), 57 status_t stop_watching_team(team_id team, void (*hook)(team_id, void *), 60 struct user_thread* team_allocate_user_thread(Team* team); 61 void team_free_user_thread(Team* team, struct user_thread* userThread); [all …]
|