Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
3ab675d3
Commit
3ab675d3
authored
22 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Initial revision
parent
2f54faae
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/asm-arm/posix_types.h
+79
-0
79 additions, 0 deletions
include/asm-arm/posix_types.h
include/asm-arm/types.h
+51
-0
51 additions, 0 deletions
include/asm-arm/types.h
with
130 additions
and
0 deletions
include/asm-arm/posix_types.h
0 → 100644
+
79
−
0
View file @
3ab675d3
/*
* linux/include/asm-arm/posix_types.h
*
* Copyright (C) 1996-1998 Russell King.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Changelog:
* 27-06-1996 RMK Created
*/
#ifndef __ARCH_ARM_POSIX_TYPES_H
#define __ARCH_ARM_POSIX_TYPES_H
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
typedef
unsigned
short
__kernel_dev_t
;
typedef
unsigned
long
__kernel_ino_t
;
typedef
unsigned
short
__kernel_mode_t
;
typedef
unsigned
short
__kernel_nlink_t
;
typedef
long
__kernel_off_t
;
typedef
int
__kernel_pid_t
;
typedef
unsigned
short
__kernel_ipc_pid_t
;
typedef
unsigned
short
__kernel_uid_t
;
typedef
unsigned
short
__kernel_gid_t
;
typedef
unsigned
int
__kernel_size_t
;
typedef
int
__kernel_ssize_t
;
typedef
int
__kernel_ptrdiff_t
;
typedef
long
__kernel_time_t
;
typedef
long
__kernel_suseconds_t
;
typedef
long
__kernel_clock_t
;
typedef
int
__kernel_daddr_t
;
typedef
char
*
__kernel_caddr_t
;
typedef
unsigned
short
__kernel_uid16_t
;
typedef
unsigned
short
__kernel_gid16_t
;
typedef
unsigned
int
__kernel_uid32_t
;
typedef
unsigned
int
__kernel_gid32_t
;
typedef
unsigned
short
__kernel_old_uid_t
;
typedef
unsigned
short
__kernel_old_gid_t
;
#ifdef __GNUC__
typedef
long
long
__kernel_loff_t
;
#endif
typedef
struct
{
#if defined(__KERNEL__) || defined(__USE_ALL)
int
val
[
2
];
#else
/* !defined(__KERNEL__) && !defined(__USE_ALL) */
int
__val
[
2
];
#endif
/* !defined(__KERNEL__) && !defined(__USE_ALL) */
}
__kernel_fsid_t
;
#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
#undef __FD_SET
#define __FD_SET(fd, fdsetp) \
(((fd_set *)fdsetp)->fds_bits[fd >> 5] |= (1<<(fd & 31)))
#undef __FD_CLR
#define __FD_CLR(fd, fdsetp) \
(((fd_set *)fdsetp)->fds_bits[fd >> 5] &= ~(1<<(fd & 31)))
#undef __FD_ISSET
#define __FD_ISSET(fd, fdsetp) \
((((fd_set *)fdsetp)->fds_bits[fd >> 5] & (1<<(fd & 31))) != 0)
#undef __FD_ZERO
#define __FD_ZERO(fdsetp) \
(memset (fdsetp, 0, sizeof (*(fd_set *)fdsetp)))
#endif
#endif
This diff is collapsed.
Click to expand it.
include/asm-arm/types.h
0 → 100644
+
51
−
0
View file @
3ab675d3
#ifndef __ASM_ARM_TYPES_H
#define __ASM_ARM_TYPES_H
typedef
unsigned
short
umode_t
;
/*
* __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
* header files exported to user space
*/
typedef
__signed__
char
__s8
;
typedef
unsigned
char
__u8
;
typedef
__signed__
short
__s16
;
typedef
unsigned
short
__u16
;
typedef
__signed__
int
__s32
;
typedef
unsigned
int
__u32
;
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
typedef
__signed__
long
long
__s64
;
typedef
unsigned
long
long
__u64
;
#endif
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
typedef
signed
char
s8
;
typedef
unsigned
char
u8
;
typedef
signed
short
s16
;
typedef
unsigned
short
u16
;
typedef
signed
int
s32
;
typedef
unsigned
int
u32
;
typedef
signed
long
long
s64
;
typedef
unsigned
long
long
u64
;
#define BITS_PER_LONG 32
/* Dma addresses are 32-bits wide. */
typedef
u32
dma_addr_t
;
#endif
/* __KERNEL__ */
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment