不能打开临时文件。
如果您指定任意命令行参数,跟踪将打开,跟踪消息将被写入当前目录中的一个临时文件。
If you specify any command line parameters, tracing will be turned on and trace messages will be written to a temporary file in the current directory.
此代码小心地断开与临时文件的链接(让它仍是打开的,但已经被删除)来进行自动清空。
This code carefully unlinks the temporary file, leaving it open but already removed, to clean up automatically.
有一些程序只是直接调用mktemp(3)或tmpnam(3)来创建临时文件,然后基于这样做会成功的假定去简单地打开它。
Some programs just call mktemp (3) or tmpnam (3) directly to create a temporary file name, and then simply open it under the assumption that it'll be OK.
许多程序常常使用这种特性来创建临时文件,它们可以创建文件、打开文件并删除文件。
This feature is often used by programs creating temporary files; they create the file, open it, and delete it.
解决这种问题的方法是,一旦自动创建了一个临时文件,就必须始终使用打开该文件时得到的文件描述符或文件流。
To resolve this, once you create a temporary file atomically, you must always use the file descriptor or file stream you got when you opened the file.
对此没有完全标准化的方法;最轻便的方法是打开一个临时文件,将数据写入到这个临时文件,然后将它交给lexer。
There is no completely standardized way to do this; the most portable solution is to open a temporary file, write data to it, and hand it to the lexer. Here's a sample bit of code to do this.
对此没有完全标准化的方法;最轻便的方法是打开一个临时文件,将数据写入到这个临时文件,然后将它交给lexer。
There is no completely standardized way to do this; the most portable solution is to open a temporary file, write data to it, and hand it to the lexer. Here's a sample bit of code to do this.
应用推荐