EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Defines | Typedefs | Functions

StdLib/Include/sys/types.h File Reference

#include <sys/EfiCdefs.h>
#include <machine/types.h>
#include <machine/ansi.h>
#include <machine/int_types.h>
#include <sys/ansi.h>
#include <machine/endian.h>

Go to the source code of this file.

Defines

#define int8_t   __int8_t
#define uint8_t   __uint8_t
#define int16_t   __int16_t
#define uint16_t   __uint16_t
#define int32_t   __int32_t
#define uint32_t   __uint32_t
#define int64_t   __int64_t
#define uint64_t   __uint64_t
#define fsblkcnt_t   __fsblkcnt_t
#define fsfilcnt_t   __fsfilcnt_t
#define caddr_t   __caddr_t
#define gid_t   __gid_t
#define mode_t   __mode_t
#define off_t   __off_t
#define pid_t   __pid_t
#define uid_t   __uid_t
#define __OFF_T_SYSCALLS_DECLARED

Typedefs

typedef __int8_t int8_t
typedef __uint8_t uint8_t
typedef __int16_t int16_t
typedef __uint16_t uint16_t
typedef __int32_t int32_t
typedef __uint32_t uint32_t
typedef __int64_t int64_t
typedef __uint64_t uint64_t
typedef uint8_t u_int8_t
typedef uint16_t u_int16_t
typedef uint32_t u_int32_t
typedef uint64_t u_int64_t
typedef uint64_t u_quad_t
typedef int64_t quad_t
typedef quad_tqaddr_t
typedef int64_t longlong_t
typedef uint64_t u_longlong_t
typedef int64_t blkcnt_t
typedef uint32_t blksize_t
typedef __fsblkcnt_t fsblkcnt_t
typedef __fsfilcnt_t fsfilcnt_t
typedef __caddr_t caddr_t
typedef int64_t daddr_t
typedef uint32_t dev_t
typedef uint32_t fixpt_t
typedef __gid_t gid_t
typedef uint32_t id_t
typedef uint64_t ino_t
typedef EFI_LONG_T key_t
typedef __mode_t mode_t
typedef uint32_t nlink_t
typedef __off_t off_t
typedef __pid_t pid_t
typedef int32_t lwpid_t
typedef quad_t rlim_t
typedef int32_t segsz_t
typedef int32_t swblk_t
typedef __uid_t uid_t
typedef int64_t dtime_t

Functions

__BEGIN_DECLS off_t lseek (int, off_t, int)
int truncate (const char *, off_t)
int ftruncate (int, off_t)

Detailed Description

System type declarations.

Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Copyright (c) 1990, 1993 The Regents of the University of California. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

NetBSD: types.h,v 1.71.12.1 2007/09/27 13:40:47 xtraeme Exp types.h 8.4 (Berkeley) 1/21/94

Definition in file types.h.


Define Documentation

#define __OFF_T_SYSCALLS_DECLARED

Definition at line 222 of file types.h.

#define caddr_t   __caddr_t

Definition at line 150 of file types.h.

#define fsblkcnt_t   __fsblkcnt_t

Definition at line 140 of file types.h.

#define fsfilcnt_t   __fsfilcnt_t

Definition at line 145 of file types.h.

#define gid_t   __gid_t

Definition at line 165 of file types.h.

#define int16_t   __int16_t

Definition at line 69 of file types.h.

#define int32_t   __int32_t

Definition at line 79 of file types.h.

#define int64_t   __int64_t

Definition at line 89 of file types.h.

#define int8_t   __int8_t

Definition at line 59 of file types.h.

#define mode_t   __mode_t

Definition at line 174 of file types.h.

#define off_t   __off_t

Definition at line 181 of file types.h.

#define pid_t   __pid_t

Definition at line 186 of file types.h.

#define uid_t   __uid_t

Definition at line 195 of file types.h.

#define uint16_t   __uint16_t

Definition at line 74 of file types.h.

#define uint32_t   __uint32_t

Definition at line 84 of file types.h.

#define uint64_t   __uint64_t

Definition at line 94 of file types.h.

#define uint8_t   __uint8_t

Definition at line 64 of file types.h.


Typedef Documentation

typedef int64_t blkcnt_t

Definition at line 135 of file types.h.

Definition at line 136 of file types.h.

typedef __caddr_t caddr_t

Definition at line 149 of file types.h.

typedef int64_t daddr_t

Definition at line 157 of file types.h.

typedef uint32_t dev_t

Definition at line 160 of file types.h.

typedef int64_t dtime_t

Definition at line 198 of file types.h.

typedef uint32_t fixpt_t

Definition at line 161 of file types.h.

Definition at line 139 of file types.h.

Definition at line 144 of file types.h.

typedef __gid_t gid_t

Definition at line 164 of file types.h.

typedef uint32_t id_t

Definition at line 168 of file types.h.

typedef uint64_t ino_t

Definition at line 169 of file types.h.

typedef __int16_t int16_t

Definition at line 68 of file types.h.

typedef __int32_t int32_t

Definition at line 78 of file types.h.

typedef __int64_t int64_t

Definition at line 88 of file types.h.

typedef __int8_t int8_t

Definition at line 58 of file types.h.

typedef EFI_LONG_T key_t

Definition at line 170 of file types.h.

Definition at line 132 of file types.h.

typedef int32_t lwpid_t

Definition at line 188 of file types.h.

typedef __mode_t mode_t

Definition at line 173 of file types.h.

typedef uint32_t nlink_t

Definition at line 177 of file types.h.

typedef __off_t off_t

Definition at line 180 of file types.h.

typedef __pid_t pid_t

Definition at line 185 of file types.h.

typedef quad_t* qaddr_t

Definition at line 120 of file types.h.

typedef int64_t quad_t

Definition at line 119 of file types.h.

typedef quad_t rlim_t

Definition at line 189 of file types.h.

typedef int32_t segsz_t

Definition at line 190 of file types.h.

typedef int32_t swblk_t

Definition at line 191 of file types.h.

Definition at line 98 of file types.h.

Definition at line 99 of file types.h.

Definition at line 100 of file types.h.

typedef uint8_t u_int8_t

Definition at line 97 of file types.h.

Definition at line 133 of file types.h.

typedef uint64_t u_quad_t

Definition at line 118 of file types.h.

typedef __uid_t uid_t

Definition at line 194 of file types.h.

Definition at line 73 of file types.h.

Definition at line 83 of file types.h.

Definition at line 93 of file types.h.

typedef __uint8_t uint8_t

Definition at line 63 of file types.h.


Function Documentation

int ftruncate ( int  ,
off_t   
)
__BEGIN_DECLS off_t lseek ( int  fd,
__off_t  offset,
int  how 
)
Parameters:
[in]
Returns:

Reposition a file's read/write offset.

The lseek() function repositions the offset of the file descriptor fildes to the argument offset according to the directive how. The argument fildes must be an open file descriptor. lseek() repositions the file pointer fildes as follows:

If how is SEEK_SET, the offset is set to offset bytes.

If how is SEEK_CUR, the offset is set to its current location plus offset bytes.

If how is SEEK_END, the offset is set to the size of the file plus offset bytes.

The lseek() function allows the file offset to be set beyond the end of the existing end-of-file of the file. If data is later written at this point, subsequent reads of the data in the gap return bytes of zeros (until data is actually written into the gap).

Some devices are incapable of seeking. The value of the pointer associ- ated with such a device is undefined.

Returns:
Upon successful completion, lseek() returns the resulting offset location as measured in bytes from the beginning of the file. Otherwise, a value of -1 is returned and errno is set to indicate the error.

Definition at line 412 of file CrtWrapper.c.

int truncate ( const char *  ,
off_t   
)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines