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
47
Issues
47
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
2c1a3f6c
Commit
2c1a3f6c
authored
Feb 24, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general: kill pp_strnlen
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
8cbe8692
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
14 deletions
+3
-14
bare-io.c
arch-bare-i386/bare-io.c
+1
-1
bare-io.c
arch-bare-x86-64/bare-io.c
+1
-1
posix-io.c
arch-gnu-linux/posix-io.c
+0
-8
printf-full.c
diag/printf-full.c
+1
-1
lib.h
include/ppsi/lib.h
+0
-1
libc-functions.c
lib/libc-functions.c
+0
-2
No files found.
arch-bare-i386/bare-io.c
View file @
2c1a3f6c
...
...
@@ -9,7 +9,7 @@ const Integer32 PP_ADJ_FREQ_MAX = 512000;
void
pp_puts
(
const
char
*
s
)
{
sys_write
(
0
,
s
,
pp_
strnlen
(
s
,
300
));
sys_write
(
0
,
s
,
strnlen
(
s
,
300
));
}
void
bare_get_tstamp
(
TimeInternal
*
t
)
...
...
arch-bare-x86-64/bare-io.c
View file @
2c1a3f6c
...
...
@@ -9,7 +9,7 @@ const Integer32 PP_ADJ_FREQ_MAX = 512000;
void
pp_puts
(
const
char
*
s
)
{
sys_write
(
0
,
s
,
pp_
strnlen
(
s
,
300
));
sys_write
(
0
,
s
,
strnlen
(
s
,
300
));
}
void
bare_get_tstamp
(
TimeInternal
*
t
)
...
...
arch-gnu-linux/posix-io.c
View file @
2c1a3f6c
...
...
@@ -25,11 +25,6 @@ void posix_puts(const char *s)
fputs
(
s
,
stdout
);
}
int
posix_strnlen
(
const
char
*
s
,
int
maxlen
)
{
return
strnlen
(
s
,
maxlen
);
}
void
*
posix_memcpy
(
void
*
d
,
const
void
*
s
,
int
count
)
{
return
memcpy
(
d
,
s
,
count
);
...
...
@@ -89,9 +84,6 @@ int posix_adj_freq(Integer32 adj)
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"
)));
...
...
diag/printf-full.c
View file @
2c1a3f6c
...
...
@@ -281,7 +281,7 @@ static char *string(char *buf, char *s, int field_width, int precision, int flag
if
(
s
==
0
)
s
=
"<NULL>"
;
len
=
pp_
strnlen
(
s
,
precision
);
len
=
strnlen
(
s
,
precision
);
if
(
!
(
flags
&
LEFT
))
while
(
len
<
field_width
--
)
...
...
include/ppsi/lib.h
View file @
2c1a3f6c
...
...
@@ -8,7 +8,6 @@
/* What follow is the old way, being phased out */
extern
void
pp_puts
(
const
char
*
s
);
extern
int
pp_strnlen
(
const
char
*
s
,
int
maxlen
);
extern
char
*
pp_strcpy
(
char
*
dest
,
const
char
*
src
);
extern
void
*
pp_memcpy
(
void
*
d
,
const
void
*
s
,
int
count
);
extern
int
pp_memcmp
(
const
void
*
s1
,
const
void
*
s2
,
int
count
);
...
...
lib/libc-functions.c
View file @
2c1a3f6c
...
...
@@ -57,8 +57,6 @@ char *strcpy(char *dest, const char *src)
}
/* As a first step in removing pp_memset etc, provide aliases */
int
pp_strnlen
(
const
char
*
s
,
int
maxlen
)
__attribute__
((
alias
(
"strnlen"
)));
extern
char
*
pp_strcpy
(
char
*
dest
,
const
char
*
src
)
__attribute__
((
alias
(
"strcpy"
)));
extern
void
*
pp_memcpy
(
void
*
d
,
const
void
*
s
,
int
count
)
...
...
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