Changeset 324d46b in mainline for uspace/lib/posix/locale.c


Ignore:
Timestamp:
2011-07-07T01:32:53Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f466c33
Parents:
08053f7
Message:

Partial time.h implementation (WIP, untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/locale.c

    r08053f7 r324d46b  
    4242#include "string.h"
    4343
    44 struct _posix_locale {
     44struct __posix_locale {
    4545        int _dummy;
    4646};
     
    8383}
    8484
    85 struct posix_lconv *localeconv(void)
     85struct posix_lconv *posix_localeconv(void)
    8686{
    8787        // TODO
     
    9595                return NULL;
    9696        }
    97         posix_locale_t copy = malloc(sizeof(struct _posix_locale));
     97        posix_locale_t copy = malloc(sizeof(struct __posix_locale));
    9898        if (copy == NULL) {
    9999                errno = ENOMEM;
    100100                return NULL;
    101101        }
    102         memcpy(copy, locobj, sizeof(struct _posix_locale));
     102        memcpy(copy, locobj, sizeof(struct __posix_locale));
    103103        return copy;
    104104}
     
    118118        }
    119119        // TODO
    120         posix_locale_t new = malloc(sizeof(struct _posix_locale));
     120        posix_locale_t new = malloc(sizeof(struct __posix_locale));
    121121        if (new == NULL) {
    122122                errno = ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.