#include "logging.h"
#ifdef UTMP_SUPPORT
+#if HAVE_STRUCT_UTMP
int rxvt_write_bsd_utmp (int utmp_pos, struct utmp *wu);
void rxvt_update_wtmp (const char *fname, const struct utmp *putmp);
+#endif
+
void rxvt_update_lastlog (const char *fname, const char *pty, const char *host);
/*
# ifdef HAVE_STRUCT_UTMPX
# if HAVE_UPDWTMPX
updwtmpx (RXVT_WTMPX_FILE, utx);
+# else
+ pututxline (utx);
# endif
# endif
}
# ifdef HAVE_STRUCT_UTMPX
# if HAVE_UPDWTMPX
updwtmpx (RXVT_WTMPX_FILE, utx);
+# else
+ pututxline (utx);
# endif
# endif
}
* Write a BSD style utmp entry
*/
#ifdef HAVE_UTMP_H
-/* INTPROTO */
int
rxvt_write_bsd_utmp (int utmp_pos, struct utmp *wu)
{
/*
* Update a BSD style wtmp entry
*/
-#if defined(WTMP_SUPPORT) && !defined(HAVE_UPDWTMP)
-/* INTPROTO */
+#if defined(WTMP_SUPPORT) && !defined(HAVE_UPDWTMP) && defined(HAVE_STRUCT_UTMP)
void
rxvt_update_wtmp (const char *fname, const struct utmp *putmp)
{
/* ------------------------------------------------------------------------- */
#ifdef LASTLOG_SUPPORT
-/* INTPROTO */
void
rxvt_update_lastlog (const char *fname, const char *pty, const char *host)
{
return str ? strdup (str) : 0;
}
-/* INTPROTO */
char *
rxvt_r_basename (const char *str)
{
/*
* Print an error message
*/
-/* INTPROTO */
void
rxvt_vlog (const char *fmt, va_list arg_ptr)
{
write (STDOUT_FILENO, msg, strlen (msg));
}
-/* INTPROTO */
void
rxvt_log (const char *fmt,...)
{
/*
* Print an error message
*/
-/* INTPROTO */
void
rxvt_warn (const char *fmt,...)
{
va_end (arg_ptr);
}
-/* INTPROTO */
void
rxvt_fatal (const char *fmt,...)
{
class rxvt_failure_exception rxvt_failure_exception;
-/* INTPROTO */
void
rxvt_exit_failure ()
{
* Match
* return: strlen (S2)
*/
-/* INTPROTO */
int
rxvt_Str_match (const char *s1, const char *s2)
{
return ((strncmp (s1, s2, n) == 0) ? n : 0);
}
-/* INTPROTO */
const char *
rxvt_Str_skip_space (const char *str)
{
* remove leading/trailing space and strip-off leading/trailing quotes.
* in place.
*/
-/* INTPROTO */
char *
rxvt_Str_trim (char *str)
{
*
* returns the converted string length
*/
-/* INTPROTO */
int
rxvt_Str_escaped (char *str)
{
* trailing spaces from each entry. Empty strings are properly returned
* Caller should free each entry and array when done
*/
-/* INTPROTO */
char **
rxvt_splitcommastring (const char *cs)
{
*
* FILE is either semi-colon or zero terminated
*/
-/* INTPROTO */
char *
rxvt_File_search_path (const char *pathlist, const char *file, const char *ext)
{
return NULL;
}
-/* INTPROTO */
char *
rxvt_File_find (const char *file, const char *ext, const char *path)
{
* Draw top/left and bottom/right border shadows around windows
*/
#if defined(RXVT_SCROLLBAR) || defined(MENUBAR)
-/* INTPROTO */
void
rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h)
{
/* button shapes */
#ifdef MENUBAR
-/* INTPROTO */
void
rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type)
{
* Calculate tiling sizes and increments
* At start, p == 0, incr == xpmwidthheight
*/
-/* INTPROTO */
static void
rxvt_pixmap_incr (unsigned int *wh, unsigned int *xy, float *incr, float *p, unsigned int widthheight, unsigned int xpmwidthheight)
{