Checkin per Jason Vandermark.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@296 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Phipps
2002-07-18 02:16:28 +00:00
parent eac95b9746
commit a17c6b5131
2 changed files with 26 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#include <stdio.h>
#include "OS.h"
//
// Sequentially search for valid ports by port number and display
// their properties.
//
int main(int argc, char* argv[])
{
port_info info;
for (int port_num = 0; port_num < 9999; port_num++)
{
if (B_OK == get_port_info(port_num, &info) )
{
// Found a valid port - display it's properties.
//
printf("%04u: Team %u - %s\n",
(unsigned int)info.port,
(unsigned int)info.team,
info.name);
}
}
return 0;
}
Binary file not shown.