Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenutime.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: LGPL, See LGPL.txt in the top level directory 00003 * PROJECT: ReactOS CRT library 00004 * FILE: lib/sdk/crt/time/utime.c 00005 * PURPOSE: Implementation of utime, _wutime 00006 * PROGRAMERS: Wine team 00007 */ 00008 00009 /* 00010 * msvcrt.dll file functions 00011 * 00012 * Copyright 1996,1998 Marcus Meissner 00013 * Copyright 1996 Jukka Iivonen 00014 * Copyright 1997,2000 Uwe Bonnes 00015 * Copyright 2000 Jon Griffiths 00016 * Copyright 2004 Eric Pouech 00017 * Copyright 2004 Juan Lang 00018 * 00019 * This library is free software; you can redistribute it and/or 00020 * modify it under the terms of the GNU Lesser General Public 00021 * License as published by the Free Software Foundation; either 00022 * version 2.1 of the License, or (at your option) any later version. 00023 * 00024 * This library is distributed in the hope that it will be useful, 00025 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00026 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00027 * Lesser General Public License for more details. 00028 * 00029 * You should have received a copy of the GNU Lesser General Public 00030 * License along with this library; if not, write to the Free Software 00031 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00032 * 00033 * TODO 00034 * Use the file flag hints O_SEQUENTIAL, O_RANDOM, O_SHORT_LIVED 00035 */ 00036 00037 #include <precomp.h> 00038 #include <tchar.h> 00039 #define RC_INVOKED 1 // to prevent inline functions 00040 #include <sys/utime.h> 00041 #include "bitsfixup.h" 00042 00043 int 00044 _tutime(const _TCHAR* path, struct _utimbuf *t) 00045 { 00046 int fd = _topen(path, _O_WRONLY | _O_BINARY); 00047 00048 if (fd > 0) 00049 { 00050 int retVal = _futime(fd, t); 00051 _close(fd); 00052 return retVal; 00053 } 00054 return -1; 00055 } Generated on Sat May 26 2012 04:35:36 for ReactOS by
1.7.6.1
|