]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/Include/utime.h
Fix a bug about the iSCSI DHCP dependency issue.
[mirror_edk2.git] / StdLib / Include / utime.h
CommitLineData
0c1992fb 1/** @file\r
2\r
3 Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
4 This program and the accompanying materials are licensed and made available under\r
5 the terms and conditions of the BSD License that accompanies this distribution.\r
6 The full text of the license may be found at\r
7 http://opensource.org/licenses/bsd-license.\r
8\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12 * Copyright (c) 1990, 1993\r
13 * The Regents of the University of California. All rights reserved.\r
14 *\r
15 * Redistribution and use in source and binary forms, with or without\r
16 * modification, are permitted provided that the following conditions\r
17 * are met:\r
18 * 1. Redistributions of source code must retain the above copyright\r
19 * notice, this list of conditions and the following disclaimer.\r
20 * 2. Redistributions in binary form must reproduce the above copyright\r
21 * notice, this list of conditions and the following disclaimer in the\r
22 * documentation and/or other materials provided with the distribution.\r
23 * 3. Neither the name of the University nor the names of its contributors\r
24 * may be used to endorse or promote products derived from this software\r
25 * without specific prior written permission.\r
26 *\r
27 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
28 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
29 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
30 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
31 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
37 * SUCH DAMAGE.\r
38 *\r
39 * @(#)utime.h 8.1 (Berkeley) 6/2/93\r
40 NetBSD: utime.h,v 1.8 2005/02/03 04:39:32 perry Exp\r
41 */\r
42\r
43#ifndef _UTIME_H_\r
44#define _UTIME_H_\r
45\r
46#include <sys/cdefs.h>\r
47#include <machine/ansi.h>\r
48#include <sys/time.h>\r
49\r
50#if defined(_BSD_TIME_T_) && defined(_EFI_TIME_T)\r
51typedef _EFI_TIME_T time_t;\r
52#undef _BSD_TIME_T_\r
53#undef _EFI_TIME_T\r
54#endif\r
55\r
56struct utimbuf {\r
57 time_t actime; /* Access time */\r
58 time_t modtime; /* Modification time */\r
59};\r
60\r
61__BEGIN_DECLS\r
62 int utime (const char *path, const struct utimbuf *times);\r
63 int utimes (const char *path, const struct timeval *times);\r
64__END_DECLS\r
65\r
66#endif /* !_UTIME_H_ */\r