| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
From the specification:
> If path does not name a directory, remove(path) shall be equivalent
to unlink(path).
> If path names a directory, remove(path) shall be equivalent to
rmdir(path).
rmdir() will remove a directory only if it is empty, so drop
validation for it.
|
|
|
|
|
|
|
|
| |
It is wrong to assume that malloc() always returns allocated memory.
Unfortunately, it can return NULL.
The rest of the code that uses malloc() should be refactored. That's
the reason why we can't do it right now.
|
|
|
|
|
|
| |
The angle brackets (<>) indicate that the enclosed parameter is
mandatory. Man syntax uses italic text for this purpose, but our text
is unformatted, so we use characters.
|
|
|
|
| |
Avoid repeating the same error messages.
|
|
|
|
| |
No need to allocate memory.
|
|
|
|
|
|
|
|
|
|
| |
Handle errors using goto instead of "do { ... } while(0)".
This is one of the steps on the way to get rid of errprint_*() macros
and handle errors by yourself. For more context see other patches
under the same topic specified below.
TOPIC=drop_errprint
|
|
|
|
|
|
|
|
| |
This is one of the steps on the way to get rid of errprint_*() macros
and handle errors by yourself. For more context see other patches
under the same topic specified below.
TOPIC=drop_errprint
|
|
|
|
|
|
|
|
| |
This is one of the steps on the way to get rid of errprint_*() macros
and handle errors by yourself. For more context see other patches
under the same topic specified below.
TOPIC=drop_errprint
|
|
|
|
|
|
|
|
| |
This is one of the steps on the way to get rid of errprint_*() macros
and handle errors by yourself. For more context see other patches
under the same topic specified below.
TOPIC=drop_errprint
|
|
|
|
|
|
|
|
| |
This is one of the steps on the way to get rid of errprint_*() macros
and handle errors by yourself. For more context see other patches
under the same topic specified below.
TOPIC=drop_errprint
|
|
|
|
|
| |
The standard says: "If ptr is a null pointer, no action occurs".
So, remove conditions.
|
|
|
|
|
|
|
|
|
|
| |
Handle errors using goto instead of "do { ... } while(0)".
This is one of the steps on the way to get rid of errprint_*() macros
and handle errors by yourself. For more context see other patches
under the same topic specified below.
TOPIC=drop_errprint
|
|
|
|
|
|
|
|
| |
This is one of the steps on the way to get rid of errprint_*() macros
and handle errors by yourself. For more context see other patches
under the same topic specified below.
TOPIC=drop_errprint
|
| |
|
|
|
|
| |
Rename macro based on naming rules.
|
|
|
|
|
|
| |
This patch also does:
- Moves usageprint() from constants.h to output.h
- Returns an error after using useprint() clearly.
|
| |
|
| |
|
| |
|
| |
|
|
|