Commit Graph
48 Commits
Author SHA1 Message Date
marschap 09cb8d86b5 remove debugging cruft 2006-04-13 07:21:00 +00:00
marschap d2bafd9cdc make sure error messages to the client are always '\0'-terminated 2006-04-12 16:49:15 +00:00
marschap e0bc105759 add GNU getopti & check for it; prepare for use with getopt_long() 2006-01-16 19:53:28 +00:00
marschap aeffd250a1 require automake 1.7 in condifure.in; update all Makefile.am: add comments,
replace obsoleted INCLUDES by AM_CPPFLAGS
2006-01-16 19:36:58 +00:00
boercher 7674db0eb5 avoid Doxygen warnings 2005-10-25 22:38:19 +00:00
boercher bba4631370 eliminated compiler warnings 2005-10-25 22:34:07 +00:00
boercher 78a4e731db fixed memory-lead (sizeof(LCDd.conf)) 2005-08-19 23:14:57 +00:00
boercher 8c3f36f890 fixed valgrind-warnings:
- added missing initialization of buffile->buf
- corrected malloc-call
2005-08-19 23:13:05 +00:00
boercher 93f162ff48 - new socket function sock_send_error() and
sock_printf_error(): factored out the 'huh?-stuff, added error report
 log)
- use sock_printf() and sock_printf_error() if necessary (no need to
  use sprintf())
2005-07-17 16:14:07 +00:00
marschap 3771a8273e added .cvsignore files, thanks to Volker Boerchers for his contribution 2005-05-22 07:16:48 +00:00
marschap 9ead481dbb remove duplicate code: make sock_send_string() depend on sock_send();
use defined constants and character constants instead of simple ascii values;
new function sock_printf(): format data using vsnprintf and send it
2005-05-21 14:55:46 +00:00
marschap 06f6590c9c eliminate compiler warnings (VB) 2005-04-05 07:28:18 +00:00
marschap b0a9e45704 reorganized report_* variables in main.c and report.c so that they can be static
to their file; also static-alized other variables an functions in main.c
2005-04-01 17:17:05 +00:00
robijn 80aa4d3d1e Fixed tiny bug in sock_recv_string that caused some clients to hang. 2004-02-06 16:33:55 +00:00
reenoo e516bea574 Fixed crashes due to use of nested functions.
I have therefore added shared/fileio.c/h to encapsule
buffered file operations, thus making it possible
to re-read the configuration file unlike with the
patch I committed to stable-0-4-4.
2004-01-05 00:39:14 +00:00
reenoo 4166da2f2b Fixed crashes due to use of nested functions.
I have therefore added shared/fileio.c/h to encapsule
buffered file operations, thus making it possible
to re-read the configuration file unlike with the
patch I committed to stable-0-4-4.

See also: http://lists.omnipotent.net/pipermail/lcdproc/2003-December/008413.html
2003-12-28 23:47:30 +00:00
reenoo e4e948523f LDAP support added
- This patch enables LCDd to retrieve its configuration
  options from an LDAP directory.
- The code was tested with OpenLDAP 2.1.x (21<=x<=22) only.
- LDAP support is disabled by default and has to be enabled
  with ./configure --enable-ldap.
  (See ./configure --help for other options. Not all options
  have any effect yet.)
- Currently only anonymous LDAP binds are supported.
- The DN of the main configuration object has to be passed to LCDd
  instead of the configuration file location:
  LCDd -c "ldap://yourhost.yourcompany.com/cn=config1,cn=lcdproc,dc=yourcompany dc=COM"
  The basic idea behind the LCDproc object classes is that they
  are more or less verbatim copies of the corresponding sections in a
  generic LCDd.conf
- Unfortunately schema files cannot be provided yet, because LCDproc does
  not have a registered OID namespace and OID hijacking is prohibited.
2003-12-25 15:02:34 +00:00
blt 67cae9e447 Add support for Winsock library and logging to the windows event log 2003-08-06 12:11:54 +00:00
gfk d3223644a2 Portability: patch by Christian Grigis <christian.grigis@smartdata.ch> to allow building the software from a directory different 2003-08-02 00:37:10 +00:00
robijn 71922063b8 Change to priority classes. Will probably require some fixings.
- Now using priority classes internally and in protocol
- Converting (depreciated) priorty numbers to the classes BACKGROUND,
  INFO and FOREGROUND
