[BACK]Return to ctrl.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / builtin

Annotation of OpenXM_contrib2/asir2000/builtin/ctrl.c, Revision 1.50

1.8       noro        1: /*
                      2:  * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
                      3:  * All rights reserved.
                      4:  *
                      5:  * FUJITSU LABORATORIES LIMITED ("FLL") hereby grants you a limited,
                      6:  * non-exclusive and royalty-free license to use, copy, modify and
                      7:  * redistribute, solely for non-commercial and non-profit purposes, the
                      8:  * computer program, "Risa/Asir" ("SOFTWARE"), subject to the terms and
                      9:  * conditions of this Agreement. For the avoidance of doubt, you acquire
                     10:  * only a limited right to use the SOFTWARE hereunder, and FLL or any
                     11:  * third party developer retains all rights, including but not limited to
                     12:  * copyrights, in and to the SOFTWARE.
                     13:  *
                     14:  * (1) FLL does not grant you a license in any way for commercial
                     15:  * purposes. You may use the SOFTWARE only for non-commercial and
                     16:  * non-profit purposes only, such as academic, research and internal
                     17:  * business use.
                     18:  * (2) The SOFTWARE is protected by the Copyright Law of Japan and
                     19:  * international copyright treaties. If you make copies of the SOFTWARE,
                     20:  * with or without modification, as permitted hereunder, you shall affix
                     21:  * to all such copies of the SOFTWARE the above copyright notice.
                     22:  * (3) An explicit reference to this SOFTWARE and its copyright owner
                     23:  * shall be made on your publication or presentation in any form of the
                     24:  * results obtained by use of the SOFTWARE.
                     25:  * (4) In the event that you modify the SOFTWARE, you shall notify FLL by
1.9       noro       26:  * e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification
1.8       noro       27:  * for such modification or the source code of the modified part of the
                     28:  * SOFTWARE.
                     29:  *
                     30:  * THE SOFTWARE IS PROVIDED AS IS WITHOUT ANY WARRANTY OF ANY KIND. FLL
                     31:  * MAKES ABSOLUTELY NO WARRANTIES, EXPRESSED, IMPLIED OR STATUTORY, AND
                     32:  * EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
                     33:  * FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT OF THIRD PARTIES'
                     34:  * RIGHTS. NO FLL DEALER, AGENT, EMPLOYEES IS AUTHORIZED TO MAKE ANY
                     35:  * MODIFICATIONS, EXTENSIONS, OR ADDITIONS TO THIS WARRANTY.
                     36:  * UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, TORT, CONTRACT,
                     37:  * OR OTHERWISE, SHALL FLL BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY
                     38:  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
                     39:  * DAMAGES OF ANY CHARACTER, INCLUDING, WITHOUT LIMITATION, DAMAGES
                     40:  * ARISING OUT OF OR RELATING TO THE SOFTWARE OR THIS AGREEMENT, DAMAGES
                     41:  * FOR LOSS OF GOODWILL, WORK STOPPAGE, OR LOSS OF DATA, OR FOR ANY
                     42:  * DAMAGES, EVEN IF FLL SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF
                     43:  * SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY. EVEN IF A PART
                     44:  * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY
                     45:  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
                     46:  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
                     47:  *
1.50    ! ohara      48:  * $OpenXM: OpenXM_contrib2/asir2000/builtin/ctrl.c,v 1.49 2016/03/31 06:41:20 ohara Exp $
1.8       noro       49: */
1.1       noro       50: #include "ca.h"
                     51: #include "parse.h"
1.42      ohara      52: #include <string.h>
1.48      fujimoto   53: #if defined(VISUAL) || defined(__MINGW32__)
1.42      ohara      54: #include <windows.h>
1.44      ohara      55: #include <winnls.h>
1.42      ohara      56: #else
1.44      ohara      57: #include <locale.h>
1.42      ohara      58: #include <unistd.h>
                     59: #include <sys/types.h>
                     60: #include <sys/socket.h>
                     61: #include <sys/wait.h>
