Changeset cc6f688 in mainline for libc/include


Ignore:
Timestamp:
2005-11-22T17:07:38Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3a6d6656
Parents:
25b0e6a
Message:

uspace work

Location:
libc/include
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • libc/include/libc.h

    r25b0e6a rcc6f688  
    3030#define __LIBC__LIBC_H__
    3131
     32#include <types.h>
     33
     34
     35typedef enum {
     36        SYS_CTL = 0,
     37        SYS_IO  = 1
     38} syscall_t;
     39
    3240
    3341extern void __main(void);
    3442extern void __exit(void);
    35 extern void __syscall(const unsigned int id, const unsigned int p1, const unsigned int p2, const unsigned int p3);
     43extern unsigned int __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3);
    3644
    3745
  • libc/include/stdio.h

    r25b0e6a rcc6f688  
    2727 */
    2828
    29 #ifndef __LIBC__UNISTD_H__
    30 #define __LIBC__UNISTD_H__
     29#ifndef __LIBC__STDIO_H__
     30#define __LIBC__STDIO_H__
    3131
    32 #define NULL 0
     32#include <types.h>
    3333
    34 extern void puts(const char *str);
     34#define EOF -1
     35
     36extern int puts(const char * str);
    3537
    3638#endif
Note: See TracChangeset for help on using the changeset viewer.