Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
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
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
Tornax O7
relibc
Commits
b309cd83
Commit
b309cd83
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add getopt and machine/endian.h
parent
d659377b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/getopt.h
+13
-0
13 additions, 0 deletions
include/getopt.h
include/machine/endian.h
+19
-0
19 additions, 0 deletions
include/machine/endian.h
with
32 additions
and
0 deletions
include/getopt.h
0 → 100644
+
13
−
0
View file @
b309cd83
#ifndef _GETOPT_H
#define _GETOPT_H
// Generated from:
// `grep "opt" target/include/unistd.h`
extern
char
*
optarg
;
extern
int
opterr
;
extern
int
optind
;
extern
int
optopt
;
int
getopt
(
int
argc
,
char
*
const
*
argv
,
const
char
*
optstring
);
#endif
This diff is collapsed.
Click to expand it.
include/machine/endian.h
0 → 100644
+
19
−
0
View file @
b309cd83
#ifndef __MACHINE_ENDIAN_H__
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef BYTE_ORDER
#if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BYTES_LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif
#endif
/* __MACHINE_ENDIAN_H__ */
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