LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-18-2006, 11:57 AM   #1
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Rep: Reputation: 30
Exit Code 204


Hi:
I'm using a programming language that executes a system call
on Linux Red Hat 9.0

A system call to "ls" returns exit code 0 (as I would expect)
A "buffered" system call (gathers results in a string, rather than printing to stdout)
to "ls" returns an exit code 204 which to this 'ol C dog signals an error, however the
results appear to be correct.

So I'm curious as to whether 204 is a known linux system error code number or perhaps the language interpreter is "munging" the exit code.

Any links to linux error code info would be appreciated.
thanks
tim
 
Old 04-19-2006, 04:52 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
What programming language are you referring to?
And how does it implement your "system calls" (I suppose you refer to calls to shell functions, rather than real system calls to the kernel).
 
Old 04-19-2006, 10:57 AM   #3
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by timmeke
What programming language are you referring to?
Rebol. It's written in Ansi C
Quote:
Originally Posted by timmeke
And how does it implement your "system calls" (I suppose you refer to calls to shell functions, rather than real system calls to the kernel).
Correct. Like C system() or python system() functions. Shell commands.
 
Old 04-24-2006, 03:19 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Can you please post the relevant parts of your code?
 
Old 04-24-2006, 11:14 AM   #5
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by timmeke
Can you please post the relevant parts of your code?
Other programmers and I have agreed that it is a bug, and extensive code samples have been provided to the developer.

If you are interested in the console session that I used to test with, feel free to contact me OTL and I will send it.

Thanks
tim
 
Old 04-25-2006, 01:59 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
No, that won't be necessary. I guess my job to help you with your problem is done here. Thread can be closed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exit Code: 7 dbzw SUSE / openSUSE 0 12-21-2004 01:06 PM
atexit and exit code GŠutama Programming 3 11-01-2003 02:15 AM
pppd exit code = 10 eduac Linux - Hardware 1 10-20-2003 02:57 AM
kppp - exit code 1 grim1234 Slackware 3 09-02-2003 09:01 AM
pppd exit code 16 ksgill Linux - Newbie 8 07-12-2003 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration