linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lawrence <law@cbf.chinese2000.net>
To: linux-assembly@vger.kernel.org
Subject: A question on cat.asm from asmutils-0.17
Date: Tue, 18 Nov 2003 11:56:29 +0800	[thread overview]
Message-ID: <3FB9986D.60709@cbf.chinese2000.net> (raw)

Hi All,

I'm trying to get acquintant with Linux assembly language by studying
the asm code found in asmutils.

While studying cat.asm, I discover that every time a file is opened
using sys_open, there is no correspondent sys_close to it. (The codes
were marked).

I would like to ask if this is an legitimate way to open a file without
closing it under Linux, or just a convenient way to let the
shell/kernel(I'm not sure...) to close the file for us when cat is
finished.  For my experience on MS-DOS assembly, I must close an
opened-file, or otherwise I'll encounter an out of file handle error.

Thanks and Regards,
Lawrence


             reply	other threads:[~2003-11-18  3:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-18  3:56 Lawrence [this message]
2003-11-18  7:38 ` A question on cat.asm from asmutils-0.17 Frederic Marmond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FB9986D.60709@cbf.chinese2000.net \
    --to=law@cbf.chinese2000.net \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).