Subversion Repositories HelenOS-historic

Rev

Rev 1427 | Rev 1441 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1427 Rev 1435
Line 42... Line 42...
42
#include <string.h>
42
#include <string.h>
43
#include <errno.h>
43
#include <errno.h>
44
#include <kbd.h>
44
#include <kbd.h>
45
#include <ipc/fb.h>
45
#include <ipc/fb.h>
46
#include <async.h>
46
#include <async.h>
-
 
47
#include <time.h>
47
 
48
 
48
int a;
49
int a;
49
atomic_t ftx;
50
atomic_t ftx;
50
 
51
 
51
int __thread stage;
52
int __thread stage;
Line 399... Line 400...
399
   
400
   
400
//  printf("Test: Hangin up\n");
401
//  printf("Test: Hangin up\n");
401
    ipc_hangup(phoneid);
402
    ipc_hangup(phoneid);
402
}
403
}
403
 
404
 
-
 
405
static void test_time(void)
-
 
406
{
-
 
407
    int rc;
-
 
408
    struct timeval tv;
-
 
409
    struct timezone tz;
-
 
410
 
-
 
411
    while (1) {
-
 
412
        rc = gettimeofday(&tv, &tz);
-
 
413
        printf("Rc: %d, Secs: %d, Usecs: %d\n", rc, tv.tv_sec,
-
 
414
               tv.tv_usec);
-
 
415
    }
-
 
416
}
404
 
417
 
405
int main(int argc, char *argv[])
418
int main(int argc, char *argv[])
406
{
419
{
407
    pstid_t ptid;
420
    pstid_t ptid;
408
    int tid;
421
    int tid;
Line 418... Line 431...
418
//  test_hangup();
431
//  test_hangup();
419
//  test_slam();
432
//  test_slam();
420
//  test_as_area_send();
433
//  test_as_area_send();
421
//  test_pci();
434
//  test_pci();
422
//  test_kbd();
435
//  test_kbd();
-
 
436
    test_time();
423
    test_async_kbd();
437
//  test_async_kbd();
424
//  test_fb();
438
//  test_fb();
425
 
439
 
426
    printf("Hello\nThis is Init\n\nBye.");
440
    printf("Hello\nThis is Init\n\nBye.");
427
   
441
   
428
 
442