Commit graph

94 commits

Author SHA1 Message Date
Ray Strode
79ee862f70 drop the unused ply_read_some_bytes function 2007-05-29 20:13:34 -04:00
Ray Strode
29744ccc0b fix an off by one in the errno stack code 2007-05-29 10:07:26 -04:00
Ray Strode
65a6735c92 handle framerate differently and print it to stderr for debugging 2007-05-24 17:31:44 -04:00
Ray Strode
5b22da9d14 use integer math instead of floating point math for blending ops 2007-05-24 17:29:12 -04:00
Ray Strode
5cd108b845 use uint_fast32_t instead of unit_least32_t for device pixel 2007-05-24 17:28:26 -04:00
Ray Strode
754c779af8 drop unused field from fb struct 2007-05-24 17:27:01 -04:00
Ray Strode
0072b409ff check FRAMEBUFFER for fb device, if available 2007-05-24 09:20:32 -04:00
Ray Strode
d99441216e set graphics mode in image test program to prevent blinking during boot up 2007-05-24 01:42:59 -04:00
Ray Strode
c8e94e96df add some blue to the background in the image-test to get an idea why things are blinking during bootup 2007-05-24 01:04:35 -04:00
Ray Strode
8faff2c1b1 add a few inline statements and drop framerate to make ply-image-test less resource hungry 2007-05-24 00:50:59 -04:00
Ray Strode
ed4b03058c add "watch init's progress" to TODO list 2007-05-23 22:25:36 -04:00
Ray Strode
4cff534b9d add O_NOCTTY to a few open calls 2007-05-23 20:05:51 -04:00
Ray Strode
b57eed5c0b add missing close() call. redirect messages to /dev/null 2007-05-23 19:46:37 -04:00
Ray Strode
40e9dc0ea2 allow a terminal session to also take over /dev/console 2007-05-23 19:33:22 -04:00
Ray Strode
6949c46ea2 mount /proc and /dev/pts if they aren't mounted
turn all redirected messages to uppercase
2007-05-23 17:11:18 -04:00
Ray Strode
7724425f22 mount /dev/pts if it's not mounted yet 2007-05-23 16:08:54 -04:00
Ray Strode
8117bae564 fix typo in error message 2007-05-23 16:08:18 -04:00
Ray Strode
178fd654ab add new functions that check if a file or dir exists 2007-05-23 15:32:06 -04:00
Ray Strode
23aad94507 add start of a program to eat a sessions output 2007-05-23 14:29:14 -04:00
Ray Strode
a707efeca4 add logger files to event-loop test program 2007-05-23 14:28:52 -04:00
Ray Strode
871d3fa991 remove erroneous space between macro name and arg list for ply_flush_log 2007-05-23 14:28:17 -04:00
Ray Strode
44d8319565 temporarily hide bug in code by removing an assert 2007-05-23 14:27:23 -04:00
Ray Strode
b489445041 don't output terminal session by default 2007-05-23 14:26:48 -04:00
Ray Strode
cfe0e7b1a5 add new ply_save_errno/ply_restore_errno functions
The primary mechanism for reporting problems in this program
is through errno.  Since errno can get wiped out transparently
across syscalls, it's often necessary to save errno before making
a syscall and restore it afterward.  These functions make that
easier.
2007-05-23 11:50:05 -04:00
Ray Strode
f7726dbc72 automatically add new lines to log messages unless explicitly
called _without_new_line
2007-05-23 11:27:08 -04:00
Ray Strode
c8e7fc693c add support for default error logging
This commit adds a convience macros, ply_error (), that
will by default log error messages to the standard error.

This commit also adds a new api for specifying a policy
for determining when to automatically flush the log buffer.
2007-05-23 11:22:07 -04:00
Ray Strode
b3dca39089 fix up some of the convenience macros after some api churn 2007-05-23 11:02:15 -04:00
Ray Strode
d56a6b38c7 split off image libs separate from project global libs 2007-05-23 10:49:02 -04:00
Ray Strode
538870c37c s/program/file/ in copyright block for ply-event-loop.c 2007-05-23 10:48:04 -04:00
Ray Strode
8e520e352e add hook to get notified when the terminal session ends 2007-05-23 10:35:37 -04:00
Ray Strode
9958276959 hook up the terminal session class to the event loop 2007-05-22 16:57:52 -04:00
Ray Strode
d6ed3f15d3 remove one of the functions just added, it was broken by design 2007-05-22 16:07:10 -04:00
Ray Strode
9f06aa1a5c add a few more api functions for reading bytes 2007-05-22 16:05:03 -04:00
Ray Strode
ba7021ecdc remove some more bogus bool return values 2007-05-22 13:38:22 -04:00
Ray Strode
ade173a02d add ply_logger_inject_bytes api 2007-05-22 13:02:08 -04:00
Ray Strode
61b1cbaf81 rewrite the ply_event_loop_run function to be simpler 2007-05-22 11:41:49 -04:00
Ray Strode
ed48422c16 add a new api ply_event_loop_watch_for_exit
This api allows the caller to register a handler to be
invoked once the event loop has been quit.
2007-05-22 11:39:45 -04:00
Ray Strode
e3c54578dd drop some bogus failure cases in the event loop code 2007-05-22 11:21:56 -04:00
Ray Strode
f64a937df8 fix up copyright headers/assignment 2007-05-22 00:58:23 -04:00
Ray Strode
eb7a035201 first cut at an event loop 2007-05-22 00:48:00 -04:00
Ray Strode
f18c897d09 add new ply_read() function (like the ply_write() function) 2007-05-22 00:47:31 -04:00
Ray Strode
29b57941af add new linked list implementation 2007-05-22 00:06:48 -04:00
Ray Strode
95ddbf6ab2 begin to hook up new logging interfaces to ply-terminal-session 2007-05-21 17:46:40 -04:00
Ray Strode
e2a3a0c8d2 add start of new classes for handling logging 2007-05-21 17:45:52 -04:00
Ray Strode
ce1debbfe5 add new ply_get_timestamp() function
This commit adds a function, ply_get_timestamp(), that returns
the current time in seconds since the epoch as a double.
2007-05-21 10:06:58 -04:00
Ray Strode
aebc4650c6 move static functions in ply-terminal-session.c to top 2007-05-21 09:51:19 -04:00
Ray Strode
d1f2ac9c60 add ply-terminal-session-test to Makefile 2007-05-21 08:10:05 -04:00
Ray Strode
e5c427bf0a add new ply-terminal-session class
This commit features the first cut of a class that can run a
program and direct its console to a pseudoterminal.
2007-05-21 08:02:34 -04:00
Ray Strode
74f0ebf213 fix up string array duplicating functions to compile
add new function to close all open fds
2007-05-19 20:16:14 -04:00
Ray Strode
66fb7f7071 add new function to free a string array 2007-05-18 19:35:12 -04:00