bugTiny C Compiler - Bugs: bug #43984, tcc -run reports errno=2

 
 

bug #43984: tcc -run reports errno=2

Submitter:  None
Submitted:  Mon 12 Jan 2015 07:29:42 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 25 Mar 2015 11:08:25 AM UTC, comment #1: 

fixed in mob (2015-03-25)

Sergey Korshunoff <seyko>
Mon 12 Jan 2015 07:29:42 AM UTC, original submission:  

The following program (errno.c) reports errno=2 when run using "tcc -run errno.c" . It reports errno=0 when run using "tcc errno.c && ./a.out".

Environment:
- Ubuntu Trusty 14.04 / x86_64
- tcc 0.9.25 (from ubuntu package) and Git head (e260b03).

#include <errno.h>
#include <stdio.h>

int main(void) {
        printf("errno=%d\n", errno);
        return 0;
}

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #32805:  errno.c added by None (113B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by seyko (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-12 None Attached File- Added errno.c, #32805

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code