[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] $(HURD)/trans/hello.c compilation
From: |
PUYDT Julien |
Subject: |
[PATCH] $(HURD)/trans/hello.c compilation |
Date: |
16 Jul 2003 17:33:07 +0200 |
Hi,
I recently got some time to have a look at the hurd. I found some of the
interfaces have changed a little.
I made a patch, to be able to compile hello.c again (note: this only
makes it compile, it doesn't make it good; for example the seek function
doesn't do any check). Perhaps I'll have a look at the other files in
the same dir (already took contact with Wolfgang about those appearing
in his hacking guide), if I ever find the time.
Snark on #hurd, #hurdfr
PS: This is the patch:
--- hello.c.orig 2003-07-16 17:11:59.000000000 +0200
+++ hello.c.nouv 2003-07-16 17:20:09.000000000 +0200
@@ -71,7 +71,7 @@
};
void
-trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st)
+trivfs_modify_stat (struct trivfs_protid *cred, io_statbuf_t *st)
{
/* Mark the node as a read-only plain file. */
st->st_mode &= ~(S_IFMT | ALLPERMS);
@@ -161,7 +161,7 @@
error_t
trivfs_S_io_seek (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
- off_t offs, int whence, off_t *new_offs)
+ loff_t offs, int whence, loff_t *new_offs)
{
struct open *op;
error_t err = 0;
- [PATCH] $(HURD)/trans/hello.c compilation,
PUYDT Julien <=