Ray Strode
42e92b2e37
add some forgotton files from last commit
2007-06-03 21:46:00 -04:00
Ray Strode
ee407ee53b
add the start of some classes for tracking boot status
2007-06-03 20:11:58 -04:00
Ray Strode
a6f81dcdf9
commit header file changes for previous ply-utils commit
2007-06-03 20:10:21 -04:00
Ray Strode
f8b5c8157e
adapt the event loop code to support watching the same
...
fd from more than one place (and with different conditions)
2007-06-03 20:09:48 -04:00
Ray Strode
6eeab19385
add some socket handling apis to ply-utils.c and fixup
...
a thinko in ply_read_bytes
2007-06-03 19:27:05 -04:00
Ray Strode
7ab0dc597e
add new ply_list_get_last_node function to get the list tail
2007-05-31 17:01:09 -04:00
Ray Strode
7f7f14aafc
more off by one ickyness in the errno stack thing
2007-05-30 17:55:33 -04:00
Ray Strode
d1e2d29814
change event loop "watch fd" api to let the user specify a condition to watch for
2007-05-30 10:32:55 -04:00
Ray Strode
aa4848fbc2
save errno before closing fds in error path and restore
...
afterward.
2007-05-29 20:46:07 -04:00
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