smf_method_exit(3scf) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

smf_method_exit(3scf)

Service Configuration Facility Library Functions         smf_method_exit(3SCF)



NAME
       smf_method_exit  -  exit  from  a  Service  Management Facility service
       method

SYNOPSIS
       cc [ flag... ] file... -lscf [ library... ]
       #include <libscf.h>

       void smf_method_exit(int semantic, const char *message_short,
            const char *message_long, const char *textdomain);

DESCRIPTION
       The smf_method_exit() function calls exit(2) with semantic. The  seman‐
       tic should be one of the method exit codes defined in smf_method(7).


       If  the  calling  process is a service method, then the remaining argu‐
       ments will be made available to its restarter and should conform to the
       following guidelines:

           o      message_short  should point to a null-terminated string with
                  no spaces, containing a short, concise  explanation  of  the
                  reason for calling smf_method_exit().


           o      message_long  should  point to a null-terminated string con‐
                  taining the reason for calling smf_method_exit().


           o      textdomain should either be NULL, or point to a  null-termi‐
                  nated  string  such that a call to dgettext(3C) with textdo‐
                  main as domainname and message_long as msgid will return  an
                  appropriately localized target string.



       See  svc.startd(8) or the manual page for the appropriate restarter for
       a description of semantic-specific behaviors. Use of  smf_method_exit()
       with  a  restarter  other  than svc.startd or specifying a semantic not
       defined in smf_method(7) may produce unexpected results.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelSafe


SEE ALSO
       exit(2),   dgettext(3C),  libscf(3LIB),  attributes(7),  smf_method(7),
       svc.startd(8)



Oracle Solaris 11.4               23 Apr 2012            smf_method_exit(3SCF)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3