Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics
[simgrid.git] / testsuite / gras / gras_dummy.c
1 /* $Id$ */
2
3 /* gras_dummy - dummy implementation of function depending on the RL or SG, */
4 /*              so that we can build a dummy library to test the Utils      */
5
6 /* Authors: Martin Quinson                                                  */
7 /* Copyright (C) 2003 the OURAGAN project.                                  */
8
9 /* This program is free software; you can redistribute it and/or modify it
10    under the terms of the license (GNU LGPL) which comes with this package. */
11
12
13 #include "gras_private.h"
14
15 gras_error_t gras_process_init() {
16   return unknown_error;
17 }
18
19 gras_error_t gras_process_exit() {
20   return unknown_error;
21 }
22
23 gras_error_t gras_sock_client_open(const char *host, short port, 
24                                    /* OUT */ gras_sock_t **sock) {
25   return unknown_error;
26 }
27
28
29 gras_error_t gras_sock_server_open(unsigned short startingPort, 
30                                    unsigned short endingPort,
31                                    /* OUT */ gras_sock_t **sock) {
32
33   return unknown_error;
34 }
35
36 gras_error_t gras_sock_close(gras_sock_t *sock) {
37   return unknown_error;
38 }
39
40 unsigned short gras_sock_get_my_port(gras_sock_t *sd) {
41   return -1;
42 }
43
44 unsigned short gras_sock_get_peer_port(gras_sock_t *sd) {
45   return -1;
46 }
47
48 char * gras_sock_get_peer_name(gras_sock_t *sd) {
49   return NULL;
50 }
51
52 gras_error_t grasMsgRecv(gras_msg_t **msg,
53                          double timeOut) {
54   return unknown_error;
55 }
56 gras_error_t gras_msg_send(gras_sock_t *sd,
57                            gras_msg_t *msg,
58                            e_gras_free_directive_t freeDirective) {
59   return unknown_error;
60 }
61 gras_error_t gras_rawsock_server_open(unsigned short startingPort, 
62                                   unsigned short endingPort,
63                                   unsigned int bufSize, gras_rawsock_t **sock) {
64   return unknown_error;
65 }
66 gras_error_t gras_rawsock_client_open(const char *host, short port, 
67                                   unsigned int bufSize, gras_rawsock_t **sock) {
68   return unknown_error;
69 }
70 gras_error_t gras_rawsock_close(gras_rawsock_t *sd) {
71   return unknown_error;
72 }
73 unsigned short gras_rawsock_get_peer_port(gras_rawsock_t *sd) {
74   return -1;
75 }
76 gras_error_t
77 gras_rawsock_recv(gras_rawsock_t *sd, unsigned int expSize, unsigned int msgSize, 
78                   unsigned int timeout) {
79   return unknown_error;
80 }
81 gras_error_t
82 gras_rawsock_send(gras_rawsock_t *sd, unsigned int expSize, unsigned int msgSize){
83   return unknown_error;
84 }
85 gras_process_data_t *gras_process_data_get() {
86   return NULL;
87 }
88
89 double gras_time() {
90   return 0;
91 }
92
93 void gras_sleep(unsigned long sec,unsigned long usec) {}
94