"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/src/support.h" (14 Jan 2000, 1323 Bytes) of package /linux/misc/old/pidentd-3.0.19.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "support.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 ** support.h - Miscellaneous support functions.
    3 **
    4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
    5 **
    6 ** This program is free software; you can redistribute it and/or
    7 ** modify it as you wish - as long as you don't claim that you wrote
    8 ** it.
    9 **
   10 ** This program is distributed in the hope that it will be useful,
   11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   13 */
   14 
   15 #ifndef PIDENTD_SUPPORT_H
   16 #define PIDENTD_SUPPORT_H
   17 
   18 extern char osinfo_build[];
   19 extern char *osinfo_get(char *buf);
   20 
   21 
   22 #define SOCKTYPE_NOTSOCKET 0
   23 #define SOCKTYPE_LISTEN    1
   24 #define SOCKTYPE_CONNECTED 2
   25 
   26 extern int socktype(int fd);
   27 
   28 extern char *s_strtok_r(char *b, const char *s, char **bp);
   29 
   30 extern int s_strcasecmp(const char *s1, const char *s2);
   31 
   32 struct passwd;
   33 extern int s_getpwnam_r(const char *name,
   34             struct passwd *pwd,
   35             char *buffer, size_t bufsize,
   36             struct passwd **result);
   37 
   38 extern int s_getpwuid_r(uid_t uid,
   39             struct passwd *pwd,
   40             char *buffer, size_t bufsize,
   41             struct passwd **result);
   42 
   43 extern void s_openlog(const char *ident, int logopt, int facility);
   44 
   45 extern int syslog_str2fac(const char *name);
   46 extern int syslog_str2lev(const char *name);
   47 
   48 extern const char *s_inet_ntox(struct sockaddr_gen *ia, char *buf,
   49     size_t bufsize);
   50 
   51 #endif