summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/aio.h4
-rw-r--r--include/spawn.h4
-rw-r--r--include/time.h2
-rw-r--r--include/unistd.h6
4 files changed, 8 insertions, 8 deletions
diff --git a/include/aio.h b/include/aio.h
index c0dab9c5..cf94964f 100644
--- a/include/aio.h
+++ b/include/aio.h
@@ -43,10 +43,10 @@ struct aiocb {
ssize_t aio_read(struct aiocb *);
ssize_t aio_write(struct aiocb *);
-int aio_error(struct aiocb *);
+int aio_error(const struct aiocb *);
ssize_t aio_return(struct aiocb *);
int aio_cancel(int, struct aiocb *);
-int aio_suspend(struct aiocb *const [], int, const struct timespec *);
+int aio_suspend(const struct aiocb *const [], int, const struct timespec *);
int aio_fsync(int, struct aiocb *);
int lio_listio(int, struct aiocb *const [], int, struct sigevent *);
diff --git a/include/spawn.h b/include/spawn.h
index 1bcb1bbf..99ec6f1d 100644
--- a/include/spawn.h
+++ b/include/spawn.h
@@ -34,9 +34,9 @@ typedef struct {
} posix_spawn_file_actions_t;
int posix_spawn(pid_t *, const char *, const posix_spawn_file_actions_t *,
- const posix_spawnattr_t *, char **, char **);
+ const posix_spawnattr_t *, char *const [], char *const []);
int posix_spawnp(pid_t *, const char *, const posix_spawn_file_actions_t *,
- const posix_spawnattr_t *, char **, char **);
+ const posix_spawnattr_t *, char *const [], char *const []);
int posix_spawnattr_init(posix_spawnattr_t *);
int posix_spawnattr_destroy(posix_spawnattr_t *);
diff --git a/include/time.h b/include/time.h
index 4cec647d..5b1ea91f 100644
--- a/include/time.h
+++ b/include/time.h
@@ -102,7 +102,7 @@ extern int daylight;
extern long timezone;
extern char *tzname[2];
extern int getdate_err;
-extern struct tm *getdate (const char *);
+struct tm *getdate (const char *);
#endif
diff --git a/include/unistd.h b/include/unistd.h
index 35cfda8c..95b514ec 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -55,8 +55,8 @@ int link(const char *, const char *);
int linkat(int, const char *, int, const char *, int);
int symlink(const char *, const char *);
int symlinkat(const char *, int, const char *);
-int readlink(const char *, char *, size_t);
-int readlinkat(int, const char *, char *, size_t);
+ssize_t readlink(const char *, char *, size_t);
+ssize_t readlinkat(int, const char *, char *, size_t);
int unlink(const char *);
int unlinkat(int, const char *, int);
int rmdir(const char *);
@@ -134,7 +134,7 @@ size_t confstr(int, char *, size_t);
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
int lockf(int, int, off_t);
-int setpgrp(void);
+pid_t setpgrp(void);
char *crypt(const char *, const char *);
void encrypt(char *, int);
void swab(const void *, void *, ssize_t);