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

 
 

bug #43984: tcc -run reports errno=2

Submitted by:  None
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

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