Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/stdio.h

    rc23275a r80bee81  
    4444#define EOF  (-1)
    4545
     46/** Default size for stream I/O buffers */
     47#define BUFSIZ  4096
     48
     49#define DEBUG(fmt, ...) \
     50        { \
     51                char _buf[256]; \
     52                int _n = snprintf(_buf, sizeof(_buf), fmt, ##__VA_ARGS__); \
     53                if (_n > 0) \
     54                        (void) __SYSCALL3(SYS_KIO, KIO_WRITE, (sysarg_t) _buf, str_size(_buf)); \
     55        }
     56
    4657#ifndef SEEK_SET
    4758        #define SEEK_SET  0
     
    5566        #define SEEK_END  2
    5667#endif
    57 
    58 /** Default size for stream I/O buffers */
    59 #define BUFSIZ  4096
    60 
    61 #define DEBUG(fmt, ...) \
    62         { \
    63                 char _buf[256]; \
    64                 int _n = snprintf(_buf, sizeof(_buf), fmt, ##__VA_ARGS__); \
    65                 if (_n > 0) \
    66                         (void) __SYSCALL3(SYS_KIO, KIO_WRITE, (sysarg_t) _buf, str_size(_buf)); \
    67         }
    6868
    6969enum _buffer_type {
     
    153153extern void setbuf(FILE *, void *);
    154154
     155/* Misc file functions */
     156extern int rename(const char *, const char *);
     157extern int remove(const char *);
     158
    155159#endif
    156160
Note: See TracChangeset for help on using the changeset viewer.