Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../.././../../../usr/man/man3lgrp/lgrp_version.3lgrp
Real path: /usr/share/man/man3lgrp/lgrp_version.3lgrp
Zurück
'\" te .\" Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. .TH lgrp_version 3LGRP "16 Apr 2003" "Oracle Solaris 11.4" "Locality Group Library Functions" .SH NAME lgrp_version \- coordinate library and application versions .SH SYNOPSIS .LP .nf cc [ \fIflag ...\fR ] \fIfile\fR... \fB-llgrp\fR [ \fIlibrary ...\fR ] #include <sys/lgrp_user.h> \fBint\fR \fBlgrp_version\fR(\fBconst int\fR \fIversion\fR); .fi .SH DESCRIPTION .sp .LP The \fBlgrp_version()\fR function takes an interface version number, \fIversion\fR, as an argument and returns an lgroup interface version. The \fIversion\fR argument should be the value of \fBLGRP_VER_CURRENT\fR bound to the application when it was compiled or \fBLGRP_VER_NONE\fR to find out the current lgroup interface version on the running system. .SH RETURN VALUES .sp .LP If \fIversion\fR is still supported by the implementation, then \fBlgrp_version()\fR returns the requested version. If \fBLGRP_VER_NONE\fR is returned, the implementation cannot support the requested version. The application should be recompiled and might require further changes. .sp .LP If \fIversion\fR is \fBLGRP_VER_NONE\fR, \fBlgrp_version()\fR returns the current version of the library. .SH EXAMPLES .LP \fBExample 1\fR Test whether the version of the interface used by the caller is supported. .sp .LP The following example tests whether the version of the interface used by the caller is supported: .sp .in +2 .nf #include <sys/lgrp_user.h> if (lgrp_version(LGRP_VER_CURRENT) != LGRP_VER_CURRENT) { fprintf(stderr, "Built with unsupported lgroup interface %d\en", LGRP_VER_CURRENT); exit (1); } .fi .in -2 .sp .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Committed _ MT-Level MT-Safe .TE .sp .SH SEE ALSO .sp .LP \fBlgrp_init\fR(3LGRP), \fBliblgrp\fR(3LIB), \fBattributes\fR(7)