Commit Graph

435 Commits

Author SHA1 Message Date
Gregory Nutt
26e1327462 execl(): Fix bad logic in counting the number of arguments. This could never have worked. Noted by Pierre-noel Bouteville 2015-02-09 08:53:00 -06:00
Gregory Nutt
6bc9a0c9c6 Fix backward calculation in the work queue timing. From Liio Chen via the PX4 repository 2015-01-27 06:17:02 -06:00
Gregory Nutt
b12cf6d2f5 Add math library support for trunc functions. From Brennan Ashton. 2015-01-26 19:00:35 -06:00
Gregory Nutt
0a11f9b669 Cosmetic 2015-01-26 18:55:17 -06:00
Gregory Nutt
06337a4f7a Add math library support for copysign. From Brennan Ashton 2015-01-26 18:52:28 -06:00
Gregory Nutt
7e177e1c12 Add error function to math library. From Brennan Ashton. 2015-01-26 13:58:47 -06:00
Gregory Nutt
e153959eea Add support for inverse hyperbolic functions. From Brennan Ashton 2015-01-26 13:52:53 -06:00
Gregory Nutt
5a441ce03b Networking: Misck IPv6 detanglement 2015-01-15 12:19:44 -06:00
Gregory Nutt
40b0acaded sscanf should also support %F 2014-12-12 07:54:37 -06:00
Gregory Nutt
1b661c6d23 sscanf: Accept %X as well as %x as a format specifier. From Sébastien Lorquet 2014-12-12 07:46:46 -06:00
Gregory Nutt
1c569b85f8 Cosmetic change to force compliance with coding standard 2014-12-12 07:14:16 -06:00
Gregory Nutt
554f56b99d strncpy: Commit d0c76ccacf0dc8988f9617ad82bf4349f456bb08 will trash a lot of memory if n == 0. From Hiro 2014-12-11 06:21:23 -06:00
Gregory Nutt
69cb752813 Add CRC8 support. From Ken Pettit 2014-12-09 13:27:22 -06:00
Gregory Nutt
297a255fd8 avsprintf(): Fix a bug in usage of va_list on x86. On x86, va_list is a pointer to a single copy on the stack. avsprintf() calls lib_vsprintf() twice and so traverses the va_list twice using va_start. va_start modifies that single copy on the stack so that the second call to lib_vsprintf() fails. This appears to be an issue with x86 only so far 2014-12-08 10:40:06 -06:00
Gregory Nutt
91e22aeedd Traveler: Change the way that the world path is managed. 2014-12-08 09:28:53 -06:00
Gregory Nutt
7ad7163bd3 Updated comments 2014-11-29 17:39:40 -06:00
Gregory Nutt
4657f5c870 Update some Documentation and comments associated with the last ioctl change 2014-11-29 13:25:29 -06:00
Gregory Nutt
1a22ede31c Add some comments 2014-11-29 10:59:41 -06:00
Gregory Nutt
e31d5125ae Add support for a variadic ioctl() function. The ioctl() interface is a non-standard, Unix interface. NuttX has always used the older, three-parameter version. Most contemporary systems now, however, use a variadic form of the ioctl() function. Added an option to insert a shim layer to adapt the three-parameter ioctl() to use the variadic interface form. Internally, the ioctl handling is the same three-parameter logic. The only real complexity to the shim is in how the system calls must be handled. 2014-11-29 10:53:22 -06:00
Gregory Nutt
d1cdf9b497 Another fix misthink in big cppcheck changed 2014-11-25 17:22:52 -06:00
Gregory Nutt
1aa528a572 More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs. 2014-11-25 14:10:35 -06:00
Gregory Nutt
9ac09db800 More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs. 2014-11-25 13:46:14 -06:00
Gregory Nutt
838f2053e4 Fix some compile errors introduce in last commits 2014-11-13 07:44:45 -06:00
Gregory Nutt
2a0549865f execl(): Don't allocate or free and argv[] list if there are not arguments 2014-11-13 06:35:20 -06:00
Gregory Nutt
597999400e execl() no longer depends on CONFIG_MAX_TASK_ARGS 2014-11-12 18:44:11 -06:00
Gregory Nutt
639641dc04 The definition of strncpy() is that empty space should be zero-filled, the patch adds the zero filling (I didn’t know this, see e.g. the POSIX spec here: http://pubs.opengroup.org/onlinepubs/7908799/xsh/strncpy.html). From Lorenz Meier. 2014-11-12 07:36:15 -06:00
Gregory Nutt
c23b7ec93d From Lorenz Meier: The implementation of access() as vararg macro has the issue that any function call with the same name (even in a C++ class) will match with it and result in a compile error. I have replaced it with a small function, and tried to have decent documentation as well. This resolves the compile issue, and shouldn’t have negative side effects for users of the function. 2014-11-11 11:52:24 -06:00
Gregory Nutt
fe7bdb284e EFM32: Fix issues associated with SPI bi order. From Pierre 2014-11-09 08:21:38 -06:00
Gregory Nutt
ee22104762 Can't use formal parameter name 'template' in stdlib.h. Causes C++ compilation errors. Noted by Lorenz Meier 2014-11-06 07:00:23 -06:00
Gregory Nutt
48888ad65b Add tmpnam() and tempnam() 2014-11-05 10:44:16 -06:00
Gregory Nutt
787cd466d2 Add tmpnam() and tempnam() 2014-11-05 10:43:17 -06:00
Gregory Nutt
d13731711f Add mktemp() and mkstemp() 2014-11-05 09:39:18 -06:00
Gregory Nutt
e6c2a36bbe Add optional timestamp to syslog output. From pn_bouteville@yahoo.fr 2014-11-01 09:17:34 -06:00
Gregory Nutt
87ee3f2fc7 SAM3/4: Fix error serial TERMIOS ioctl handling 2014-10-30 12:23:15 -06:00
Gregory Nutt
6bbfb2b7ca Add isatty() function. From Alan Carvalho de Assis 2014-10-27 12:29:15 -06:00
Gregory Nutt
179fabb019 Add description of work queues to the porting guide. Update comments 2014-10-14 10:21:18 -06:00
Gregory Nutt
740c5c4b7a Fix error in protected build, user-mode work queue 2014-10-12 09:40:26 -06:00
Gregory Nutt
0c1c37bae2 Fix some compiler errors in user-work queue configuration that crept in the last bunch of commits 2014-10-11 16:27:24 -06:00
Gregory Nutt
b78fe7c270 Rename CONFIG_SCHED_USRWORK to CONFIG_LIB_USRWORK 2014-10-11 15:59:40 -06:00
Gregory Nutt
9292e3d9de Decouple the user-space work queue from the kernel space work queues 2014-10-11 15:50:22 -06:00
Gregory Nutt
bb1d91bd83 Make building of low-priority work queue independent of also building the high-priority work queue 2014-10-11 14:43:24 -06:00
Gregory Nutt
743abd7155 Add Kconfig support to select the number of low-priority worker thread 2014-10-10 16:38:19 -06:00
Gregory Nutt
4a4b3ac537 Add support for multiple low-priority worker threads 2014-10-10 16:24:50 -06:00
Gregory Nutt
cf59a195ba User-mode work queue logic should not disable interrupts 2014-10-10 14:52:04 -06:00
Gregory Nutt
16a3e83258 Add support for delays of different durations in work queue processing 2014-10-10 13:21:37 -06:00
Gregory Nutt
75e7a4dbfc Minor changes to work queue timing logic 2014-10-10 12:27:11 -06:00
Gregory Nutt
b2cebaa9d4 Modularize starting of worker threads to better isolate individual initialization characteristics 2014-10-10 09:38:28 -06:00
Gregory Nutt
1afc9773ac Decoupling work queue data structures. This is part of the preparation to support multiple low-priority worker threads 2014-10-10 08:35:58 -06:00
Gregory Nutt
6220256a09 Repartition work queue code. Move kernel-specific parts from libc/wqueue to sched/wqueue 2014-10-10 06:22:51 -06:00
Gregory Nutt
c2933b92e3 libc/aio/aio.h is empty, but add some protection anyway in case it is ever used in the future 2014-10-09 10:52:53 -06:00
Gregory Nutt
02444cfb2c Update comments and function headers 2014-10-09 07:38:38 -06:00
Gregory Nutt
5815201cc2 Move syslog back to libc/syslog from fs/syslog 2014-10-09 07:08:36 -06:00
Gregory Nutt
d2c8e13ed5 Backing out some logic: Remove syslog functions from syscalls 2014-10-09 06:58:23 -06:00
Gregory Nutt
bbc658930a Passing va_list in syscall does not work. Temporarily moved syslog and lowsyslog into kernel code and access via a system call. Need to revisit. Will probably need to move all of syslog back from fs/syslog to libc/syslog 2014-10-08 20:12:52 -06:00
Gregory Nutt
323084f32f Add syslog system calls 2014-10-08 19:37:10 -06:00
Gregory Nutt
ec57ab6391 Implement setlogmask(); move some syslog logic from libc/syslog to fs/syslog 2014-10-08 19:08:26 -06:00
Gregory Nutt
a8399d5c6b Move syslog logic from libc/misc and libc/stdio to libc/syslog 2014-10-08 17:16:41 -06:00
Gregory Nutt
176491ce75 Misc changes to get a clean build after all of the syslog changes. There are probably other things still broken 2014-10-08 16:23:48 -06:00
Gregory Nutt
f8ed7323c0 make standard syslog and vsyslog POSIX compliant (also modify non-standard syslog functions for compatibility). This will break a lot of things until ALL usage of syslog is updated to use the modified interfaces 2014-10-08 09:44:15 -06:00
Gregory Nutt
7f36c4e97b Update some Kconfig comments; Add a upper limit on the lower priority worker thread for priority inheritance 2014-10-07 17:11:26 -06:00
Gregory Nutt
d7843c8e24 Add support for priority inheritance on the low priority worker queue 2014-10-07 07:41:52 -06:00
Gregory Nutt
03b0dc12c7 Add AIO interfaces to libc.csv 2014-10-06 19:15:10 -06:00
Gregory Nutt
7cbe29e7db Fix compile problems with debug on 2014-10-06 12:28:37 -06:00
Gregory Nutt
39c26d4cd4 Fix a typo 2014-10-06 08:11:03 -06:00
Gregory Nutt
652d3ed29d Rename CONFIG_LIBC_AIO to CONFIG_FS_AIO since it is now an OS property 2014-10-05 15:44:43 -06:00
Gregory Nutt
f73a18ae39 Move all file operations from libc/aio to fs/aio. These will need to be kernel routines in order to handler issues with using file descriptors on worker thread 2014-10-05 15:33:31 -06:00
Gregory Nutt
f34127823a First round of changes fo AIO integration 2014-10-05 13:57:55 -06:00
Gregory Nutt
33b1f59ee8 Most paranoid changes to assure the state of things 2014-10-05 12:34:22 -06:00
Gregory Nutt
9a1b011178 Initiail implementation of lio_listio() and rethinking of signal logic 2014-10-05 11:43:42 -06:00
Gregory Nutt
eeaae40d0c Initial implementation of aio_fsync() 2014-10-05 08:53:13 -06:00
Gregory Nutt
a4861c7cb7 Iniial implementatin of aio_cancel() 2014-10-05 08:22:39 -06:00
Gregory Nutt
8d03c3f906 Initial implementation of aio_suspend() 2014-10-05 07:11:11 -06:00
Gregory Nutt
c7c62d5b2c Move AIO signal logic to a common location in aio_signal.c. Also fix several typos 2014-10-05 06:55:17 -06:00
Gregory Nutt
c274acc48f Move AIO signal logic to a common location in aio_signal.c. Also fix several typos 2014-10-05 06:53:56 -06:00
Gregory Nutt
0c241ace72 Add initial implementatin of aio_return() and aio_error() 2014-10-04 18:17:54 -06:00
Gregory Nutt
3bef2b7a43 Update TODO list and comments in aio files 2014-10-04 17:47:54 -06:00
Gregory Nutt
e8cef249cc Initial implementation of aio_write() 2014-10-04 17:30:24 -06:00
Gregory Nutt
fa28c51c75 Fleshes out aio_read implementation 2014-10-04 14:44:57 -06:00
Gregory Nutt
9e8a4dd229 Add skeleton file for eventual implementation of aio_read() 2014-10-04 14:22:00 -06:00
Gregory Nutt
1f897daa27 Add empty skeleton file where lio_listio() will eventually be implemented 2014-10-04 11:23:17 -06:00
Gregory Nutt
11c2619838 Add a build structue to support asynchronous I/O 2014-10-04 10:31:11 -06:00
Gregory Nutt
92cc7a96e6 Change to lib_dtoa() to fix prescision error from trailing zeroes 2014-09-26 05:49:50 -06:00
Gregory Nutt
5e285b8bc4 More NxWM build fixes 2014-09-20 16:47:00 -06:00
Gregory Nutt
925fc9ad81 First round of changes to get the ELF configuration building again 2014-09-16 15:37:05 -06:00
Gregory Nutt
abb60c9c2f Fix some backward conditional compilation 2014-09-15 16:23:31 -06:00
Gregory Nutt
398f7b594f execv() is a basic system interface. It should not be in libc/ but rather in sched/task. Its symboltable helper logic also belongs in the kernel but belings in binfmt/ with the other symbol table logic 2014-09-15 10:15:47 -06:00
Gregory Nutt
da7a440b35 execv() is a basic system interface. It should not be in libc/ but rather in sched/task. Its symboltable helper logic also belongs in the kernel but belings in binfmt/ with the other symbol table logic 2014-09-15 10:15:19 -06:00
Gregory Nutt
b255883b0a Rename everything associated with the dynamic process stack to ustack to make room in the name space for a kstack 2014-09-14 09:10:09 -06:00
Gregory Nutt
e12213592b Don't build task_create() or task_spawn() interfaces if there is an addres environment 2014-09-14 08:22:21 -06:00
Gregory Nutt
1f3db86106 Fix one more dependency upon having a symbol table 2014-09-12 13:03:10 -06:00
Gregory Nutt
8f30804e05 Having a symbol table is an option. There are no symbol tables with CONFIG_BUILD_KERNEL, for example. 2014-09-12 12:48:22 -06:00
Gregory Nutt
6295203a82 Cosmetic changes 2014-09-12 12:44:03 -06:00
Gregory Nutt
ba7d5acf94 Fix a couple more places where the wrong allocator is being used 2014-09-11 15:56:04 -06:00
Gregory Nutt
fc35e35165 When a privileged thread exits, we have to use the kernel alloctor to free memory; when an unprivileged thread exits, we don't have to do anything... heap memory will be cleaned up when the address environment is torn down 2014-09-11 09:00:10 -06:00
Gregory Nutt
44499ed46c Rename some functions and reshuffling some paramters 2014-09-11 08:37:06 -06:00
Gregory Nutt
28ad8e7cfd Change commenting style to agree with coding standard 2014-09-08 08:02:37 -06:00
Gregory Nutt
9d03879c8b Correct atan2 implementations from Denis Arnst 2014-09-08 07:55:09 -06:00
Gregory Nutt
e953fb11cd A const storage class to to phthread parameters. From Freddie Chopin 2014-09-08 06:21:48 -06:00
Gregory Nutt
1822b86373 Fix some conditional compilation in kernel build mode. And, while we are touching this logic, make g_default_pthread_attr const. 2014-09-07 10:46:58 -06:00
Gregory Nutt
47d55c28dc Mostly cosmetic changes 2014-09-04 10:28:38 -06:00
Gregory Nutt
23147c40a5 Remove final traces of the 8015 from the NuttX source tree 2014-09-01 13:21:15 -06:00
Gregory Nutt
54fa3b0b59 Rename kfree to kmm_free for consistency with other naming conventions 2014-08-31 17:04:02 -06:00
Gregory Nutt
9aca0c1c84 Rename kumalloc to kumm_malloc and kuzalloc to kumm_zalloc for consistency with other naming 2014-08-31 16:24:24 -06:00
Gregory Nutt
9ad7dae4c1 Rename kufree to kumm_free for consistency with other naming 2014-08-31 16:15:11 -06:00
Gregory Nutt
9cd1ddada4 Rename kmemalign to kmm_memalign and krealloc to kmm_realooc for consistency with other naming 2014-08-31 15:27:37 -06:00
Gregory Nutt
e3ff0689bb Rename CONFIG_NUTTX_KERNEL to CONFIG_BUILD_PROTECTED; Partially integrate new CONFIG_BUILD_KERNEL 2014-08-29 14:47:22 -06:00
Gregory Nutt
a325cb9f0d sscanf(): NuttX libc tried to guess how many characters to parse, extracted them into a buffer, then ran strtol() on that buffer. That guess is often wrong. A better approach would be to call strtol() directly on the input data, using the endptr return value to determine how many characters to skip after parsing. From Kosma Moczek 2014-08-18 07:33:17 -06:00
Gregory Nutt
8428a58bdc Add support for an ioctl that can be used to notify an application when there is a change in the network status signalled by a PHY interrupt 2014-08-16 12:56:02 -06:00
Gregory Nutt
f60ff46646 Remove libc/time/tzfile.h; content moved inside of libc/time/lib_localtime.c 2014-08-15 15:59:57 -06:00
Gregory Nutt
96bc77fb93 libc/time/lib_localtime.c is much closer to NuttX coding style. libc/time/private.h removed; incorporated into lib_localtime.c 2014-08-15 15:38:37 -06:00
Gregory Nutt
318270d849 Fix warning caused by change in mktime prototype 2014-08-12 13:50:08 -06:00
Gregory Nutt
7025465109 Adds support for localtime. From Max Neklyudov 2014-08-12 06:18:22 -06:00
Gregory Nutt
e4ab3198e1 Slightly improved nanosecond calculation 2014-08-10 13:11:52 -06:00
Gregory Nutt
320707fdfa SAMA5: Fix bugs in timer/counter interrupts and one-shot timer 2014-08-10 10:47:38 -06:00
Gregory Nutt
6e0acd7cd4 WM8904: Don't use MSEC2TICK in timeout calculation 2014-08-08 11:02:45 -06:00
Gregory Nutt
caba61999a Remove CONFIG_DISABLE_CLOCK 2014-08-07 12:35:24 -06:00
Gregory Nutt
e214382264 Audio: Change how the end of the audio stream is detected by the leaf audio component. This used by be done by looking for the first partial buffer. That does not work with the in-place sub-sampling performed by the PCM decoder: That always reduces the size of the buffer so that all buffers only partially filled by the time they get to the leaf. Now, a flag is set in the audio buffer flags set to indicate the final buffer in the stream. 2014-07-31 16:36:09 -06:00
Gregory Nutt
b7227f0088 Cosmetic changes, mostly to comments 2014-07-29 12:49:40 -06:00
Gregory Nutt
3384906cdd Lpc17xx Ethernet: Comment out an assertion that is reported to first inappropriately. From Max 2014-07-11 12:25:11 -06:00
Gregory Nutt
0da9aaeb09 Fix some recurring typos: postion->position, *atino->*ation 2014-07-08 13:12:36 -06:00
Gregory Nutt
befcb1c961 Fix some cloned errors in SAM GPIO interrupt setup 2014-07-07 15:54:37 -06:00
Gregory Nutt
60246e613b NET: emoved all includes of uip.h; added includes of ip.h wherever needed. Tried to fix problems of the now missing sneak inclusions because uip.h was removed. There are probably a few of these that were missed. 2014-07-04 19:13:08 -06:00
Gregory Nutt
fa29170aa7 Make variable definitions 'static const' when possible to save RAM usage. From Kosma Moczek 2014-06-30 07:39:51 -06:00
Gregory Nutt
5ac94ff988 Fixes for networking and tiny webserver from Max 2014-06-29 09:30:09 -06:00
Gregory Nutt
f0c90a39ca Change double_t to double in rint. Add rintf and rintl while we are at it 2014-06-28 10:14:29 -06:00
Gregory Nutt
33121dd0d0 Various changes associated with symbol tables. Most from Pelle Windestam 2014-06-27 08:14:07 -06:00
Gregory Nutt
2b5f8dbba5 Cosmetic cleanup 2014-06-18 08:24:53 -06:00
Gregory Nutt
038f10ed55 Add seekable standard streams 2014-06-14 16:19:42 -06:00
Gregory Nutt
0a331754f7 Add support for seekable raw streams 2014-06-14 15:46:59 -06:00
Gregory Nutt
24e603f23b Add support for seekable memory streams 2014-06-14 15:35:18 -06:00
Gregory Nutt
59846a8fe9 snprintf(): If size is zero, then snprintf() should return the size of the required buffer without writing anyting. From Sami Pelkonen 2014-05-30 08:53:43 -06:00
Gregory Nutt
2abe0dd6dd Change all variadic macros to C99 style 2014-05-22 09:01:51 -06:00
Gregory Nutt
972c4cbab5 Nucleo F401RE: Remove PX4 cruft that can in with the port 2014-04-22 12:18:08 -06:00
Gregory Nutt
3a1324741a More trailing whilespace removal 2014-04-13 14:32:20 -06:00
Gregory Nutt
890beea0b6 Remove dangling white space at the end of the line 2014-04-13 13:26:55 -06:00
Gregory Nutt
f7e5953804 Cosmetic changes for coding style; removal of dangling spaces at the end of lines 2014-04-13 13:18:06 -06:00
Gregory Nutt
494387b33b Make sure that there is one space after for 2014-04-12 13:28:22 -06:00
Gregory Nutt
303cc1902b Make sure that there is one space between if and condition 2014-04-12 12:53:19 -06:00
Gregory Nutt
2fcc57edb0 mv ramlog.h and syslog.h to new include/nuttx/syslog 2014-04-10 09:29:30 -06:00
Gregory Nutt
ed294643bd sscanf: Use stroul() vs strol() for %u format. From kfrolov 2014-04-02 09:15:40 -06:00
Gregory Nutt
68025784b0 Fix ftell() bug: It was not accounting for data buffered in memory. From Macs N 2014-03-31 09:47:28 -06:00
Gregory Nutt
cd135fe3a8 Complete fragmentary support for ferror(). From Macs N 2014-03-31 09:39:10 -06:00
Gregory Nutt
6bb8cc02df sscanf(): Was returning the wrong number of conversions in many cases; Also, needs to return EOF if there were no conversions 2014-03-30 14:24:38 -06:00
Gregory Nutt
e6bd002d68 Use get_errno() instead of errno because I may do something different if used inside the OS 2014-03-30 11:33:47 -06:00
Gregory Nutt
a0b330bd92 strncpy would fail if n==0 2014-03-28 15:17:43 -06:00
Gregory Nutt
29a4ca8f08 configs/rgmp/arm/default: Configuration converted to use the kconfig-frontends tools 2014-03-06 11:19:05 -06:00
Gregory Nutt
a84a421248 Ooops... I left out a semicolon in the last sscanf() commit 2014-02-18 15:38:44 -06:00
Gregory Nutt
927ec9c792 sscanf() bug fixes from David Sidrane 2014-02-18 14:14:07 -06:00
Gregory Nutt
91b002a043 Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced 2014-02-10 18:08:49 -06:00
Gregory Nutt
e10ab85d1d More changes to restore the native Windows build 2014-02-07 10:14:11 -06:00
Gregory Nutt
a5b8755bea Add a patch to work around the bug in the ZDS-II 5.0.1 toolchain 2014-01-24 11:58:30 -06:00
Gregory Nutt
297896fe0e getopt(): Could leave optind in undefined state if argc == 1 2014-01-20 13:13:36 -06:00
Gregory Nutt
e340fdb88c Minor documentation updates and other cosmetic changes 2014-01-20 13:10:30 -06:00
Gregory Nutt
be14ee1f95 Move strol(), stroul(), and friends from libc/string to libc/stdlib where they belong 2014-01-16 08:03:26 -06:00
Gregory Nutt
803cdfdaf1 Changes to get PX4 config to build. Also some warning removal 2014-01-14 13:30:22 -06:00
Gregory Nutt
46a94ce6c5 Cosmetic clean-up in preparation for TCP write buffering change 2014-01-13 08:21:18 -06:00
Gregory Nutt
25fd6d1904 NSH: Separate command line parsing from command execution. Add support for multiple, semicolone separated commands on each line 2014-01-10 15:23:26 -06:00
Gregory Nutt
752068073a Forgot to add stpcpy.c in last commit 2014-01-10 07:09:59 -06:00
Gregory Nutt
4e2c140124 Add stpcpy() 2014-01-09 14:08:48 -06:00
Gregory Nutt
a0808e7b6d Minor fixes to lib_fgets() typing 2014-01-08 11:24:28 -06:00
Gregory Nutt
0bdee120a1 Add lib_libfgets() to better support the small differences between gets(), gets_s(), and fgets() 2014-01-08 10:47:34 -06:00
Gregory Nutt
e3b12cbaa9 Add x qualifier to fopen to support exlusive open 2014-01-07 17:18:38 -06:00
Gregory Nutt
c5f9b8768e Add type rsize_t and function gets_s() 2014-01-07 16:27:45 -06:00
Gregory Nutt
53ce920eae Add FAR to a couple of functions. The Z16F cares about such things 2014-01-02 12:36:20 -06:00
Gregory Nutt
a1f8bd0f58 The user-mode work queue was not being started 2013-12-31 12:48:11 -06:00
Gregory Nutt
90b269568b Fix some minor kernel mose NxWM build issues 2013-12-30 14:09:58 -06:00
Gregory Nutt
a457105a0b Move the NX components out of libc and into its own library, libnx 2013-12-28 08:40:03 -06:00
Gregory Nutt
090a18f863 Decoupling NX user interfaces to support NX kernel build (phase 5) 2013-12-27 16:30:18 -06:00
Gregory Nutt
ae29bcb5ab Decoupling NX user interfaces to support NX kernel build (phase 4) 2013-12-27 15:51:26 -06:00
Gregory Nutt
1e690c5a49 Decoupling NX user interfaces to support NX kernel build (phase 3) 2013-12-27 14:49:40 -06:00
Gregory Nutt
425d0cccaf Decoupling NX user interfaces to support NX kernel build (phase 2) 2013-12-27 14:30:13 -06:00
Gregory Nutt
2507017695 Decoupling NX user interfaces to support NX kernel build (phase 1) 2013-12-27 13:18:20 -06:00
Gregory Nutt
c4380b5a8f ARMv7-A: If the page table does not like in same address range as .text and primary RAM, then we will need to set up an additional mapping for the page table at boot time. 2013-12-16 08:26:07 -06:00
Gregory Nutt
46b77e2544 Support /proc/uptime 2013-12-14 10:34:08 -06:00
Gregory Nutt
7aff059fd0 Move sleep() and usleep() from sched/ to libc/unistd/. These functions now are simple wrappers for nanosleep(). Remove sleep() and usleep() from system calls; add nanosleep() to system calls 2013-12-13 07:57:13 -06:00
Gregory Nutt
2e8b0d97e2 strftime should also return zero if the resulting string is truncated and/or not properly NUL terminated 2013-12-12 18:03:04 -06:00
Gregory Nutt
2fac3de49e strftime(): Need null-termination on generated string. From Max Holtzberg 2013-12-12 17:41:07 -06:00
Gregory Nutt
33a3bb0e37 Pattern matching logic extended by Ken Pettit 2013-12-12 08:40:54 -06:00
Gregory Nutt
bdf1ad69d6 libc logic should not directly assign errno, but should use set_errno() macro. This is because in the kernel build, errno is a system call 2013-12-11 14:54:22 -06:00
Gregory Nutt
692b087d07 LM: Don't initialize .data if running in SRAM. Global missing intialize type. SAMA5 NAND: Fix for read nand in smaller chunks 2013-12-05 10:37:55 -06:00
Gregory Nutt
78936f7260 Changes for ZDS-II ez80 build 2013-11-28 17:47:03 -06:00
Gregory Nutt
05d50e6379 A few changes needed for compilation with ZDS-II 2013-11-28 15:57:41 -06:00
Gregory Nutt
390378bfcf Remove unused apb_prepare function 2013-11-11 08:14:56 -06:00
Gregory Nutt
4ad7f73f54 libc/audio/lib_buffer.c must must correct allocation for execution domain 2013-11-10 12:22:01 -06:00
Gregory Nutt
725ef58a19 SAMA5 SSC: Add support for loopback mode. Plus unrelated Make.defs file from the last checkin 2013-11-10 11:46:45 -06:00
Gregory Nutt
8b73558ad7 Moved audio/buffer.c to libc/audio/lib_buffer.c so that it can be shared betweent he OS and applications in a kernel build 2013-11-10 11:20:06 -06:00
Gregory Nutt
545cef3223 scanf() fixes from kfrolov: 1) sscanf() function hangs in the following example: sscanf(2, %u,%u,%u,%u, ...), 2) sscanf() returns incorrect number of parsed numbers if some arguments can't be parsed: sscanf(=2, %u,%u,%u,%u,...)==1 instead of 0, and 3) using of char* instead of const char* in vsscanf function leads to warnings from GCC. 2013-10-21 10:41:15 -06:00
Gregory Nutt
566857bcbd Clean-up routing table design. 2013-10-05 12:05:51 -06:00
Gregory Nutt
02b8a8bf19 Clean up queue files so that they look more like others 2013-10-05 12:03:31 -06:00
Gregory Nutt
0ff3852b2f Add a user interface to manage the routing table 2013-10-02 10:51:48 -06:00
Gregory Nutt
30ffd2364c Remove some warnings 2013-10-01 12:10:09 -06:00
Gregory Nutt
dc4c6bcb57 When creating kernel dependencies, need to define __KERNEL__ 2013-09-29 15:03:10 -06:00
Gregory Nutt
c038f4efe0 Dependency generation fix for directories that keep object files in a sub-directory 2013-09-29 11:46:10 -06:00
Gregory Nutt
417f67c132 Clean up some naming: fd vs. fildes vs. filedes and filep vs filp 2013-09-28 16:50:07 -06:00
Gregory Nutt
41f0c86cad Optimized sendfile() from Max Holtzberg 2013-09-28 14:47:49 -06:00
Gregory Nutt
bc46b447dc Fix all occurrences of "the the" in documentation and comments 2013-08-27 09:40:19 -06:00
Gregory Nutt
352c313fa7 Fix typo/compilation error with USB device DMA memory allocation is enabled 2013-07-12 07:09:24 -06:00
Gregory Nutt
4d8a4b69a4 Add CRC16 support 2013-07-07 17:35:35 -06:00
Gregory Nutt
961837eaaf Fix an assertion 2013-06-02 16:49:41 -06:00
Gregory Nutt
44450511d4 Add dprintf() and vdprintf() 2013-06-02 15:49:52 -06:00