RossComputerGuy/stardustos

View on GitHub
newland/src/system.c

Summary

Maintainability
Test Coverage

TODO found
Open

    /* TODO: permission checking */
Severity: Minor
Found in newland/src/system.c by fixme

TODO found
Open

    /* TODO: permission checking */
Severity: Minor
Found in newland/src/system.c by fixme

The function nl_close is never used.
Open

int nl_close(int fd) {
Severity: Minor
Found in newland/src/system.c by cppcheck

The function nl_close is never used. (detailed CWE explanation)

The function nl_open is never used.
Open

int nl_open(const char* path, int mode) {
Severity: Minor
Found in newland/src/system.c by cppcheck

The function nl_open is never used. (detailed CWE explanation)

Checking if unsigned variable r is less than zero.
Open

    if (r < 0) return r;
Severity: Minor
Found in newland/src/system.c by cppcheck

The unsigned variable r will never be negative so it is either pointless or an error to check if it is. (detailed CWE explanation)

The function nl_getuid is never used.
Open

uid_t nl_getuid() {
Severity: Minor
Found in newland/src/system.c by cppcheck

The function nl_getuid is never used. (detailed CWE explanation)

The function nl_write is never used.
Open

size_t nl_write(int fd, const void* buff, size_t count) {
Severity: Minor
Found in newland/src/system.c by cppcheck

The function nl_write is never used. (detailed CWE explanation)

The function nl_getgid is never used.
Open

gid_t nl_getgid() {
Severity: Minor
Found in newland/src/system.c by cppcheck

The function nl_getgid is never used. (detailed CWE explanation)

The function nl_getpid is never used.
Open

pid_t nl_getpid() {
Severity: Minor
Found in newland/src/system.c by cppcheck

The function nl_getpid is never used. (detailed CWE explanation)

Checking if unsigned variable r is less than zero.
Open

    if (r < 0) return r;
Severity: Minor
Found in newland/src/system.c by cppcheck

The unsigned variable r will never be negative so it is either pointless or an error to check if it is. (detailed CWE explanation)

The function nl_getbuildprop is never used.
Open

int nl_getbuildprop(int prop, void* output, int* size) {
Severity: Minor
Found in newland/src/system.c by cppcheck

The function nl_getbuildprop is never used. (detailed CWE explanation)

The function nl_read is never used.
Open

size_t nl_read(int fd, void* buff, size_t count) {
Severity: Minor
Found in newland/src/system.c by cppcheck

The function nl_read is never used. (detailed CWE explanation)

There are no issues that match your filters.

Category
Status