[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4 システム


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.1 asir-port.sh, asir-install.sh

asir-install.sh
asir-port.sh

:: これは asir の内部コマンドではない. asir をネットワークからダウンロードかつ実行するシェルスクリプト

ChangeLog


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.2 asirgui.hnd

asirguid.hnd

:: asirgui の main window のハンドル番号を保持するファイル

// cl test.c user32.lib

#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <process.h>

int main()
{

	HWND hnd;
	FILE *fp = fopen("c:/Program Files/asir/bin/asirgui.hnd","r");
	fscanf(fp,"%d",&hnd);
	fclose(fp);
	while (1) {
		int c;
		c = getchar();
		if ( c == '#' ) break;
		PostMessage(hnd,WM_CHAR,c,1);
	}
	return 0;
}
参照

@ref{xyz_abc}

ChangeLog


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.3 chdir, pwd

chdir(directory)
pwd()

:: シェルコマンド cd と pwd に対応する操作.

return

文字列(pwd), 整数(chdir)

dirctory

文字列

[0] S=pwd();
/home/ohara
[1] chdir(".../taka");
-1
[2] chdir("/usr/bin");
0

ChangeLog


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.4 dcurrenttime

dcurrenttime()

:: 現在時刻を取得.

return

浮動小数点数

[0] ctrl("real_digit", 16);
16
[1] dcurrenttime();
1226390851.34476
[2] currenttime();
1226390854
参照

@ref{currenttime}

ChangeLog


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.5 getpid

getpid()
return

整数

[219] getpid();
3214

ChangeLog


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.6 loadpath

ctrl(“loadpath”[,list])
list

文字列(パス)のリスト

return

文字列(パス)のリスト, または数(listが与えられたとき)

[0] L=ctrl("loadpath");
[/home/you/OpenXM/lib/asir-contrib,/home/you/OpenXM/lib/asir,.]
[1] ctrl("loadpath", cons(getenv("HOME")+"/lib",L));
0

ChangeLog


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.7 sysinfo

sysinfo()
return

文字列のリスト

[0] sysinfo();
[windows,WindowsNT,Windows7,x86_64,6.1.7601,WindowsNT 6.1.7601 Windows7 Service Pack 1 x86_64,ja]

ChangeLog


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on October 17, 2017 using texi2html 5.0.