C library: Add swab()
This commit is contained in:
parent
3b351615be
commit
a49b349614
@ -106,7 +106,11 @@ namespace std
|
|||||||
using ::execv;
|
using ::execv;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Other
|
// Byte operations
|
||||||
|
|
||||||
|
using ::swab;
|
||||||
|
|
||||||
|
// getopt and friends
|
||||||
|
|
||||||
using ::getopt;
|
using ::getopt;
|
||||||
|
|
||||||
|
@ -203,7 +203,11 @@ int execl(FAR const char *path, ...);
|
|||||||
int execv(FAR const char *path, FAR char *const argv[]);
|
int execv(FAR const char *path, FAR char *const argv[]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Other */
|
/* Byte operations */
|
||||||
|
|
||||||
|
void swab(FAR const void *src, FAR void *dest, ssize_t nbytes);
|
||||||
|
|
||||||
|
/* getopt and friends */
|
||||||
|
|
||||||
int getopt(int argc, FAR char *const argv[], FAR const char *optstring);
|
int getopt(int argc, FAR char *const argv[], FAR const char *optstring);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# libc/unistd/Make.defs
|
# libc/unistd/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011-2012, 2017 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -35,8 +35,8 @@
|
|||||||
|
|
||||||
# Add the unistd C files to the build
|
# Add the unistd C files to the build
|
||||||
|
|
||||||
CSRCS += lib_access.c lib_getopt.c lib_getoptargp.c lib_getoptindp.c
|
CSRCS += lib_access.c lib_swab.c
|
||||||
CSRCS += lib_getoptoptp.c
|
CSRCS += lib_getopt.c lib_getoptargp.c lib_getoptindp.c lib_getoptoptp.c
|
||||||
|
|
||||||
ifneq ($(CONFIG_NFILE_DESCRIPTORS),0)
|
ifneq ($(CONFIG_NFILE_DESCRIPTORS),0)
|
||||||
ifneq ($(CONFIG_DISABLE_ENVIRON),y)
|
ifneq ($(CONFIG_DISABLE_ENVIRON),y)
|
||||||
|
Loading…
Reference in New Issue
Block a user