Fix compilation with clang 15.0.7
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ void set_log_level(int level);
|
||||
|
||||
/// @brief Returns the current loglevel.
|
||||
/// @return The current loglevel
|
||||
int get_log_level();
|
||||
int get_log_level(void);
|
||||
|
||||
/// @brief Prints the given character to debug output.
|
||||
/// @param c The character to print.
|
||||
|
||||
+1
-1
@@ -40,4 +40,4 @@ int sched_getparam(pid_t pid, sched_param_t *param);
|
||||
/// @brief Placed at the end of an infinite while loop, stops the process until,
|
||||
/// its next period starts. The calling process must be a periodic one.
|
||||
/// @return 0 on success, -1 on failure and errno is set to indicate the error.
|
||||
int waitperiod();
|
||||
int waitperiod(void);
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ void puts(const char *str);
|
||||
|
||||
/// @brief Returns the next character from the standard input (stdin).
|
||||
/// @return The character received from stdin.
|
||||
int getchar();
|
||||
int getchar(void);
|
||||
|
||||
/// @brief Reads characters from the standard input (stdin).
|
||||
/// @param str Where the characters are stored.
|
||||
|
||||
+3
-3
@@ -44,7 +44,7 @@ void *realloc(void *ptr, size_t size);
|
||||
void free(void *ptr);
|
||||
|
||||
/// @brief Cause an abnormal program termination with core-dump.
|
||||
void abort();
|
||||
void abort(void);
|
||||
|
||||
/// @brief Tries to adds the variable to the environment.
|
||||
/// @param name Name of the variable.
|
||||
@@ -74,11 +74,11 @@ void srand(unsigned x);
|
||||
|
||||
/// @brief Generates a random unsigned integer between 0 and RAND_MAX.
|
||||
/// @return the random value.
|
||||
unsigned rand();
|
||||
unsigned rand(void);
|
||||
|
||||
/// @brief Generates a random floating point number between 0 and 1.
|
||||
/// @return the random value.
|
||||
float randf();
|
||||
float randf(void);
|
||||
|
||||
/// @brief Generates a random integer between lb and ub.
|
||||
/// @param lb the lower-bound value.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
extern int *__geterrno();
|
||||
extern int *__geterrno(void);
|
||||
|
||||
/// Provide easy access to the error number.
|
||||
#define errno (*__geterrno())
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ struct msqid_ds {
|
||||
|
||||
/// @brief Initializes the message queue system.
|
||||
/// @return 0 on success, 1 on failure.
|
||||
int msq_init();
|
||||
int msq_init(void);
|
||||
|
||||
/// @brief Get a System V message queue identifier.
|
||||
/// @param key can be used either to obtain the identifier of a previously
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ struct sembuf {
|
||||
|
||||
/// @brief Initializes the semaphore system.
|
||||
/// @return 0 on success, 1 on failure.
|
||||
int sem_init();
|
||||
int sem_init(void);
|
||||
|
||||
/// @brief Get a System V semaphore set identifier.
|
||||
/// @param key can be used either to obtain the identifier of a previously
|
||||
|
||||
+1
-1
@@ -90,7 +90,7 @@ struct shmid_ds {
|
||||
|
||||
/// @brief Initializes the shared memory.
|
||||
/// @return 0 on success, 1 on failure.
|
||||
int shm_init();
|
||||
int shm_init(void);
|
||||
|
||||
/// @brief Get a System V shared memory identifier.
|
||||
/// @param key can be used either to obtain the identifier of a previously
|
||||
|
||||
@@ -73,7 +73,7 @@ extern void exit(int status);
|
||||
|
||||
/// @brief Returns the process ID (PID) of the calling process.
|
||||
/// @return pid_t process identifier.
|
||||
extern pid_t getpid();
|
||||
extern pid_t getpid(void);
|
||||
|
||||
///@brief Return session id of the given process.
|
||||
/// If pid == 0 return the SID of the calling process
|
||||
@@ -91,7 +91,7 @@ extern pid_t getsid(pid_t pid);
|
||||
/// is made the same as its process ID).
|
||||
///@return On success return SID of the session just created
|
||||
/// Otherwise return -1 with errno : EPERM
|
||||
extern pid_t setsid();
|
||||
extern pid_t setsid(void);
|
||||
|
||||
///@brief returns the Process Group ID (PGID) of the process specified by pid.
|
||||
/// If pid is zero, the process ID of the calling process is used.
|
||||
@@ -108,7 +108,7 @@ int setpgid(pid_t pid, pid_t pgid);
|
||||
|
||||
///@brief returns the group ID of the calling process.
|
||||
///@return GID of the current process
|
||||
extern pid_t getgid();
|
||||
extern pid_t getgid(void);
|
||||
|
||||
///@brief sets the effective group ID of the calling process.
|
||||
///@param pid process identifier to
|
||||
@@ -118,7 +118,7 @@ extern int setgid(pid_t pid);
|
||||
|
||||
///@brief Returns the User ID of the calling process.
|
||||
///@return User ID of the current process.
|
||||
extern uid_t getuid();
|
||||
extern uid_t getuid(void);
|
||||
|
||||
///@brief Sets the effective User ID of the calling process.
|
||||
///@param uid the new User ID.
|
||||
@@ -128,14 +128,14 @@ extern int setuid(uid_t uid);
|
||||
|
||||
/// @brief Returns the parent process ID (PPID) of the calling process.
|
||||
/// @return pid_t parent process identifier.
|
||||
extern pid_t getppid();
|
||||
extern pid_t getppid(void);
|
||||
|
||||
/// @brief Clone the calling process, but without copying the whole address space.
|
||||
/// The calling process is suspended until the new process exits or is
|
||||
/// replaced by a call to `execve'.
|
||||
/// @return Return -1 for errors, 0 to the new process, and the process ID of
|
||||
/// the new process to the old process.
|
||||
extern pid_t fork();
|
||||
extern pid_t fork(void);
|
||||
|
||||
/// @brief Replaces the current process image with a new process image (argument list).
|
||||
/// @param path The absolute path to the binary file to execute.
|
||||
|
||||
Reference in New Issue
Block a user