lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since d3ee35b was cc9f314, checked in by Vojtech Horky <vojtechhorky@…>, 14 years ago |
|
Implement head and tail functionality in bdsh/cat (thx Taylor Killian)
This patch fixes a number of problems in the cat app. Most
importantly, it correctly displays characters at the end of the read
buffer, where previously multibyte characters were being rendered as
U_SPECIAL. It also implements the buffer size argument (-b) that the
—help mentions. The size of the buffer must be at least 4 though in
order to accommodate multibyte characters. Finally head (-H) and tail
(-t) were implemented as per —help.
|
-
Property mode
set to
100644
|
|
File size:
194 bytes
|
| Line | |
|---|
| 1 | #ifndef CAT_H
|
|---|
| 2 | #define CAT_H
|
|---|
| 3 |
|
|---|
| 4 | /* Prototypes for the cat command, excluding entry points */
|
|---|
| 5 |
|
|---|
| 6 | static unsigned int cat_file(const char *, size_t, bool, off64_t, off64_t, bool);
|
|---|
| 7 |
|
|---|
| 8 | #endif /* CAT_H */
|
|---|
| 9 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.