Subversion Repositories HelenOS

Rev

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

Rev 4704 Rev 4743
Line 42... Line 42...
42
 
42
 
43
#include <ipc/ipc.h>
43
#include <ipc/ipc.h>
44
#include <ipc/services.h>
44
#include <ipc/services.h>
45
 
45
 
46
#include "../../err.h"
46
#include "../../err.h"
47
#include "../../messages.h"
-
 
48
#include "../../modules.h"
47
#include "../../modules.h"
49
#include "../../self_test.h"
48
#include "../../self_test.h"
50
 
49
 
-
 
50
#include "../net_messages.h"
-
 
51
 
51
/** Networking startup module name.
52
/** Networking startup module name.
52
 */
53
 */
53
#define NAME    "Networking startup"
54
#define NAME    "Networking startup"
54
 
55
 
55
/** Module entry point.
56
/** Module entry point.
Line 86... Line 87...
86
    // start net
87
    // start net
87
    net_phone = connect_to_service( SERVICE_NETWORKING );
88
    net_phone = connect_to_service( SERVICE_NETWORKING );
88
    if( ERROR_OCCURRED( ipc_call_sync_0_0( net_phone, NET_NET_STARTUP ))){
89
    if( ERROR_OCCURRED( ipc_call_sync_0_0( net_phone, NET_NET_STARTUP ))){
89
        printf( "ERROR %d\n", ERROR_CODE );
90
        printf( "ERROR %d\n", ERROR_CODE );
90
        return ERROR_CODE;
91
        return ERROR_CODE;
-
 
92
    }else{
-
 
93
        printf( "OK\n" );
91
    }
94
    }
92
    printf( "OK\n" );
-
 
93
 
95
 
94
    return EOK;
96
    return EOK;
95
}
97
}
96
 
98
 
97
task_id_t spawn( char * fname ){
99
task_id_t spawn( char * fname ){