/contrib/sdk/sources/newlib/libc/Makefile |
553,6 → 553,7 |
|
LIB_SRCS:= $(STATIC_SRCS) |
LIB_OBJS:= $(STATIC_OBJS) |
CFLAGS += -DSTATIC_LIBC |
|
else |
|
667,7 → 668,10 |
%.o : %.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
|
%.o : %.S Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
|
|
clean: |
-rm -f */*.o |
|
/contrib/sdk/sources/newlib/libc/sys/open.c |
115,6 → 115,7 |
if(hid < 0) |
{ |
errno = EMFILE; |
__io_free(hid); |
return (-1); |
}; |
|
136,6 → 137,7 |
if( !err ) |
{ |
errno = EEXIST; |
__io_free(hid); |
return (-1); |
}; |
} |
147,6 → 149,7 |
if( err ) |
{ |
errno = EACCES; |
__io_free(hid); |
return -1; |
}; |
}; |