1.43      ohara      62: #include <sys/utsname.h>
1.42      ohara      63: #endif
                     64:
                     65: static struct {
                     66:        char *type;
                     67:        char *kernel;
                     68:        char *name;
                     69:        char *arch;
                     70:        char *release;
                     71:        char *full;
1.44      ohara      72:        char *lang;
1.42      ohara      73: } sysinfo;
1.1       noro       74:
                     75: void Pctrl();
1.42      ohara      76: void Psysinfo(LIST *rp);
                     77: static void get_sysinfo();
1.1       noro       78:
                     79: struct ftab ctrl_tab[] = {
                     80:        {"ctrl",Pctrl,-2},
1.30      noro       81:        {"asir_env",Pctrl,-2},
1.42      ohara      82:        {"sysinfo", Psysinfo, 0},
1.1       noro       83:        {0,0,0},
                     84: };
                     85:
1.33      noro       86: extern int error_in_timer;
1.45      noro       87: extern int prtime,nez,echoback,bigfloat,evalef;
1.39      ohara      88: extern int debug_up;
1.1       noro       89: extern int GC_max_heap_size,Verbose,hideargs,hex_output,do_server_in_X11;
1.36      noro       90: extern int do_message,do_terse;
1.4       noro       91: extern int ox_batch,ox_check,ox_exchange_mathcap;
1.1       noro       92: extern int f4_nocheck;
1.16      saito      93: extern int StrassenSize;
1.22      saito      94: extern int outputstyle;
1.3       noro       95: extern int fortran_output;
1.13      noro       96: extern int real_digit;
1.27      noro       97: extern int real_binary;
1.31      noro       98: extern int allow_laurent;
1.12      saito      99: #if defined(INTERVAL)
                    100: extern int zerorewrite;
1.38      saito     101: extern int Itvplot;
1.12      saito     102: #endif
1.11      noro      103: extern int double_output;
1.14      noro      104: extern int use_new_hensel;
1.15      noro      105: extern int print_quote;
1.20      noro      106: extern int show_crossref;
1.24      noro      107: extern Obj user_defined_prompt;
1.28      ohara     108: extern int asir_setenv;
1.32      noro      109: extern int show_orderspec;
1.34      noro      110: extern int no_debug_on_error;
1.37      noro      111: extern int diag_period;
1.40      noro      112: extern int weight_check;
1.41      ohara     113: extern char **ASIRLOADPATH;
                    114: extern int ASIRLOADPATH_LEN;
