source: trunk/third/sysinfo/getosdist.c @ 12269

Revision 12269, 790 bytes checked in by ghudson, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12268, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * Copyright (c) 1992-1998 Michael A. Cooper.
3 * This software may be freely used and distributed provided it is not
4 * sold for profit or used in part or in whole for commercial gain
5 * without prior written agreement, and the author is credited
6 * appropriately.
7 */
8
9#ifndef lint
10static char *RCSid = "$Revision: 1.1.1.1 $";
11#endif
12
13/*
14 * Get OS Distribution information
15 */
16
17#include "defs.h"
18
19/*
20 * Use predefined value.
21 */
22extern char *GetOSDistDef()
23{
24#if     defined(OS_RELEASE)
25    return(OS_RELEASE);
26#else
27    return((char *)NULL);
28#endif  /* OS_RELEASE */
29}
30
31/*
32 * Get Operating System Dist string
33 */
34extern char *GetOSDist()
35{
36    extern PSI_t               GetOSDistPSI[];
37    static char               *Str = NULL;
38
39    if (Str)
40        return(Str);
41
42    return(Str = PSIquery(GetOSDistPSI));
43}
44
Note: See TracBrowser for help on using the repository browser.