Update of /cvsroot/libsysio/libsysio/tests
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2000/tests
Modified Files:
test_mkdir.c
Log Message:
Merged "unification" branch.
First, the changes alter the core to perform pnode-ops by pnode. However, it
maintains the pre-existing interface in order to minimize driver changes.
Second, more detailed tracing information is available now in the form of
a tag, indicating which function the data is from, as well as arguments
and return data.
Note1:
The S_IFDIR bit is no longer set when the pnode-op mkdir function is
called. If you need that, set it in your driver.
Note2:
It is possible to encounter a disconnected tree in _sysio_pb_path. If so,
it returns an empty string. This *might* be good enough for your driver.
If not, you'll need a change for this as well -- In fact, you should
go ahead and change it anyway. Instead of _sysio_pb_path, use
_sysio_pb_pathof. This new function takes the base pnode and a pointer
to a string. It returns an integer. The usual zero on success or a negated
errno on failure.
Note3:
Sockets support is horribly broken and won't build. As far as I know, this
was never used. Unless somebody tells me differently, sockets support will
be deprecated in the next release. Otherwise, let me know and I'll fix it.
Index: test_mkdir.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/tests/test_mkdir.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -b -B -p -r1.2 -r1.3
--- test_mkdir.c 28 Mar 2007 21:27:12 -0000 1.2
+++ test_mkdir.c 30 Apr 2007 16:52:20 -0000 1.3
@@ -143,7 +143,7 @@ static int
do_mkdir(const char *path)
{
- if (SYSIO_INTERFACE_NAME(mkdir)(path, 777) != 0) {
+ if (SYSIO_INTERFACE_NAME(mkdir)(path, 0777) != 0) {
perror(path);
return -1;
}
|