Signed-off-by: Alejandro Colomar <alx@kernel.org>
#include <stdlib.h>
#include <unistd.h>
\&
-void
+static void
handler(int signo, siginfo_t *info, void *context)
{
struct sigaction oldact;
#include <stdlib.h>
#include <unistd.h>
\&
-void
+static void
bye(void)
{
printf("That was all, folks\[rs]n");
\&
#define is_signed(T) ((T) \-1 < 1)
\&
-time_t my_mktime(struct tm *tp);
+static time_t my_mktime(struct tm *tp);
\&
int
main(int argc, char *argv[])
exit(EXIT_SUCCESS);
}
\&
-time_t
+static time_t
my_mktime(struct tm *tp)
{
int e, isdst;
off_t offset; /* Current file offset in buf */
};
\&
-ssize_t
+static ssize_t
memfile_write(void *c, const char *buf, size_t size)
{
char *new_buff;
return size;
}
\&
-ssize_t
+static ssize_t
memfile_read(void *c, char *buf, size_t size)
{
ssize_t xbytes;
return xbytes;
}
\&
-int
+static int
memfile_seek(void *c, off_t *offset, int whence)
{
off_t new_offset;
return 0;
}
\&
-int
+static int
memfile_close(void *c)
{
struct memfile_cookie *cookie = c;