svn commit: [25560] branches/uClibc-nptl: libc/sysdeps/linux/common

kraj at uclibc.org kraj at uclibc.org
Thu Mar 5 19:42:42 UTC 2009


Author: kraj
Date: 2009-03-05 19:42:42 +0000 (Thu, 05 Mar 2009)
New Revision: 25560

Log:
Merged revisions 25556 via svnmerge from 
svn+ssh://kraj@svn.uclibc.org/svn/trunk/uClibc

........
  r25556 | kraj | 2009-03-05 11:07:01 -0800 (Thu, 05 Mar 2009) | 1 line
  
  Define creat in an independent file
........


Added:
   branches/uClibc-nptl/libc/sysdeps/linux/common/creat.c

Modified:
   branches/uClibc-nptl/
   branches/uClibc-nptl/libc/sysdeps/linux/common/open.c


Changeset:

Property changes on: branches/uClibc-nptl
___________________________________________________________________
Modified: svnmerge-integrated
   - /trunk/uClibc:1-25555
   + /trunk/uClibc:1-25559

Copied: branches/uClibc-nptl/libc/sysdeps/linux/common/creat.c (from rev 25556, trunk/uClibc/libc/sysdeps/linux/common/creat.c)
===================================================================
--- branches/uClibc-nptl/libc/sysdeps/linux/common/creat.c	                        (rev 0)
+++ branches/uClibc-nptl/libc/sysdeps/linux/common/creat.c	2009-03-05 19:42:42 UTC (rev 25560)
@@ -0,0 +1,15 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * creat() for uClibc
+ *
+ * Copyright (C) 2009 <kraj at uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <fcntl.h>
+
+int creat(const char *file, mode_t mode)
+{
+	return open(file, O_WRONLY | O_CREAT | O_TRUNC, mode);
+}

Modified: branches/uClibc-nptl/libc/sysdeps/linux/common/open.c
===================================================================
--- branches/uClibc-nptl/libc/sysdeps/linux/common/open.c	2009-03-05 19:38:48 UTC (rev 25559)
+++ branches/uClibc-nptl/libc/sysdeps/linux/common/open.c	2009-03-05 19:42:42 UTC (rev 25560)
@@ -37,8 +37,3 @@
 libc_hidden_weak(open)
 strong_alias(open,__libc_open)
 #endif
-
-int creat(const char *file, mode_t mode)
-{
-	return open(file, O_WRONLY | O_CREAT | O_TRUNC, mode);
-}



More information about the uClibc-cvs mailing list