Jonas 'Sortie' Termansen
ec5fa92761
Programmers can now redirect what the errno macro refers to.
2012-07-06 17:18:06 +02:00
Jonas 'Sortie' Termansen
c5c92d9615
Added ungetc(3).
2012-05-29 22:17:27 +02:00
Jonas 'Sortie' Termansen
341bd73cb0
GCC no longer fixes stdio.h because of va_list.
...
Note that for non-ANSI C programs, stdio.h includes stdarg.h which defines
macros that stdio.h wasn't supposed to define.
2012-05-28 22:37:45 +02:00
Jonas 'Sortie' Termansen
500f8651bb
Prevent GCC from fixing headers that are OK.
2012-05-27 23:46:59 +02:00
Jonas 'Sortie' Termansen
9905a2f2d6
Added EINIT, "Not initialized".
2012-05-27 17:20:33 +02:00
Jonas 'Sortie' Termansen
5d59f0ed03
Added EBOUND.
2012-04-02 20:24:56 +02:00
Jonas 'Sortie' Termansen
757184fd5c
Added EEOF.
2012-03-24 15:19:16 +01:00
Jonas 'Sortie' Termansen
db79994e64
Refactored all the sortix headers into a include directory.
...
Also got rid of trailing white space. That corrupted .git/.
Big ass-commit because of recovered .git directory.
2012-03-22 00:52:29 +01:00
Jonas 'Sortie' Termansen
f54cb6ab94
Added EAGAIN and made read(1) and write(1) retry if they get it.
2012-03-17 15:35:45 +01:00
Jonas 'Sortie' Termansen
3cab1113cf
Made EOPNOTSUPP an alias for ENOTSUP.
2012-03-12 01:46:12 +01:00
Jonas 'Sortie' Termansen
2cdeb575f8
Renamed EACCESS to EACCES.
...
Stupid POSIX.
2012-03-12 01:43:00 +01:00
Jonas 'Sortie' Termansen
6de3c462be
Added EMFILE.
2012-03-12 01:37:50 +01:00
Jonas 'Sortie' Termansen
d564574cd0
Added fseterr(3).
2012-03-12 01:31:48 +01:00
Jonas 'Sortie' Termansen
366cc2549a
Added the stdio_ext(3) API.
...
The API is available in <stdio.h> without __ prefix if _SORTIX_SOURCE.
2012-03-12 00:38:48 +01:00
Jonas 'Sortie' Termansen
4ad0d360da
Added EILSEQ.
2012-03-11 20:44:57 +01:00
Jonas 'Sortie' Termansen
beb88d0443
Added EPIPE.
2012-03-11 20:11:32 +01:00
Jonas 'Sortie' Termansen
c2660e5432
Added EBUSY.
2012-03-10 23:18:27 +01:00
Jonas 'Sortie' Termansen
f8bcf3117d
Added ENOTEMPTY.
2012-03-10 23:12:31 +01:00
Jonas 'Sortie' Termansen
2722c3f03d
Added EINTR.
2012-03-06 13:36:44 +01:00
Jonas 'Sortie' Termansen
c0a02248da
Added <sys/time.h>, struct timeval and gettimeofday(3) stub.
2012-03-04 22:05:52 +01:00
Jonas 'Sortie' Termansen
777fc04682
Added <time.h>, clock_t, and a stub for clock(3).
2012-03-04 18:38:23 +01:00
Jonas 'Sortie' Termansen
73e2d9db3c
Made errno(3) a macro to itself.
2012-03-04 18:06:24 +01:00
Jonas 'Sortie' Termansen
ac7e55ffbd
Added st_dev to struct stat.
2012-03-04 16:48:24 +01:00
Jonas 'Sortie' Termansen
f9f59e9536
Added ELAKE.
2012-03-03 01:06:32 +01:00
Jonas 'Sortie' Termansen
cbdf54fcdd
Moved SEEK_SET, SEEK_CUR, and SEEK_SET to <sortix/seek.h>.
2012-02-24 17:34:50 +01:00
Jonas 'Sortie' Termansen
03273d0076
Added stubs for stat(2), and fstat(2).
2012-02-22 00:30:34 +01:00
Jonas 'Sortie' Termansen
e05e934beb
Changed return type of FILE::tell_func to off_t.
2012-02-12 13:20:53 +01:00
Jonas 'Sortie' Termansen
fec176fa15
Refactored the libmaxsi/ directory.
...
C and C++ files are now kept together and so are the mxmpp declarations.
Header files are now stored in include/ and mxmpp'd into preproc/.
All other code now -I ../libmaxsi/preproc.
And other stuff to make this happen, including refactoring Makefile.
2012-02-12 13:20:53 +01:00
Jonas 'Sortie' Termansen
5fde8e13ed
Blocking systemcalls now return EBLOCKING instead of EWOULDBLOCK.
...
EWOULDBLOCK is now used when it wanted to block, but didn't.
2012-02-10 13:28:28 +01:00
Jonas 'Sortie' Termansen
f676cf75f4
Added ENOTSUP.
2012-01-18 15:40:31 +01:00
Jonas 'Sortie' Termansen
c5ddc6923a
Added ENOSYS.
2012-01-14 16:09:30 +01:00
Jonas 'Sortie' Termansen
91015a2ea7
Made the size_t declaration compatible with GCC.
2012-01-09 00:31:14 +01:00
Jonas 'Sortie' Termansen
fdbd4ca90d
Implemented large parts of the stdio(3), including fprintf.
...
Made FILE an interface to various backends. This allows application writers
to override the standard FILE API functions with their own backends. This
is highly unportable - it'd be nice if a real standard existed for this.
glibc already does something like this internally, but AFAIK you can't hook
into it.
Added fdopen(3), fopen(3), fregister(3), funregister(3), fread(3),
fwrite(3), fseek(3), clearerr(3), ferror(3), feof(3), rewind(3), ftell(3),
fflush(3), fclose(3), fileno(3), fnewline(3), fcloseall(3), memset(3),
stdio(3), vfprintf(3), fprintf(3), and vprintf(3).
Added a file-descriptor backend to the FILE API.
fd's {0, 1, 2} are now initialized as stdin, stdout, and stderr when the
standard library initializes.
fcloseall(3) is now called on exit(3).
decl/intn_t_.h now @include(size_t.h) instead of declaring it itself.
Added <stdint.h>.
The following programs now flush stdout: cat(1), clear(1), editor(1),
init(1), mxsh(1).
printf(3) is now hooked up against vprintf(3), while Maxsi::PrintF
remains using the system call, for now.
2011-12-24 04:28:34 +01:00
Jonas 'Sortie' Termansen
6562da4092
waitpid(2) now returns ECHILD on error.
2011-12-01 14:54:19 +01:00
Jonas 'Sortie' Termansen
bd1b1fe3bc
Added isatty(2), which is used by editor.
2011-11-26 21:00:40 +01:00
Jonas 'Sortie' Termansen
2b032b0414
Initial signal support. Please squash improvements into this commit.
2011-11-23 00:19:09 +01:00
Jonas 'Sortie' Termansen
e234e0a2d4
execve(2) now sets errno=EACCESS on non-buffer files.
2011-11-22 18:21:01 +01:00
Jonas 'Sortie' Termansen
9deb183786
The ELF loader now uses errno.
2011-11-22 18:06:40 +01:00
Jonas 'Sortie' Termansen
9f35df813e
Implemented errno(3), added support in both kernel and utils.
2011-11-22 17:26:47 +01:00
Jonas 'Sortie' Termansen
9b79673dcb
Initial version of Sortix.
2011-08-05 14:25:00 +02:00