Subversion Repositories HelenOS-historic

Rev

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

Rev 1028 Rev 1049
Line 31... Line 31...
31
#include <stdio.h>
31
#include <stdio.h>
32
#include <unistd.h>
32
#include <unistd.h>
33
#include <stdlib.h>
33
#include <stdlib.h>
34
#include <ns.h>
34
#include <ns.h>
35
 
35
 
36
/*
36
 
37
static void test_printf(void)
37
static void test_printf(void)
38
{
38
{
39
    printf("Simple text.\n");
39
    printf("Simple text.\n");
40
    printf("Now insert '%s' string.\n","this");
40
    printf("Now insert '%s' string.\n","this");
41
    printf("We are brave enought to print numbers like %%d = '%d'\n", 0x123456);
41
    printf("We are brave enought to print numbers like %%d = '%d'\n", 0x123456);
42
    printf("And now... '%b' byte! '%w' word! '%W' Word! \n", 0x12, 0x1234, 0x1234);
42
    printf("And now... '%b' byte! '%w' word! '%W' Word! \n", 0x12, 0x1234, 0x1234);
43
    printf(" '%Q' Q! Another '%q' q! \n", 0x1234567887654321ll, 0x1234567887654321ll);
43
    printf("'%Q' Q! Another '%q' q! \n", 0x1234567887654321ll, 0x1234567887654321ll);
44
    printf(" '%P' with 64bit value and '%p' with 32 bit value. \n", 0x1234567887654321ll, 0x12345678 );
44
    printf("'%Q' with 64bit value and '%p' with 32 bit value. \n", 0x1234567887654321ll, 0x12345678 );
-
 
45
    printf("'%Q' 64bit, '%p' 32bit, '%b' 8bit, '%w' 16bit, '%Q' 64bit and '%s' string.\n", 0x1234567887654321ll, 0x12345678, 0x12, 0x1234, 0x1234567887654321ull, "Lovely string" );
-
 
46
   
45
    printf("Thats all, folks!\n");
47
    printf("Thats all, folks!\n");
46
}
48
}
47
*/
49
 
48
 
50
 
49
extern char _heap;
51
extern char _heap;
50
static void test_mremap(void)
52
static void test_mremap(void)
51
{
53
{
52
    printf("Writing to good memory\n");
54
    printf("Writing to good memory\n");
Line 159... Line 161...
159
 
161
 
160
int main(int argc, char *argv[])
162
int main(int argc, char *argv[])
161
{
163
{
162
    version_print();
164
    version_print();
163
 
165
 
-
 
166
/*  test_printf(); */
164
//  test_ping();
167
//  test_ping();
165
//  test_async_ipc();
168
//  test_async_ipc();
166
    test_advanced_ipc();
169
    test_advanced_ipc();
167
    return 0;
170
    return 0;
168
}
171
}