Subversion Repositories Kolibri OS

Rev

Rev 9656 | Rev 9764 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9656 Rev 9725
Line 1433... Line 1433...
1433
    k.p20 = 0;
1433
    k.p20 = 0;
1434
    k.p21 = name;
1434
    k.p21 = name;
1435
    return _ksys_work_files(&k);
1435
    return _ksys_work_files(&k);
1436
}
1436
}
Line -... Line 1437...
-
 
1437
 
-
 
1438
/*============= Function 77 - implements the POSIX subsystem. =============*/
-
 
1439
 
-
 
1440
static inline
-
 
1441
int _ksys_posix_read(int pipefd, void* buff, int n)
-
 
1442
{
-
 
1443
    int count;
-
 
1444
    asm_inline(
-
 
1445
        "int $0x40"
-
 
1446
        :"=a"(count)
-
 
1447
        :"a"(77), "b"(10),"c"(pipefd), "d"(buff), "S"(n)
-
 
1448
        :"memory"
-
 
1449
    );
-
 
1450
    return count;
-
 
1451
}
-
 
1452
 
-
 
1453
static inline
-
 
1454
int _ksys_posix_write(int pipefd, void* buff, int n)
-
 
1455
{
-
 
1456
    int count;
-
 
1457
    asm_inline(
-
 
1458
        "int $0x40"
-
 
1459
        :"=a"(count)
-
 
1460
        :"a"(77), "b"(11),"c"(pipefd), "d"(buff), "S"(n)
-
 
1461
        :"memory"
-
 
1462
    );
-
 
1463
    return count;
-
 
1464
}
-
 
1465
 
-
 
1466
static inline
-
 
1467
int _ksys_posix_pipe2(int pipefd[2], int flags)
-
 
1468
{
-
 
1469
    int err;
-
 
1470
    asm_inline(
-
 
1471
        "int $0x40"
-
 
1472
        :"=a"(err)
-
 
1473
        :"a"(77), "b"(13),"c"(pipefd), "d"(flags)
-
 
1474
        :"memory"
-
 
1475
    );
-
 
1476
    return err;
Line 1437... Line 1477...
1437
 
1477
}
Line 1438... Line 1478...
1438
 
1478