Revision 32f36bce linux-user/syscall.c

b/linux-user/syscall.c
40 40
#include <sys/socket.h>
41 41
#include <sys/uio.h>
42 42
#include <sys/poll.h>
43
#include <sys/times.h>
43 44
//#include <sys/user.h>
44 45
#include <netinet/tcp.h>
45 46

  
......
1367 1368
        }
1368 1369
        break;
1369 1370
    case TARGET_NR_times:
1370
        goto unimplemented;
1371
        {
1372
            struct target_tms *tmsp = (void *)arg1;
1373
            struct tms tms;
1374
            ret = get_errno(times(&tms));
1375
            if (tmsp) {
1376
                tmsp->tms_utime = tswapl(tms.tms_utime);
1377
                tmsp->tms_stime = tswapl(tms.tms_stime);
1378
                tmsp->tms_cutime = tswapl(tms.tms_cutime);
1379
                tmsp->tms_cstime = tswapl(tms.tms_cstime);
1380
            }
1381
        }
1382
        break;
1371 1383
    case TARGET_NR_prof:
1372 1384
        goto unimplemented;
1373 1385
    case TARGET_NR_setgid:

Also available in: Unified diff