Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-07-05 03:25:06 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-07-05 03:25:06 +0400
commit89ffbd66e7747dd3719b1252e4037805385c8237 (patch)
treecf72b0bd3408e8c82cc96e5146c16b2ed4802ba9 /newlib
parent50bde7d427b2656dc8788274d7f2afcf0f6e567e (diff)
2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/inode.c: Fix utime prototype and add _LIBC define before including <sys/lock.h>.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/sys/linux/inode.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b6f822383..205eb292f 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
+ * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
+ define before including <sys/lock.h>.
+
+2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
+
* libc/include/utime.h: Add include of <_ansi.h>.
* libc/sys/linux/Makefile.am: Add utimes.c.
* libc/sys/linux/Makefile.in: Regenerated.
diff --git a/newlib/libc/sys/linux/inode.c b/newlib/libc/sys/linux/inode.c
index e2f4ab16e..6f07f8e7a 100644
--- a/newlib/libc/sys/linux/inode.c
+++ b/newlib/libc/sys/linux/inode.c
@@ -9,9 +9,11 @@
#include <sys/stat.h>
#include <sys/utime.h>
#include <linux/dirent.h>
-#include <sys/lock.h>
#include <machine/syscall.h>
+#define _LIBC
+#include <sys/lock.h>
+
__LOCK_INIT(static, umask_lock);
#define __NR___umask __NR_umask
@@ -21,7 +23,7 @@ _syscall1(int,unlink,const char *,pathname)
_syscall1(int,chdir,const char *,path)
_syscall3(int,mknod,const char *,pathname,mode_t,mode,dev_t,dev)
_syscall2(int,chmod,const char *,path,mode_t,mode)
-_syscall2(int,utime,const char *,filename,struct utimbuf *,buf)
+_syscall2(int,utime,const char *,filename,const struct utimbuf *,buf)
_syscall2(int,access,const char *,filename,int,mode)
_syscall2(int,mkdir,const char *,pathname,mode_t,mode)
_syscall1(int,rmdir,const char *,pathname)