Commit graph

176 commits

Author SHA1 Message Date
Jean-Philippe Bernardy
a83214d16f couple of fixes for 16 bits archs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6073 a1c6a512-1295-4272-9138-f99709370657
2005-02-27 20:44:26 +00:00
Jean-Philippe Bernardy
fc19445ba0 more long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6065 a1c6a512-1295-4272-9138-f99709370657
2005-02-25 18:50:16 +00:00
Daniel Stenberg
22b7701fe7 Build cleanup and general fixes. fprintf() is now fdprintf(), the separation
between uisimulator files and firmware/apps files are better done.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
2005-02-22 12:19:12 +00:00
Daniel Stenberg
cdde25b597 Unified build system to use SOURCES for sim builds too, a single Makefile-look
made by configure and various related adjustments. This has not yet been tested
on cygwin.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6001 a1c6a512-1295-4272-9138-f99709370657
2005-02-18 13:47:17 +00:00
Jean-Philippe Bernardy
effb196053 random longness fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5950 a1c6a512-1295-4272-9138-f99709370657
2005-02-15 13:28:39 +00:00
Jean-Philippe Bernardy
a161ef490f long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5946 a1c6a512-1295-4272-9138-f99709370657
2005-02-15 11:13:00 +00:00
Jörg Hohensohn
dc7534bdb2 preparations for hotswapping MMC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5701 a1c6a512-1295-4272-9138-f99709370657
2005-01-28 21:32:16 +00:00
Björn Stenberg
6660f8e910 Added ID3 searching
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5683 a1c6a512-1295-4272-9138-f99709370657
2005-01-27 22:21:08 +00:00
Jens Arnold
81d4b8c492 TABs removed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5645 a1c6a512-1295-4272-9138-f99709370657
2005-01-24 00:56:39 +00:00
Jean-Philippe Bernardy
cea551dd9c int -> long where needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5643 a1c6a512-1295-4272-9138-f99709370657
2005-01-23 23:29:35 +00:00
Jean-Philippe Bernardy
fc0372b209 Support for %l* plus __attribute__ printf support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5641 a1c6a512-1295-4272-9138-f99709370657
2005-01-23 23:08:07 +00:00
Jens Arnold
756e7404d8 Forgot to commit removal of string.c when reviving memcpy.c and memset.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5633 a1c6a512-1295-4272-9138-f99709370657
2005-01-22 22:06:29 +00:00
Jens Arnold
78826de045 Assembler optimized strlen() for SH1, both smaller & faster. Moved strlen() into IRAM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5629 a1c6a512-1295-4272-9138-f99709370657
2005-01-22 13:18:33 +00:00
Jens Arnold
0310f16005 Revived C implementations of memcpy() and memset() for platforms without asm optimized versions (gmini), replacing the intermediate strings.c. Moved the asm optimized versions 'out of the way' for the implicit 'make' rules by renaming them to *_a.S (for assembler/alternative).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5628 a1c6a512-1295-4272-9138-f99709370657
2005-01-21 22:43:02 +00:00
Daniel Stenberg
39fb8f0705 Jean-Philippe Bernardy: C versions of memset() and memcpy() for archs with
no asm optimized versions.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5550 a1c6a512-1295-4272-9138-f99709370657
2005-01-10 21:31:13 +00:00
Jörg Hohensohn
dcdffe828c using a pointer instead of array dereferencing saves ~250 bytes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5529 a1c6a512-1295-4272-9138-f99709370657
2005-01-03 20:23:42 +00:00
Jörg Hohensohn
6dda40124d volume names look better in sharp brackets, code slightly more compact
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5523 a1c6a512-1295-4272-9138-f99709370657
2005-01-01 14:27:28 +00:00
Jörg Hohensohn
1a5962f2be Shared mounting code, also more general. It will mount multiple HD partitions, too, once HAVE_MULTIVOLUME is enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5518 a1c6a512-1295-4272-9138-f99709370657
2004-12-29 22:10:24 +00:00
Jörg Hohensohn
da84857631 prepared to mount multiple partitions into one logical file system (most useful for Ondio, internal memory + external MMC)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
2004-12-28 22:16:07 +00:00
Jens Arnold
f78524bf93 Bug fix: Do only flush the sector buffer after writing head bytes if it really needs to be. The old code did flush always, causing the huge slowdown of fprintf() and other places writing byte-wise
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5413 a1c6a512-1295-4272-9138-f99709370657
2004-11-17 02:34:17 +00:00
Linus Nielsen Feltzing
04c5ecb4ee Wrong typing caused a very skewed random number distribution
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5385 a1c6a512-1295-4272-9138-f99709370657
2004-11-06 23:33:07 +00:00
Linus Nielsen Feltzing
ba809183a8 Ported to Coldfire
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5347 a1c6a512-1295-4272-9138-f99709370657
2004-10-26 05:40:24 +00:00
Jörg Hohensohn
85c91a3b8e void* can't be offset, gcc should not allows this
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5147 a1c6a512-1295-4272-9138-f99709370657
2004-10-01 19:45:51 +00:00
Jens Arnold
8537e2d12a Bug fix: open() now handles O_TRUNC correctly (this was the real cause for the .playlist_control corruption)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5048 a1c6a512-1295-4272-9138-f99709370657
2004-09-06 23:33:21 +00:00
Linus Nielsen Feltzing
e0e0140f4e Bug fix: renaming a directory could cause a name clash. New feature: rename() can now move files/directories as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5008 a1c6a512-1295-4272-9138-f99709370657
2004-08-22 11:28:24 +00:00
Jens Arnold
0ceaa5e365 Const policed pointer arguments to functions, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
2004-08-17 01:45:48 +00:00
Jens Arnold
3a43231392 Fixed a warning when (experimentally) compiling with -Os
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4966 a1c6a512-1295-4272-9138-f99709370657
2004-07-27 19:51:05 +00:00
Jens Arnold
0258287e57 Made the char property lookup table constant
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4905 a1c6a512-1295-4272-9138-f99709370657
2004-07-20 22:32:17 +00:00
Jens Arnold
f68e13c5b4 The pathname argument for open() is declared const, so copy it has to be copied
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4894 a1c6a512-1295-4272-9138-f99709370657
2004-07-19 21:08:44 +00:00
Jörg Hohensohn
74eb64257a infrastructure for sorting by date+time, now we "only" need to decide on the UI
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4778 a1c6a512-1295-4272-9138-f99709370657
2004-06-20 16:34:29 +00:00
Linus Nielsen Feltzing
7662f06e53 valid_time() now handles tm_wday correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4555 a1c6a512-1295-4272-9138-f99709370657
2004-04-25 23:47:50 +00:00
Jens Arnold
4f7956c206 (v)snprintf() wrote past buffer end if string length was equal to buffer size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4549 a1c6a512-1295-4272-9138-f99709370657
2004-04-22 21:19:33 +00:00
Linus Nielsen Feltzing
7ddf0d673d Reworked the time get/set functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4522 a1c6a512-1295-4272-9138-f99709370657
2004-04-20 10:23:57 +00:00
Linus Nielsen Feltzing
18d5d30c1c Better POSIX compatibility for mkdir(), rmdir() and opendir()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4521 a1c6a512-1295-4272-9138-f99709370657
2004-04-20 10:15:39 +00:00
Linus Nielsen Feltzing
bc9397d1fa New function: rmdir(). Also some changes in the fat code, to track the parent directory in opendir(), to be able to delete directories
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4509 a1c6a512-1295-4272-9138-f99709370657
2004-04-16 08:58:29 +00:00
Linus Nielsen Feltzing
b8beff39e9 No need to call fat_truncate() to delete the file, fat_remove() frees all clusters anyway
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4508 a1c6a512-1295-4272-9138-f99709370657
2004-04-16 08:54:13 +00:00
Jörg Hohensohn
b61cf76aba patch #917153: faster memset()/memcpy()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4406 a1c6a512-1295-4272-9138-f99709370657
2004-03-18 22:06:36 +00:00
Linus Nielsen Feltzing
5c8e82e097 You can't open() a directory as a file (at least not for writing)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4359 a1c6a512-1295-4272-9138-f99709370657
2004-03-10 19:47:59 +00:00
Linus Nielsen Feltzing
05f1fc4654 Empty file/dir names are now rejected by open() and mkdir()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4303 a1c6a512-1295-4272-9138-f99709370657
2004-02-11 14:37:16 +00:00
Linus Nielsen Feltzing
ef7293f0bc New feature: NOw you can store the recorded files in either /recordings (the directory will be created automatically) or in the current directory.
New feature: A "Create directory" menu option (untested in the simulator).
Bug fix: The ON+Play menu could do nasty things if you pressed ON+Play in an empty dir.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4268 a1c6a512-1295-4272-9138-f99709370657
2004-01-21 14:58:40 +00:00
Linus Nielsen Feltzing
54353e04b1 Second bug in mkdir() :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4241 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 15:56:19 +00:00
Linus Nielsen Feltzing
ce1c93d628 First mkdir() bug killed :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4239 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 14:34:54 +00:00
Linus Nielsen Feltzing
60b1c4bbe1 Implemented the mkdir() function in the FAT32 driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4238 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 14:30:59 +00:00
Björn Stenberg
96147edb7d Moved memset() out of .iram
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4170 a1c6a512-1295-4272-9138-f99709370657
2003-12-21 12:22:50 +00:00
Daniel Stenberg
ae960a9ece my take at fixing the simulator warnings by adding mode_t, size_t, ssize_t
and off_t


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4116 a1c6a512-1295-4272-9138-f99709370657
2003-12-08 21:58:38 +00:00
Hardeep Sidhu
9e4262081b Added dynamic playlists. ON+PLAY->Playlist on a track, directory, or playlist from file browser to see available options.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3796 a1c6a512-1295-4272-9138-f99709370657
2003-07-01 21:05:43 +00:00
Björn Stenberg
a4baacd3ec Renamed flush() to fsync() to be more in line with POSIX/unix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3766 a1c6a512-1295-4272-9138-f99709370657
2003-06-29 13:17:19 +00:00
Linus Nielsen Feltzing
c6db7870ef Slightly better handling of disk-full situations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3756 a1c6a512-1295-4272-9138-f99709370657
2003-06-19 12:08:22 +00:00
Linus Nielsen Feltzing
d9a2ef49d6 Fixed bad %x handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3695 a1c6a512-1295-4272-9138-f99709370657
2003-05-24 00:19:27 +00:00
Daniel Stenberg
2723531ff3 remove the ifdef for simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3616 a1c6a512-1295-4272-9138-f99709370657
2003-04-25 13:35:31 +00:00