Ignore:
Timestamp:
2014-03-17T19:50:17Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a5abb78
Parents:
7ddc2c7 (diff), dc5a1f26 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge (minor) libposix changes

  • math.h in libposix is more standalone (i.e. no inclusion of libc headers)
  • added FILENAME_MAX
  • actually allow usage of functions with fpos_t
File:
1 edited

Legend:

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

    r7ddc2c7 r9df6b0f  
    6464#define EOF (-1)
    6565
     66/** Size of buffers used in stdio header. */
    6667#define BUFSIZ  4096
     68
     69/** Maximum size in bytes of the longest filename. */
     70#define FILENAME_MAX 4096
    6771
    6872typedef struct _IO_FILE FILE;
     
    155159
    156160/* File Positioning */
    157 typedef struct _posix_fpos __POSIX_DEF__(fpos_t);
     161typedef struct {
     162        off64_t offset;
     163} __POSIX_DEF__(fpos_t);
     164
    158165extern int __POSIX_DEF__(fsetpos)(FILE *stream, const __POSIX_DEF__(fpos_t) *pos);
    159166extern int __POSIX_DEF__(fgetpos)(FILE *restrict stream, __POSIX_DEF__(fpos_t) *restrict pos);
Note: See TracChangeset for help on using the changeset viewer.