mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Folded duplicate code stdio_init_exit.c into a common function.
- Simplified the code in time_asctime_r.c which builds the time string. It gracefully handles buffer sizes which are too short by returning an empty string. - Moved the tm->tm_wday initialization out of the hook function in time_strftime.c since it was to be called only once anyway. - Lost a few compiler warnings in unistd_time_delay.c and time_gettimeofday.c. - Folded duplicate code in time_mktime.c; also, errno is no longer modified unless the library is built with the CHECK_FOR_NULL_POINTERS option. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14818 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stat_stat.c,v 1.4 2005-01-24 10:25:46 obarthel Exp $
|
||||
* $Id: stat_stat.c,v 1.5 2005-01-30 09:37:59 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -116,8 +116,8 @@ stat(const char * path_name, struct stat * st)
|
||||
|
||||
st->st_mode = S_IFDIR | S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
|
||||
st->st_mtime = mtime;
|
||||
st->st_atime = st->st_mtime;
|
||||
st->st_ctime = st->st_mtime;
|
||||
st->st_atime = mtime;
|
||||
st->st_ctime = mtime;
|
||||
st->st_nlink = 2;
|
||||
st->st_blksize = 512;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user