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
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-06-21 01:49:06 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-06-21 01:49:06 +0400
commitd360ef18650e4f507634be57ce95a54ae3e5b25f (patch)
tree48d99034c41115a0621ff9cd6c5dc4cb3e9e16ad /newlib/libc/include
parent7f8ec7f1631944f4fd473aeb5e60fc3438a3378c (diff)
2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related defines; expose ftruncate, truncate and sync prototypes.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/sys/unistd.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index bab8734e9..cf8298bd8 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -103,6 +103,13 @@ int _EXFUN(nice, (int __nice_value ));
#if !defined(__INSIDE_CYGWIN__)
off_t _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
#endif
+#if defined(__SPU__)
+#define F_ULOCK 0
+#define F_LOCK 1
+#define F_TLOCK 2
+#define F_TEST 3
+int _EXFUN(lockf, (int __fd, int __cmd, off_t __len));
+#endif
long _EXFUN(pathconf, (const char *__path, int __name ));
int _EXFUN(pause, (void ));
#ifdef __CYGWIN__
@@ -194,7 +201,7 @@ _READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nb
int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] ));
#endif
-#if defined(__CYGWIN__) || defined(__rtems__) || defined(__sh__)
+#if defined(__CYGWIN__) || defined(__rtems__) || defined(__sh__) || defined(__SPU__)
#if !defined(__INSIDE_CYGWIN__)
int _EXFUN(ftruncate, (int __fd, off_t __length));
int _EXFUN(truncate, (const char *, off_t __length));
@@ -210,12 +217,14 @@ useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
int _EXFUN(gethostname, (char *__name, size_t __len));
#endif
char * _EXFUN(mktemp, (char *));
-#if defined(__CYGWIN__)
+#endif
+
+#if defined(__CYGWIN__) || defined(__SPU__)
void _EXFUN(sync, (void));
-#else /* defined(__rtems__) */
+#elif defined(__rtems__)
int _EXFUN(sync, (void));
#endif
-#endif
+
int _EXFUN(readlink, (const char *__path, char *__buf, int __buflen));
int _EXFUN(symlink, (const char *__name1, const char *__name2));