1.1       noro      115:
                    116: static struct {
                    117:        char *key;
                    118:        int *val;
                    119: } ctrls[] = {
1.33      noro      120:        {"error_in_timer",&error_in_timer},
1.1       noro      121:        {"cputime",&prtime},
                    122:        {"nez",&nez},
                    123:        {"echo",&echoback},
                    124:        {"bigfloat",&bigfloat},
1.45      noro      125:        {"evalef",&evalef},
1.1       noro      126:        {"verbose",&Verbose},
1.23      ohara     127:        {"quiet_mode",&do_quiet},
1.1       noro      128:        {"hideargs",&hideargs},
                    129:        {"hex",&hex_output},
                    130:        {"debug_window",&do_server_in_X11},
                    131:        {"message",&do_message},
1.36      noro      132:        {"terse",&do_terse},
1.1       noro      133:        {"debug_up",&debug_up},
1.24      noro      134:        {"no_prompt",&do_quiet},
1.28      ohara     135:        {"asir_setenv",&asir_setenv},
1.1       noro      136:        {"ox_batch",&ox_batch},
                    137:        {"ox_check",&ox_check},
1.5       noro      138:        {"ox_exchange_mathcap",&ox_exchange_mathcap},
1.1       noro      139:        {"f4_nocheck",&f4_nocheck},
1.16      saito     140:        {"StrassenSize",&StrassenSize},
1.22      saito     141:        {"outputstyle",&outputstyle},
1.11      noro      142:        {"double_output",&double_output},
1.13      noro      143:        {"real_digit",&real_digit},
1.27      noro      144:        {"real_binary",&real_binary},
1.3       noro      145:        {"fortran_output",&fortran_output},
1.14      noro      146:        {"new_hensel",&use_new_hensel},
1.15      noro      147:        {"print_quote",&print_quote},
1.20      noro      148:        {"show_crossref",&show_crossref},
1.31      noro      149:        {"allow_laurent",&allow_laurent},
1.32      noro      150:        {"show_orderspec",&show_orderspec},
1.34      noro      151:        {"no_debug_on_error",&no_debug_on_error},
1.37      noro      152:        {"diag_period",&diag_period},
1.40      noro      153:        {"weight_check",&weight_check},
1.12      saito     154: #if defined(INTERVAL)
                    155:        {"zerorewrite",&zerorewrite},
1.38      saito     156:        {"itvplotsize",&Itvplot},
1.12      saito     157: #endif
1.1       noro      158:        {0,0},
                    159: };
                    160:
                    161: void Pctrl(arg,rp)
                    162: NODE arg;
                    163: Q *rp;
                    164: {
1.24      noro      165:        int t,i,n;
1.39      ohara     166:        int nm,dv;
1.1       noro      167:        N num,den;
                    168:        Q c;
                    169:        char *key;
                    170:        char buf[BUFSIZ];
1.24      noro      171:        char *str;
1.41      ohara     172:        STRING s;
                    173:        NODE node,p;
                    174:        LIST list;
1.50    ! ohara     175:        P f;
1.49      ohara     176:        extern Q ox_pari_stream;
                    177:        extern int ox_pari_stream_initialized;
1.50    ! ohara     178:        extern P ox_pari_starting_function;
1.1       noro      179:
                    180:        if ( !arg ) {
                    181:                *rp = 0;
                    182:                return;
                    183:        }
                    184:        key = BDY((STRING)ARG0(arg));
                    185:        if ( !strcmp(key,"adj") ) {
                    186:                /* special treatment is necessary for "adj" */
                    187:                if ( argc(arg) == 1 ) {
1.39      ohara     188:                        Risa_GC_get_adj(&nm,&dv);
                    189:                        UTON(dv,num);
                    190:                        UTON(nm,den);
1.1       noro      191:                } else {
                    192:                        c = (Q)ARG1(arg);
                    193:                        if ( !c )
                    194:                                error("ctrl : adj : invalid argument");
                    195:                        num = NM(c);
                    196:                        den = !DN(c)?ONEN:DN(c);
1.39      ohara     197:                        dv = BD(num)[0];
                    198:                        nm = BD(den)[0];
                    199:                        Risa_GC_set_adj(nm,dv);
1.1       noro      200:                }
                    201:                NDTOQ(num,den,1,*rp);
1.24      noro      202:                return;
                    203:        } else if ( !strcmp(key,"prompt") ) {
                    204:                /* special treatment is necessary for "prompt" */
                    205:                if ( argc(arg) == 1 ) {
1.26      takayama  206:                  if ((!do_quiet) && (user_defined_prompt == (Obj)0)) *rp=ONE;
                    207:           else *rp = (Q)user_defined_prompt;
1.24      noro      208:                } else {
                    209:                        c = (Q)ARG1(arg);
1.25      noro      210:                        if ( !c ) {
                    211:                                do_quiet = 1;
                    212:                                user_defined_prompt = 0;
                    213:                                *rp = 0;
                    214:                        } else if ( OID(c) == O_STR ) {
                    215:                                str = BDY((STRING)c);
                    216:                                for ( i = 0, n = 0; str[i]; i++ )
                    217:                                        if ( str[i] == '%' )
                    218:                                                n++;
                    219:                                if ( n >= 2 )
                    220:                                        error("ctrl : prompt : invalid prompt specification");
1.24      noro      221:                                do_quiet = 1;
                    222:                                user_defined_prompt = (Obj)c;
                    223:                                *rp = c;
                    224:                        } else if ( NUM(c) && RATN(c) && UNIQ(c) ) {
                    225:                                user_defined_prompt = 0;
                    226:                                do_quiet = 0;
                    227:                        } else {
                    228:                                error("ctrl : prompt : invalid argument");
                    229:                        }
                    230:                }
1.1       noro      231:                return;
1.41      ohara     232:        } else if ( !strcmp(key,"loadpath") ) {
                    233:                *rp = 0;
                    234:                if ( argc(arg) == 1 ) {
                    235:                        if( ASIRLOADPATH[0] ) {
                    236:                                for(i=0; ASIRLOADPATH[i]; i++) {
                    237:                                }
                    238:                                for(i--,p=NULL; i>=0; i--,p=node) {
                    239:                                        MKSTR(s,ASIRLOADPATH[i]);
                    240:                                        MKNODE(node,s,p);
                    241:                                }
                    242:                                MKLIST(list,node);
                    243:                                *rp = list;
                    244:                        }
                    245:                } else {
                    246:                        list = (LIST)ARG1(arg);
                    247:                        if ( OID(list) == O_LIST ) {
                    248:                                for(i=0,p=BDY(list); p; i++,p=NEXT(p)) {
                    249:                                        s=(STRING)BDY(p);
                    250:                                        if(!s || OID(s)!=O_STR) {
                    251:                                                error("ctrl : loadpath : invalid argument");
                    252:                                        }
                    253:                                }
                    254:                                if(i >= ASIRLOADPATH_LEN) {
                    255:                                        ASIRLOADPATH_LEN = i+1;
                    256:                                        ASIRLOADPATH = (char **)MALLOC(sizeof(char *)*ASIRLOADPATH_LEN);
                    257:                                }
                    258:                                for(i=0,p=BDY(list); p; i++,p=NEXT(p)) {
                    259:                                        ASIRLOADPATH[i] = (char *)BDY((STRING)BDY(p));
                    260:                                }
                    261:                                ASIRLOADPATH[i] = NULL;
                    262:                        }else {
                    263:                                error("ctrl : loadpath : invalid argument");
                    264:                        }
                    265:                }
                    266:                return;
1.49      ohara     267:        } else if ( !strcmp(key,"oxpari_id") ) {
                    268:         if ( argc(arg) == 1 ) {
                    269:             if(!ox_pari_stream_initialized) {
                    270:                 t=-1;
                    271:                 STOQ(t,*rp);
                    272:             }else {
                    273:                 *rp = ox_pari_stream;
                    274:             }
                    275:         }else {
                    276:                        c = (Q)ARG1(arg);
                    277:                        if ( !c || ( NUM(c) && INT(c) && SGN(c)>0 ) ) {
                    278:                                ox_pari_stream_initialized = 1;
                    279:                                ox_pari_stream = c;
                    280:                                *rp = c;
                    281:                        }else {
                    282:                 t=-1;
                    283:                 STOQ(t,*rp);
                    284:                        }
                    285:                }
                    286:                return;
1.50    ! ohara     287:        } else if ( !strcmp(key,"oxpari_start") ) {
        !           288:         if ( argc(arg) == 1 ) {
        !           289:                        *rp = ox_pari_starting_function;
        !           290:                } else {
        !           291:                        f = (Obj)ARG1(arg);
        !           292:                        if ( !f || OID(f) == O_P) {
        !           293:                                ox_pari_starting_function = f;
        !           294:                                *rp = f;
        !           295:                        }else {
        !           296:                                *rp = 0;
        !           297:                        }
        !           298:                }
        !           299:                return;
1.1       noro      300:        }
                    301:        for ( i = 0; ctrls[i].key; i++ )
                    302:                if ( !strcmp(key,ctrls[i].key) )
                    303:                        break;
                    304:        if ( ctrls[i].key ) {
                    305:                if ( argc(arg) == 1 )
                    306:                        t = *ctrls[i].val;
                    307:                else
                    308:                        *ctrls[i].val = t = QTOS((Q)ARG1(arg));
                    309:                STOQ(t,*rp);
                    310:        } else {
                    311:                sprintf(buf,"ctrl : %s : no such key",key);
                    312:                error(buf);
                    313:        }
                    314: }