- Added menu_goto command (only works when menu not active)
2003-02-27 21:20:20 +00:00
robijn 4a7ef8d847 - Fixed option processing of bool options in config file.
- Tried to make option order more consistent
2003-02-27 20:31:51 +00:00
robijn 8a1933e3b9 Removed some debugging. 2002-08-04 20:52:36 +00:00
robijn 7d39b49079 - Implemented config_clean.
- Now using strdup(str) i.o. malloc(strlen(str)+1).
2002-08-04 20:52:00 +00:00
robijn c8fc08f6e3 Reporting cleaned up and levels made more consistent. 2002-07-14 20:30:33 +00:00
robijn 380000357d Stand-in snprintf routines will no longer be used if snprintf function is present in libc. 2002-07-14 20:14:12 +00:00
robijn 91ffd9d109 Moved configfile.c and .h to shared/
Made reporting more general by making syslog appname settable.
2002-06-29 16:37:18 +00:00
robijn 3168d4cafc Menustuff added/modified! 2002-05-26 19:21:23 +00:00
gfk 40706764dd Added a portable snprintf implementenation in case it's not present. 2002-05-11 18:19:39 +00:00
robijn dba163c4a4 Drivers are now being loaded as modules. 2002-02-21 22:50:12 +00:00
robijn 71056ec551 v0.5 kick-off 2001-12-30 00:15:25 +00:00
gfk 5de08960bf Moved the uPause function to timmings.h for modularity and easier porting to BSD. 2001-12-23 19:43:20 +00:00
reenoo b74c84ea71 =added #include <string.h> 2001-11-30 15:31:04 +00:00
robijn f12b17d4f2 Forgotten files needed for reporting. 2001-11-29 15:15:14 +00:00
robijn 285d29edf3 Reporting patch. 2001-11-29 14:09:13 +00:00
gfk 91c430a8c4 Fixed to remove the warnings when debugging is turned on. 2001-11-11 19:18:28 +00:00
gfk 134b33ace6 Crash landing of the fix for bug #472883: BSD curses.h allready declares LL. 2001-10-26 16:29:12 +00:00
gfk 8b19e5bc12 patch to initialize sockaddr by Jarda Benkovsky 2001-10-19 22:26:58 +00:00
gfk 85957e2154 change %08x -> %p to print pointers by Jarda Benkovsky 2001-10-19 22:23:25 +00:00
ppokorny 00cc9fca23 + Changed protocol to 0.3 because we now accept both -foo and foo
as argument introducers.  in 0.4-pre10, these were changed
   from foo to -foo and this broke many clients.  This change
   should fix that and be backward/forward compatible.
 + Added a noop function to the protocol.  This is useful for writing
   shell script clients of LCDproc.
 + Changed the shared sock_send_string function to NOT send the
   ending NUL ('\0') byte with the string.  This was confusing
   in Perl clients which saw NUL's as the first character of
   each reply.  WARNING: The LCDPROC client depended on this
   behavior, your client may too.  Use the newline instead.
   See the code in clients/lcdproc/main.c (look for "switch(buf[i])")
   to see one way to handle this.  This should allow new clients
   to connect to old servers and vice-versa.
 + Messed with include structure in .c files.  It should no longer
   be necessary to specify ../.. to get to shared code headers.
   Also, since we are using automake, the global config.h can be
   found with just #include "config.h" as it's location is included
   in a -I to the compilers.  As a result "make distcheck" now works.
2001-05-25 03:14:27 +00:00
ppokorny 3fff6381b0 Fixed problems on systems using newer GLIB and GCC (2.96) which no
longer allow the -Wp,-lang-c-c++-comments directive.  Also cleaned
up getloadavg support that had problems on Solaris and RedHat 7.1.
Removed unused variables in a number of functions as a result of
warnings when compiled with --enable-debug config option.
2001-05-15 01:55:59 +00:00
ppokorny 877d8ac8e8 Added GLK12232-25SM support with glk driver.
Fixed lots of small problems in various places.
Added new protocol commands screen_add/del_key so screens
   can request keystrokes when they are being displayed.
Lots of work on CPU GRAPH and BIG NUMBER CLOCK screens.
Fixed 'output' function in MtxOrb.c
2001-04-27 02:20:38 +00:00
William Ferrell 6a115b4446 More formatting changes, new tags file. 2000-04-03 22:13:57 +00:00
William Ferrell ddfd41f53e More formatting updates. Reduced whitespace, looks even better. 2000-03-30 20:43:33 +00:00
William Ferrell a98c8109a8 Added a tags file. I dunno if this is something that's really supposed to
be in a CVS repository, but for now, it is, so there. :)
2000-03-30 20:28:01 +00:00
jrray 8411ee67d1 Made sock_recv_string work.
sock_send_string and sock_send "corrected" to handle cases where not all
	the bytes intended to be sent are actually sent (must loop to
	send the remaining bytes).
File descriptors were not actually being closed by sock_close (they were
	only being shutdown).
2000-02-14 13:38:39 +00:00
William Ferrell e6431e9827 Automake patch 1999-12-11 19:33:35 +00:00
William Ferrell 1f0e4679ab Applied Bjorn Andersson's autoconf/automake patch. LCDproc is now built
with the standard "./autogen.sh && ./configure && make && make install"
instead of just tweaking the Makefile and typing "make".
1999-12-11 19:21:29 +00:00
William Ferrell 2635c3085d Initial revision 1999-12-09 23:15:14 +00:00