git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UDI/NE2000 - Fiddling
[tpg/acess2.git]
/
Usermode
/
Applications
/
ping_src
/
main.c
diff --git
a/Usermode/Applications/ping_src/main.c
b/Usermode/Applications/ping_src/main.c
index
33113c8
..
7c10e57
100644
(file)
--- a/
Usermode/Applications/ping_src/main.c
+++ b/
Usermode/Applications/ping_src/main.c
@@
-1,5
+1,5
@@
/*
/*
- * Acess2
IFCONFIG
command
+ * Acess2
ping
command
*/
#include <stdlib.h>
#include <stdint.h>
*/
#include <stdlib.h>
#include <stdint.h>
@@
-88,7
+88,7
@@
int main(int argc, char *argv[])
free(iface); // TODO: Handle when this is not heap
iface = _iface;
printf("iface = '%s'\n", iface);
free(iface); // TODO: Handle when this is not heap
iface = _iface;
printf("iface = '%s'\n", iface);
- fd =
o
pen(iface, OPENFLAG_EXEC);
+ fd =
_SysO
pen(iface, OPENFLAG_EXEC);
if(fd == -1) {
fprintf(stderr, "ERROR: Unable to open interface '%s'\n", iface);
return 1;
if(fd == -1) {
fprintf(stderr, "ERROR: Unable to open interface '%s'\n", iface);
return 1;
@@
-106,7
+106,7
@@
int main(int argc, char *argv[])
}
}
}
}
- call =
ioc
tl(fd, 3, "ping");
+ call =
_SysIOC
tl(fd, 3, "ping");
if(call == 0) {
fprintf(stderr, "ERROR: '%s' does not have a 'ping' call\n", iface);
return 1;
if(call == 0) {
fprintf(stderr, "ERROR: '%s' does not have a 'ping' call\n", iface);
return 1;
@@
-114,11
+114,11
@@
int main(int argc, char *argv[])
for( i = 0; i < giNumberOfPings; i ++ )
{
for( i = 0; i < giNumberOfPings; i ++ )
{
- ping =
ioc
tl(fd, call, addr);
+ ping =
_SysIOC
tl(fd, call, addr);
printf("ping = %i\n", ping);
}
printf("ping = %i\n", ping);
}
-
c
lose(fd);
+
_SysC
lose(fd);
return 0;
}
return 0;
}
UCC
git Repository :: git.ucc.asn.au