summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorleleraffa97@hotmail.it <leleraffa97@hotmail.it>2017-08-31 21:36:31 +0200
committerleleraffa97@hotmail.it <leleraffa97@hotmail.it>2017-08-31 21:36:31 +0200
commit4ea7682a7567d83de21bfdfdd5e13a3985093b93 (patch)
tree5ecdca9b91d8c2d6534eb72238f961c5c6e241a3 /sw
parentSome untracked files from last commit (diff)
downloadz80uPC-4ea7682a7567d83de21bfdfdd5e13a3985093b93.tar.gz
z80uPC-4ea7682a7567d83de21bfdfdd5e13a3985093b93.zip
macro fixatlas
Diffstat (limited to 'sw')
-rw-r--r--sw/z80/kernel/include/sio.h8
-rw-r--r--sw/z80/kernel/include/stat.h12
2 files changed, 10 insertions, 10 deletions
diff --git a/sw/z80/kernel/include/sio.h b/sw/z80/kernel/include/sio.h
index 2efd706..276b99c 100644
--- a/sw/z80/kernel/include/sio.h
+++ b/sw/z80/kernel/include/sio.h
@@ -1,5 +1,5 @@
-#ifndef SIO_H
-#define SIO_H
+#ifndef __SIO_H__
+#define __SIO_H__
#include "types.h"
@@ -24,7 +24,7 @@ struct dev_buffer
};
/* points to the buffers mapped in the I/O space */
-/* to be defined precisely in assemly */
+/* to be defined precisely in assembly */
extern volatile struct dev_buffer sio_buffers[8];
/* initialize serial interface */
@@ -40,4 +40,4 @@ size_t sio_read(void *buffer, size_t n);
/* write n bytes into the current port */
int8_t sio_write(const void *buffer, size_t n);
-#endif
+#endif // __SIO_H__
diff --git a/sw/z80/kernel/include/stat.h b/sw/z80/kernel/include/stat.h
index cc5a7bf..44c0f63 100644
--- a/sw/z80/kernel/include/stat.h
+++ b/sw/z80/kernel/include/stat.h
@@ -1,10 +1,11 @@
-#ifndef STAT_H
-#define STAT_H
+#ifndef __STAT_H__
+#define __STAT_H__
+
+#include "types.h"
struct stat
{
- dev_t dev; /* device id */
- ino_t inumber; /* inode number inside the volume */
+ inode_t inode; /* inode reference */
uint mode :3; /* mode */
uint uid :3; /* owner id */
@@ -19,6 +20,5 @@ struct stat
}
struct stat * stat(const char *path, struct stat *buffer);
-struct stat * lstat(const char *link, struct stat *buffer);
-#endif
+#endif // __STAT_H__