libc: Unify function descriptions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
36e0a1e970
commit
92dbe58729
@ -1,5 +1,7 @@
|
|||||||
/* ctype.h: Character handling. */
|
/* ctype.h: Character handling. */
|
||||||
|
|
||||||
|
// FIXME: Add function descriptions.
|
||||||
|
|
||||||
#ifndef _CTYPE_H
|
#ifndef _CTYPE_H
|
||||||
#define _CTYPE_H
|
#define _CTYPE_H
|
||||||
|
|
||||||
|
@ -26,13 +26,13 @@ extern "C"
|
|||||||
|
|
||||||
int fflush(FILE*);
|
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);
|
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);
|
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 fread(void* buf, size_t size, size_t nmemb, FILE* stream);
|
||||||
|
|
||||||
size_t fwrite(const void*, size_t, size_t, FILE*);
|
size_t fwrite(const void*, size_t, size_t, FILE*);
|
||||||
@ -40,13 +40,13 @@ extern "C"
|
|||||||
int fseek(FILE*, long, int);
|
int fseek(FILE*, long, int);
|
||||||
long ftell(FILE*);
|
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);
|
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);
|
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 clearerr(FILE* stream);
|
||||||
|
|
||||||
void setbuf(FILE*, char*);
|
void setbuf(FILE*, char*);
|
||||||
|
@ -16,26 +16,26 @@ extern "C"
|
|||||||
|
|
||||||
pid_t fork();
|
pid_t fork();
|
||||||
|
|
||||||
/* Returns the current process' process ID. */
|
/* Return the current process' process ID. */
|
||||||
pid_t getpid(void);
|
pid_t getpid(void);
|
||||||
|
|
||||||
int execv(const char*, char* const*);
|
int execv(const char*, char* const*);
|
||||||
int execve(const char*, char* const*, char* const*);
|
int execve(const char*, char* const*, char* const*);
|
||||||
int execvp(const char*, 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, ...);
|
long syscall(long num, ...);
|
||||||
|
|
||||||
/* Sleeps for X microseconds. */
|
/* Sleep for X microseconds. */
|
||||||
int usleep(useconds_t us);
|
int usleep(useconds_t us);
|
||||||
|
|
||||||
/* Sleeps for X seconds. */
|
/* Sleep for X seconds. */
|
||||||
unsigned long sleep(unsigned long seconds);
|
unsigned long sleep(unsigned long seconds);
|
||||||
|
|
||||||
/* Closes a file descriptor. */
|
/* Close a file descriptor. */
|
||||||
int close(int fd);
|
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);
|
ssize_t read(int fd, void* buf, size_t size);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user