mirror of
https://github.com/cahirwpz/libnix.git
synced 2025-12-08 14:58:56 +00:00
Added headers for missing function prototypes.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
void __eprintf(const char *format,...) /* for asserts */
|
void __eprintf(const char *format,...) /* for asserts */
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
#include <proto/dos.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <proto/dos.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
int readlink(const char *path, char *buf, int bufsiz) {
|
int readlink(const char *path, char *buf, int bufsiz)
|
||||||
|
{
|
||||||
struct DevProc *dp = NULL;
|
struct DevProc *dp = NULL;
|
||||||
BPTR lock = NULL;
|
BPTR lock = NULL;
|
||||||
int retval = -1;
|
int retval = -1;
|
||||||
@@ -20,7 +22,6 @@ int readlink(const char *path, char *buf, int bufsiz) {
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
retval = ReadLink(dp->dvp_Port, lock, path, buf, bufsiz);
|
retval = ReadLink(dp->dvp_Port, lock, path, buf, bufsiz);
|
||||||
if (retval == TRUE)
|
if (retval == TRUE)
|
||||||
retval = strlen(buf);
|
retval = strlen(buf);
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user