Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
93aa0cfa
Commit
93aa0cfa
authored
Jan 20, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: posix-io function prefix fixed and pp alias declared
parent
eec79090
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
8 deletions
+32
-8
posix-io.c
arch-gnu-linux/posix-io.c
+32
-8
No files found.
arch-gnu-linux/posix-io.c
View file @
93aa0cfa
...
@@ -11,32 +11,32 @@
...
@@ -11,32 +11,32 @@
const
Integer32
PP_ADJ_FREQ_MAX
=
512000
;
const
Integer32
PP_ADJ_FREQ_MAX
=
512000
;
void
p
p
_puts
(
const
char
*
s
)
void
p
osix
_puts
(
const
char
*
s
)
{
{
fputs
(
s
,
stdout
);
fputs
(
s
,
stdout
);
}
}
int
p
p
_strnlen
(
const
char
*
s
,
int
maxlen
)
int
p
osix
_strnlen
(
const
char
*
s
,
int
maxlen
)
{
{
return
strnlen
(
s
,
maxlen
);
return
strnlen
(
s
,
maxlen
);
}
}
void
*
p
p
_memcpy
(
void
*
d
,
const
void
*
s
,
int
count
)
void
*
p
osix
_memcpy
(
void
*
d
,
const
void
*
s
,
int
count
)
{
{
return
memcpy
(
d
,
s
,
count
);
return
memcpy
(
d
,
s
,
count
);
}
}
int
p
p
_memcmp
(
const
void
*
s1
,
const
void
*
s2
,
int
count
)
int
p
osix
_memcmp
(
const
void
*
s1
,
const
void
*
s2
,
int
count
)
{
{
return
memcmp
(
s1
,
s2
,
count
);
return
memcmp
(
s1
,
s2
,
count
);
}
}
void
*
p
p
_memset
(
void
*
s
,
int
c
,
int
count
)
void
*
p
osix
_memset
(
void
*
s
,
int
c
,
int
count
)
{
{
return
memset
(
s
,
c
,
count
);
return
memset
(
s
,
c
,
count
);
}
}
void
p
p
_get_tstamp
(
TimeInternal
*
t
)
void
p
osix
_get_tstamp
(
TimeInternal
*
t
)
{
{
struct
timespec
tp
;
struct
timespec
tp
;
if
(
clock_gettime
(
CLOCK_REALTIME
,
&
tp
)
<
0
)
{
if
(
clock_gettime
(
CLOCK_REALTIME
,
&
tp
)
<
0
)
{
...
@@ -47,7 +47,7 @@ void pp_get_tstamp(TimeInternal *t)
...
@@ -47,7 +47,7 @@ void pp_get_tstamp(TimeInternal *t)
t
->
nanoseconds
=
tp
.
tv_nsec
;
t
->
nanoseconds
=
tp
.
tv_nsec
;
}
}
int32_t
p
p
_set_tstamp
(
TimeInternal
*
t
)
int32_t
p
osix
_set_tstamp
(
TimeInternal
*
t
)
{
{
struct
timespec
tp_orig
;
struct
timespec
tp_orig
;
struct
timespec
tp
;
struct
timespec
tp
;
...
@@ -68,7 +68,7 @@ int32_t pp_set_tstamp(TimeInternal *t)
...
@@ -68,7 +68,7 @@ int32_t pp_set_tstamp(TimeInternal *t)
* timer granularity is 1s */
* timer granularity is 1s */
}
}
int
p
p
_adj_freq
(
Integer32
adj
)
int
p
osix
_adj_freq
(
Integer32
adj
)
{
{
struct
timex
t
;
struct
timex
t
;
...
@@ -82,3 +82,27 @@ int pp_adj_freq(Integer32 adj)
...
@@ -82,3 +82,27 @@ int pp_adj_freq(Integer32 adj)
return
!
adjtimex
(
&
t
);
return
!
adjtimex
(
&
t
);
}
}
void
pp_puts
(
const
char
*
s
)
__attribute__
((
alias
(
"posix_puts"
)));
int
pp_strnlen
(
const
char
*
s
,
int
maxlen
)
__attribute__
((
alias
(
"posix_strnlen"
)));
void
*
pp_memcpy
(
void
*
d
,
const
void
*
s
,
int
count
)
__attribute__
((
alias
(
"posix_memcpy"
)));
int
pp_memcmp
(
const
void
*
s1
,
const
void
*
s2
,
int
count
)
__attribute__
((
alias
(
"posix_memcmp"
)));
void
*
pp_memset
(
void
*
s
,
int
c
,
int
count
)
__attribute__
((
alias
(
"posix_memset"
)));
void
pp_get_tstamp
(
TimeInternal
*
t
)
__attribute__
((
alias
(
"posix_get_tstamp"
)));
int32_t
pp_set_tstamp
(
TimeInternal
*
t
)
__attribute__
((
alias
(
"posix_set_tstamp"
)));
int
pp_adj_freq
(
Integer32
adj
)
__attribute__
((
alias
(
"posix_adj_freq"
)));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment