From: jeff <jko@bsn1.net>
To: Noprianto <opennopri@yahoo.com>
Cc: linux-assembly@vger.kernel.org
Subject: Re: chdir on linux does not work
Date: Wed, 24 May 2006 14:06:14 +0000 [thread overview]
Message-ID: <200605241406.14417.jko@bsn1.net> (raw)
In-Reply-To: <20060524024929.99396.qmail@web50504.mail.yahoo.com>
On Wednesday 24 May 2006 02:49 am, Noprianto wrote:
> Dear All,
>
> Anyone can tell me why this chdir code does not work on
> linux ?
If you run this program in a terminal it will do the chdir,
then restore the original directory when the program
exits. Possibly this is what you are seeing?
>
> -> from what i read, chdir is system call number 12
>
>
> section .text
> global _start
>
> _start:
> mov eax, 12
> mov ebx, dir
> int 80h
>
>
> mov eax, 1
> mov ebx, 0
> int 80h
>
>
>
> section .data
> dir: db '/bin'
>
>
>
> Thanks,
> Pri
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-assembly"
> in the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2006-05-24 14:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-24 2:49 chdir on linux does not work Noprianto
2006-05-24 4:26 ` Timo Lindfors
2006-05-24 6:49 ` Frank Kotler
2006-05-24 7:15 ` Brian Raiter
2006-05-24 7:21 ` Frank Kotler
2006-05-24 12:17 ` Timo Lindfors
2006-05-25 3:55 ` Adrian Ho
2006-05-25 4:18 ` Frank Kotler
2006-05-24 6:18 ` Brian Raiter
2006-05-24 14:06 ` jeff [this message]
2006-05-25 3:20 ` Noprianto
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=200605241406.14417.jko@bsn1.net \
--to=jko@bsn1.net \
--cc=linux-assembly@vger.kernel.org \
--cc=opennopri@yahoo.com \
/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).