1.42      ohara     315:
                    316: void Psysinfo(LIST *rp)
                    317: {
                    318:     int i;
                    319:     NODE n,p;
1.44      ohara     320:     STRING s[7];
1.42      ohara     321:
                    322:     get_sysinfo();
                    323:     MKSTR(s[0],sysinfo.type);  MKSTR(s[1],sysinfo.kernel);   MKSTR(s[2],sysinfo.name);
                    324:     MKSTR(s[3],sysinfo.arch);  MKSTR(s[4],sysinfo.release);  MKSTR(s[5],sysinfo.full);
1.44      ohara     325:     MKSTR(s[6],sysinfo.lang);
                    326:     for(i=6,p=NULL; i>=0; i--,p=n) {
1.42      ohara     327:         MKNODE(n,s[i],p);
                    328:     }
                    329:     MKLIST(*rp,n);
                    330: }
                    331:
1.48      fujimoto  332: #if !defined(VISUAL) && !defined(__MINGW32__)
1.44      ohara     333:
                    334: static char *get_lang()
                    335: {
                    336:     char *c, *p, *q;
                    337:     c = setlocale(LC_ALL, NULL); /* saving current locale */
                    338:     p = setlocale(LC_ALL, "");
                    339:     q = (char *)MALLOC(strlen(p)+1);
                    340:     strcpy(q,p);
                    341:     setlocale(LC_ALL, c);        /* restoring current locale */
                    342:     return q;
                    343: }
                    344:
