libc: Unify function descriptions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-03-12 11:15:45 +01:00
parent 36e0a1e970
commit 92dbe58729
Signed by: apio
GPG Key ID: B8A7D06E42258954
3 changed files with 14 additions and 12 deletions

View File

@ -1,5 +1,7 @@
/* ctype.h: Character handling. */
// FIXME: Add function descriptions.
#ifndef _CTYPE_H
#define _CTYPE_H

View File

@ -26,13 +26,13 @@ extern "C"
int fflush(FILE*);
/* Opens a file and binds a stream to it. */
/* Open a file and binds a stream to it. */
FILE* fopen(const char* path, const char* mode);
/* Closes a file and frees up its stream. */
/* Close a file and frees up its stream. */
int fclose(FILE* stream);
/* Reads arbitrarily sized items from a stream. */
/* Read arbitrarily sized items from a stream. */
size_t fread(void* buf, size_t size, size_t nmemb, FILE* stream);
size_t fwrite(const void*, size_t, size_t, FILE*);
@ -40,13 +40,13 @@ extern "C"
int fseek(FILE*, long, int);
long ftell(FILE*);
/* Returns whether the error indicator was set in stream. */
/* Return whether the error indicator was set in stream. */
int ferror(FILE* stream);
/* Returns whether the end-of-file indicator was set in stream. */
/* Return whether the end-of-file indicator was set in stream. */
int feof(FILE* stream);
/* Clears the error and end-of-file indicators in stream. */
/* Clear the error and end-of-file indicators in stream. */
void clearerr(FILE* stream);
void setbuf(FILE*, char*);

View File

@ -16,26 +16,26 @@ extern "C"
pid_t fork();
/* Returns the current process' process ID. */
/* Return the current process' process ID. */
pid_t getpid(void);
int execv(const char*, char* const*);
int execve(const char*, char* const*, char* const*);
int execvp(const char*, char* const*);
/* Calls the operating system kernel for a specific service. */
/* Call the operating system kernel for a specific service. */
long syscall(long num, ...);
/* Sleeps for X microseconds. */
/* Sleep for X microseconds. */
int usleep(useconds_t us);
/* Sleeps for X seconds. */
/* Sleep for X seconds. */
unsigned long sleep(unsigned long seconds);
/* Closes a file descriptor. */
/* Close a file descriptor. */
int close(int fd);
/* Reads bytes from a file descriptor. */
/* Read bytes from a file descriptor. */
ssize_t read(int fd, void* buf, size_t size);
#ifdef __cplusplus