-/* $Id: drv_Crystalfontz.c,v 1.46 2006/09/07 09:06:25 reinelt Exp $
+/* $Id: drv_Crystalfontz.c,v 1.47 2006/09/14 03:49:14 reinelt Exp $
*
* new style driver for Crystalfontz display modules
*
*
*
* $Log: drv_Crystalfontz.c,v $
+ * Revision 1.47 2006/09/14 03:49:14 reinelt
+ * indent run
+ *
* Revision 1.46 2006/09/07 09:06:25 reinelt
* lots of wrong printf formats corrected (thanks to Ernst Bachmann)
*
default:
/* this should not happen */
- error("%s: unexpected response type=0x%02x code=0x%02x size=%d", Name, Packet.type, Packet.code, Packet.size);
+ error("%s: unexpected response type=0x%02x code=0x%02x size=%d", Name, Packet.type, Packet.code,
+ Packet.size);
break;
}
WIDGET_CLASS wc;
int ret;
- info("%s: %s", Name, "$Revision: 1.46 $");
+ info("%s: %s", Name, "$Revision: 1.47 $");
/* start display */
if ((ret = drv_CF_start(section)) != 0) {
-/* $Id: drv_generic_serial.c,v 1.18 2006/09/08 19:00:46 reinelt Exp $
+/* $Id: drv_generic_serial.c,v 1.19 2006/09/14 03:49:14 reinelt Exp $
*
* generic driver helper for serial and usbserial displays
*
*
*
* $Log: drv_generic_serial.c,v $
+ * Revision 1.19 2006/09/14 03:49:14 reinelt
+ * indent run
+ *
* Revision 1.18 2006/09/08 19:00:46 reinelt
* give up after 10 write errors to serial device
*
error("%s: write to closed port %s failed!", Driver, Port);
return;
}
-
+
for (run = 0; run < 10; run++) {
ret = write(Device, string, len);
if (ret >= 0 || errno != EAGAIN) {
-/* $Id: lcd4linux.c,v 1.82 2006/09/13 20:04:57 entropy Exp $
+/* $Id: lcd4linux.c,v 1.83 2006/09/14 03:49:14 reinelt Exp $
*
* LCD4Linux
*
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.83 2006/09/14 03:49:14 reinelt
+ * indent run
+ *
* Revision 1.82 2006/09/13 20:04:57 entropy
* threads change argv[0] to their thread name, for a neat 'ps' output
*
my_argv[c] = strdup(argv[c]);
}
my_argv[c] = NULL;
-
+
/* save original arguments pointer for threads */
- thread_argv=argv;
- thread_argc=argc;
+ thread_argv = argv;
+ thread_argc = argc;
running_foreground = 0;
running_background = 0;
-/* $Id: thread.c,v 1.9 2006/09/13 20:04:57 entropy Exp $
+/* $Id: thread.c,v 1.10 2006/09/14 03:49:14 reinelt Exp $
*
* thread handling (mutex, shmem, ...)
*
*
*
* $Log: thread.c,v $
+ * Revision 1.10 2006/09/14 03:49:14 reinelt
+ * indent run
+ *
* Revision 1.9 2006/09/13 20:04:57 entropy
* threads change argv[0] to their thread name, for a neat 'ps' output
*
#endif
-int thread_argc;
+int thread_argc;
char **thread_argv;
pid_t pid, ppid;
ppid = getpid();
-
+
switch (pid = fork()) {
case -1:
error("fatal error: fork(%s) failed: %s", name, strerror(errno));
case 0:
info("thread %s starting...", name);
if (thread_argc > 0) {
- strncpy(thread_argv[0],name,strlen(thread_argv[0]));
- }
+ strncpy(thread_argv[0], name, strlen(thread_argv[0]));
+ }
thread(data);
info("thread %s ended.", name);
exit(0);
-/* $Id: thread.h,v 1.8 2006/09/13 20:04:57 entropy Exp $
+/* $Id: thread.h,v 1.9 2006/09/14 03:49:14 reinelt Exp $
*
* thread handling (mutex, shmem, ...)
*
*
*
* $Log: thread.h,v $
+ * Revision 1.9 2006/09/14 03:49:14 reinelt
+ * indent run
+ *
* Revision 1.8 2006/09/13 20:04:57 entropy
* threads change argv[0] to their thread name, for a neat 'ps' output
*
#define _THREAD_H_
-extern int thread_argc;
+extern int thread_argc;
extern char **thread_argv;
int mutex_create(void);