1.43      ohara     345: static char *myuname(char *option)
1.42      ohara     346: {
                    347:     char buf[BUFSIZ];
                    348:     char *s;
1.43      ohara     349:     int fd[2], status, pid;
1.42      ohara     350:     *buf = 0;
                    351:     if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0) {
1.43      ohara     352:         *buf = 0; return NULL;
1.42      ohara     353:     }
1.43      ohara     354:     pid = fork();
                    355:     if (pid < 0) {
                    356:         return NULL;
                    357:     }else if (pid == 0) {
1.42      ohara     358:         dup2(fd[1], 1);
1.43      ohara     359:         close(2);
1.42      ohara     360:         execlp("uname", "uname", option, NULL);
                    361:     }
1.43      ohara     362:     waitpid(pid, &status, 0);
                    363:     if (status) { /* error */
                    364:         return NULL;
                    365:     }
1.42      ohara     366:     s = buf;
                    367:     if( !read(fd[0], s, BUFSIZ-1) || (s = strchr(s, '\n')) ) {
                    368:         *s = 0;
                    369:     }
                    370:     close(fd[0]);
                    371:     close(fd[1]);
                    372:     s = (char *)MALLOC(strlen(buf)+1);
                    373:     strcpy(s, buf);
                    374:     return s;
                    375: }
                    376:
                    377: static void get_sysinfo()
                    378: {
1.43      ohara     379:     static struct utsname u;
1.42      ohara     380:     static int initialized = 0;
                    381:     if (initialized) {
                    382:         return;
                    383:     }
                    384:     initialized = 1;
1.43      ohara     385:     uname(&u);
                    386:     sysinfo.kernel = u.sysname;
1.42      ohara     387: #if defined(__DARWIN__)
                    388:     sysinfo.type   = "macosx";
                    389:     sysinfo.name   = sysinfo.kernel;
                    390: #else
                    391:     sysinfo.type   = "unix";
1.43      ohara     392:     sysinfo.name   = myuname("-o"); // not work on Darwin
                    393:     if (!sysinfo.name) {
                    394:         sysinfo.name = sysinfo.kernel;
                    395:     }
1.42      ohara     396: #endif
1.43      ohara     397:     sysinfo.arch   = u.machine;
                    398:     sysinfo.release= u.release;
                    399:     sysinfo.full   = myuname("-a");
1.44      ohara     400:     sysinfo.lang   = get_lang();
1.42      ohara     401: }
                    402:
                    403: #else
                    404:
                    405: /* http://msdn.microsoft.com/ja-jp/library/windows/desktop/ms724834%28v=vs.85%29.aspx */
                    406: static char *osnameNT(int major, int minor)
                    407: {
                    408:     if ((major == 3 && minor == 51) || (major == 4 && minor == 0)) {
                    409:         return "WindowsNT";
                    410:     }else if (major == 5 && minor == 0) {
                    411:         return "Windows2000";
                    412:     }else if (major == 5 && minor == 1) {
                    413:         return "WindowsXP";
                    414:     }else if (major == 5 && minor == 2) {
                    415:         return "Windows2003 Server";
                    416:     }else if (major == 6 && minor == 0) {
                    417:         return "WindowsVista";
                    418:     }else if (major == 6 && minor == 1) {
                    419:         return "Windows7";
                    420:     }else if (major == 6 && minor == 2) {
                    421:         return "Windows8";
                    422:     }else if (major == 6 && minor == 3) {
                    423:         return "Windows8.1";
                    424:     }
                    425:     return "unknown";
                    426: }
                    427:
                    428: static char *osname95(int major, int minor)
                    429: {
                    430:     if (major == 4 && minor == 0) {
                    431:         return "Windows95";
                    432:     }else if (major == 4 && minor == 10) {
                    433:         return "Windows98";
                    434:     }else if (major == 4 && minor == 90) {
                    435:         return "WindowsMe";
                    436:     }
                    437:     return "unknown";
                    438: }
                    439:
