Ignore:
File:
1 edited

Legend:

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

    r80bee81 rc23275a  
    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 
    5746#ifndef SEEK_SET
    5847        #define SEEK_SET  0
     
    6655        #define SEEK_END  2
    6756#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 */
    156 extern int rename(const char *, const char *);
    157 extern int remove(const char *);
    158 
    159155#endif
    160156
Note: See TracChangeset for help on using the changeset viewer.