linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A question on cat.asm from asmutils-0.17
@ 2003-11-18  3:56 Lawrence
  2003-11-18  7:38 ` Frederic Marmond
  0 siblings, 1 reply; 2+ messages in thread
From: Lawrence @ 2003-11-18  3:56 UTC (permalink / raw)
  To: linux-assembly

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-18  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-18  3:56 A question on cat.asm from asmutils-0.17 Lawrence
2003-11-18  7:38 ` Frederic Marmond

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).