1.44      ohara     440: static char *get_lang()
                    441: {
                    442:     char lang[BUFSIZ];
                    443:     char *s;
                    444:     if(GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SISO639LANGNAME, lang, BUFSIZ)) {
                    445:         s = (char *)MALLOC(strlen(lang)+1);
                    446:         strcpy(s,lang);
                    447:         return s;
                    448:     }
                    449:     return "en"; // English
                    450: }
                    451:
1.42      ohara     452: static void get_sysinfo()
                    453: {
                    454:     int arch64 = 0;
                    455:     char buf[BUFSIZ];
                    456:     OSVERSIONINFO v;
                    457:     char *s;
                    458:     static int initialized = 0;
                    459:
                    460:     if (initialized) {
                    461:         return;
                    462:     }
                    463:     initialized = 1;
                    464:
                    465:     v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
                    466:     GetVersionEx(&v);
                    467:
                    468:     sysinfo.type = "windows";
                    469:     sysinfo.arch = "x86";
                    470:     sprintf(buf, "%d.%d.%d", v.dwMajorVersion, v.dwMinorVersion, v.dwBuildNumber);
                    471:     s = (char *)MALLOC(strlen(buf)+1);
                    472:     strcpy(s, buf);
                    473:     sysinfo.release = s;
                    474:
                    475:     if (v.dwPlatformId == VER_PLATFORM_WIN32_NT) {
                    476:         sysinfo.kernel = "WindowsNT";
                    477:         sysinfo.name = osnameNT(v.dwMajorVersion, v.dwMinorVersion);
                    478:
                    479: #if defined(_WIN64)
                    480:         sysinfo.arch = "x86_64";
                    481: #else
                    482:         // IsWow64Process exists on WindowsXP SP2 or later
                    483:         if(GetProcAddress(GetModuleHandle("kernel32.dll"), "IsWow64Process")) {
                    484:             IsWow64Process(GetCurrentProcess(),&arch64);
                    485:             if(arch64) {
                    486:                 sysinfo.arch = "x86_64";
                    487:             }
                    488:         }
                    489: #endif
                    490:     }else { /* v.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS */
                    491:         sysinfo.kernel = "Windows95";
                    492:         sysinfo.name = osname95(v.dwMajorVersion, v.dwMinorVersion);
                    493:     }
                    494:     sprintf(buf, "%s %s %s %s %s", sysinfo.kernel, sysinfo.release, sysinfo.name, v.szCSDVersion, sysinfo.arch);
                    495:     s = (char *)MALLOC(strlen(buf)+1);
                    496:     strcpy(s, buf);
                    497:     sysinfo.full = s;
1.44      ohara     498:     sysinfo.lang = get_lang();
1.42      ohara     499: }
                    500:
                    501: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>