OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [io/] [fileio/] [v2_0/] [ChangeLog] - Blame information for rev 308

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
2003-02-24  Jonathan Larmour  
2
 
3
        * cdl/fileio.cdl: Add doc link.
4
 
5
2003-02-20  Bart Veer  
6
 
7
        * cdl/fileio.cdl: identify test binaries, not test sources
8
 
9
2003-01-30  Andrew Lunn  
10
 
11
        * cdl/fileio.cdl: Added interface CYGINT_IO_FILEIO_FS which any
12
        FS which FILEIO can use should implement.
13
 
14
2003-01-23  Gary Thomas  
15
 
16
        * src/misc.cxx (cyg_mtab_lookup): Return an error if the current
17
        directory is not known - happens if no file systems are mounted.
18
 
19
2002-11-10  Nick Garnett  
20
 
21
        * src/fio.h: Added macros to deal with signal handling. These will
22
        call into the POSIX package if it is present, but are null if it
23
        is not.
24
 
25
        * src/select.cxx: Renamed original select() to cyg_pselect() and
26
        added select() and pselect() routine from POSIX-200X to call
27
        it. Reorganized code a little and added calls to macros to deal
28
        with signal delivery and detection.
29
 
30
        * cdl/fileio.cdl:
31
        * tests/pselect.c: New test added to verify the signal masking and
32
        delivery behaviour of pselect().
33
 
34
        * tests/select.c: Fixed up some printfs to make it a little tidier.
35
 
36
2002-11-03  Gary Thomas  
37
 
38
        * src/io.cxx:
39
        * cdl/fileio.cdl: Add readv()/writev() support.
40
 
41
2002-08-08  Nick Garnett  
42
 
43
        * src/select.cxx (select): Changed mechanism for calculating
44
        select timeout to avoid possible race conditions between this code
45
        and the timer DSR.
46
 
47
2002-05-29  Jesper Skov  
48
 
49
        * tests/fileio1.c: Removed strcat definition. Rely on string.h to
50
        provide it.
51
 
52
2002-05-28  Jonathan Larmour  
53
 
54
        * include/limits.h (NAME_MAX): Increase default to 64.
55
        * cdl/fileio.cdl: Set CYGBLD_ISO_NAME_MAX_HEADER.
56
 
57
2002-04-11  Nick Garnett  
58
 
59
        * doc/fileio.sgml: Added a section on writing a new
60
        filesystem. This probably still needs more work, but it's better
61
        than nothing.
62
 
63
2002-04-05  Nick Garnett  
64
 
65
        * src/devfs.cxx: Changed test for EAGAIN in dev_fo_read() and
66
        dev_fo_write() to negate value first.
67
 
68
2002-03-07  Nick Garnett  
69
 
70
        * doc/fileio.sgml: Added this file to contain documentation on
71
        this package.
72
 
73
2002-02-04  Gary Thomas  
74
 
75
        * tests/socket.c (main):
76
        * tests/select.c (main): sin_len field must be set.
77
 
78
2002-01-29  Jonathan Larmour  
79
 
80
        * cdl/fileio.cdl: Actually, don't bother to build testfs.c at all.
81
 
82
2002-01-29  Jesper Skov  
83
 
84
        * cdl/fileio.cdl: Added CYGPKG_FILEIO_BUILD_TESTS option and made
85
        building of testfs dependant on it.
86
 
87
2002-01-25  Jonathan Larmour  
88
 
89
        * include/inode.h: New API defining a common generic inode type.
90
        * src/inocache.cxx: Implement the inode cache functions.
91
        * cdl/fileio.cdl: (Configurably) build it.
92
 
93
2002-01-23  David Woodhouse  
94
2002-01-23  Jonathan Larmour  
95
 
96
        * cdl/fileio.cdl: Remove select compilation and support to new
97
        CYGFUN_IO_FILEIO_SELECT option conditional on the kernel
98
        Ditto for DEVS and CYGPKG_IO_FILEIO_DEVFS_SUPPORT.
99
        Make CYGPKG_IO_FILEIO_SOCKET_SUPPORT also conditional on kernel.
100
        * src/fio.h: Define FILEIO_MUTEX_LOCK() and FILEIO_MUTEX_UNLOCK()
101
        so that code doesn't need to care whether the kernel is included or
102
        not.
103
        * src/fd.cxx: Conditionalize mutex usage throughout on CYGPKG_KERNEL,
104
        and FILEIO_MUTEX_LOCK()/UNLOCK().
105
        * src/file.cxx: Ditto.
106
        * src/misc.cxx: Ditto.
107
        (cyg_timestamp): Only use Cyg_Clock implementation if CYGPKG_KERNEL.
108
 
109
2002-01-23  Jonathan Larmour  
110
 
111
        * src/misc.cxx: Initialize fileio_initializer at prio CYG_INIT_IO_FS
112
        so it happens after the devices it depends on.
113
        * src/file.cxx (getcwd_lock): Ditto.
114
        * src/select.cxx (select_mutex): ditto.
115
        (selwait): ditto.
116
        * src/fd.cxx (fdlock): ditto
117
        (file_lock): ditto.
118
        * src/dir.cxx (readdir): Use FILEIO_RETURN_VALUE on exit.
119
        (readdir_r): Ditto.
120
        * src/devfs.cxx (dev_stat): Don't use handle for st_dev - it will
121
        probably be truncated.
122
 
123
2002-01-04  Wade Jensen 
124
2002-01-04  Jonathan Larmour  
125
 
126
        * src/socket.cxx (recvfrom): Set msg.msg_namelen correctly for
127
        NULL fromlen.
128
 
129
2001-12-28  Gary Thomas  
130
 
131
        * src/io.cxx (readwrite): Add missing check for return (errors).
132
 
133
2001-11-29  Jonathan Larmour  
134
 
135
        * src/file.cxx (chdir): Don't detach from current dir if unset.
136
 
137
2001-11-02  Felix Wong  
138
2001-11-02  Jonathan Larmour  
139
 
140
        * src/devfs.cxx (dev_fo_read): Support block devices.
141
        (dev_fo_write): Ditto.
142
 
143
2001-10-09  Jonathan Larmour  
144
 
145
        * src/fio.h: Make cancellation point dependand on
146
        CYGINT_ISO_PTHREAD_IMPL from  really.
147
        * tests/select.c: Ditto.
148
 
149
2001-10-09  Jesper Skov  
150
 
151
        * tests/select.c: Do NA check for posix threads.
152
 
153
        * src/fio.h: Make cancellation point dependant on
154
        CYGPKG_POSIX_PTHREAD as in the POSIX package.
155
 
156
2001-07-26  Jonathan Larmour  
157
 
158
        * cdl/fileio.cdl: Implements select().
159
        * src/select.cxx: Include  from isoinfra.
160
 
161
2001-07-19  Jonathan Larmour  
162
 
163
        * src/devfs.cxx (dev_fo_read): Treat non-blocking reads returning
164
        EAGAIN correctly
165
        (dev_fo_write): Ditto for writes.
166
 
167
2001-06-14  Jonathan Larmour  
168
 
169
        * src/fio.h (FILEIO_ENTRY): Don't use CYG_MACRO_START/END around
170
        tracing macros.
171
        Reported by Richard Panton.
172
 
173
2001-06-11  Jonathan Larmour  
174
 
175
        * src/socket.cxx (cyg_sock_unlock): Fix cyg_file_lock->cyg_file_unlock
176
        thinko.
177
 
178
2001-03-15  Gary Thomas  
179
 
180
        * src/file.cxx (open): Check for required/valid open mode.
181
 
182
2001-03-14  Jonathan Larmour  
183
 
184
        * src/misc.cxx (cyg_mtab_lookup): check valid mtab entry
185
        (umount): ditto.
186
 
187
2001-03-14   Martin van Veen  
188
 
189
        * src/misc.cxx (mount): Return error if mount fails.
190
 
191
2001-03-12  Gary Thomas  
192
 
193
        * src/misc.cxx (mount): Do implicit 'chdir()' in the
194
        absence of any statically mounted file systems.
195
        (cyg_fs_lock, cyg_fs_unlock): Add assertions.
196
 
197
        * src/file.cxx (LOCK_FS):
198
        * src/dir.cxx (LOCK_FS): Add assertions on 'mte'.
199
 
200
2001-01-05  Nick Garnett  
201
 
202
        * tests/socket.c (main):
203
        Added call to init_all_network_interfaces().
204
 
205
2000-12-15  Nick Garnett  
206
 
207
        * src/misc.cxx: Fixed some bugs in initialization of timestamp
208
        function when Wallclock and POSIX packages are absent.
209
 
210
2000-11-01  Jonathan Larmour  
211
 
212
        * src/io.cxx (readwrite): Ensure we call FILEIO_RETURN_VALUE() to
213
        get correct cleanup
214
        (fpathconf): Ditto
215
        (lseek): Ditto
216
 
217
        * src/file.cxx (open): If applicable, refer to stdin, stdout and stderr
218
        here to ensure they are pulled in, in case selective linking would
219
        otherwise eliminate them. This is to ensure they get allocated to
220
        fd's 0, 1 and 2.
221
 
222
2000-10-13  Nick Garnett  
223
 
224
        * src/io.cxx (readwrite): Merged both read() and write() functions
225
        into this single common routine.
226
 
227
        * include/fileio.h: Introduced a common typedef for both read and
228
        write operations.
229
 
230
        * doc/fileio.txt: Added some text about getcwd() and tidied up
231
        some other parts.
232
 
233
2000-10-05  Nick Garnett  
234
 
235
        * src/file.cxx: Added support for getcwd(). There are three
236
        mechanisms provided here. The first is to use the FS_INFO_GETCWD
237
        key on the filesystem to use any support it has for this. If that
238
        fails it falls back on one of the two other mechanisms. If
239
        CYGPKG_IO_FILEIO_TRACK_CWD is set then the current directory is
240
        tracked textually in chdir() and the result of that is reported in
241
        getcwd(). Otherwise an attempt is made to traverse the directory
242
        tree to its root using ".." entries. This last option is
243
        complicated and expensive, so the other two mechanisms are to be
244
        preferred if possible.
245
 
246
        * include/fileio.h: Added FS_INFO_GETCWD getinfo option and a
247
        matching struct cyg_getcwd_info. These are used to access getcwd()
248
        support in a filesystem.
249
 
250
        * src/fio.h: Added initial support for POSIX API function entry
251
        and return.
252
 
253
        * cdl/fileio.cdl: Added CYGPKG_IO_FILEIO_TRACK_CWD option to
254
        enable current directory tracking.
255
 
256
2000-09-28  Nick Garnett  
257
 
258
        * src/select.cxx (cyg_selwakeup):
259
        Removed test for whether the waiting thread is actually waiting
260
        for this event. This lead to a race condition when the thread is
261
        still polling other objects but has already checked this
262
        event. Now all waiting selectors are woken up by each selectable
263
        event.
264
 
265
2000-09-18  Jonathan Larmour  
266
 
267
        * src/select.cxx: Apply constructor prioritization to mutexes and
268
        condition variables
269
        * src/fd.cxx: Ditto
270
 
271
2000-09-11  Jonathan Larmour  
272
 
273
        * tests/select.c: NA if no POSIX package
274
 
275
        * cdl/fileio.cdl: Set CYGBLD_ISO_OPEN_MAX_HEADER to this package's
276
        limits.h
277
        * include/limits.h: New file to define OPEN_MAX (and other things in
278
        future)
279
 
280
2000-09-08  Nick Garnett  
281
 
282
        * include/fileio.h:
283
        Removed spaces from arguments to CYG_HAL_TABLE_ENTRY().
284
 
285
2000-09-04  Jonathan Larmour  
286
 
287
        * include/sockio.h (struct cyg_nstab_entry): Apply CYG_HAL_TABLE_TYPE
288
        * include/fileio.h (struct cyg_mtab_entry): Ditto
289
        (FSTAB_ENTRY): Ditto
290
 
291
2000-08-31  Nick Garnett  
292
 
293
        * src/select.cxx (select): Added scheduler unlock in timeout
294
        return case.
295
 
296
2000-08-22  Jonathan Larmour  
297
 
298
        * doc/fileio.txt: Add Nick's text description of plug-in filesystems
299
        and sockets here for now.
300
 
301
2000-08-18  Nick Garnett  
302
 
303
        * include/fileio.h: Added CYG_FAPPEND flag for preservation in
304
        file object flags.
305
        Added prototype for cyg_timestamp().
306
 
307
        * src/misc.cxx: Fixed bug in cyg_mtab_lookup() when dealing with
308
        empty mount table entries.
309
        Added cyg_timestamp() to provide timestamp support to client
310
        filesystems.
311
 
312
2000-08-09  Jonathan Larmour  
313
 
314
        * src/misc.cxx: Don't define own strcmp() function (which had a bug
315
        anyway). Use string.h.
316
        * cdl/fileio.cdl: requires ISO C string functions
317
 
318
2000-08-01  Jonathan Larmour  
319
 
320
        * src/misc.cxx: Use correct initializer for mtab_extra
321
 
322
        * src/fio.h (FILEIO_RETURN_VOID): Surround in CYG_MACRO_START to
323
        prevent problems when used with one-line if.
324
        (FILEIO_RETURN_VALUE): Likewise
325
 
326
        * include/fileio.h: Make getinfo/setinfo take void *bufs, not char *
327
        for easier casting (and more correct)
328
 
329
        * tests/testfs.c: Likewise
330
 
331
        * src/devfs.cxx: Likewise.
332
        Also fix bug with Nick's change below that set non-blocking mode
333
        in all cases.
334
 
335
2000-07-31  Nick Garnett  
336
 
337
        * src/devfs.cxx (dev_open): Added support for O_NONBLOCK.
338
 
339
2000-07-27  Nick Garnett  
340
 
341
        * tests/select.c: Wrapped include of pkgconf/io_serial.h in
342
        #ifdef CYGPKG_IO_SERIAL.
343
 
344
2000-07-25  Jonathan Larmour  
345
 
346
        * tests/select.c (main): Wrap call to init_all_network_interfaces()
347
        in #ifdef TEST_NET
348
 
349
2000-07-25  Nick Garnett  
350
 
351
        * tests/select.c (main): Added call to
352
        init_all_network_interfaces().
353
 
354
2000-07-21  Nick Garnett  
355
 
356
        * include/fileio.h:
357
        * src/file.cxx:
358
        * src/devfs.cxx:
359
        * tests/testfs.c:
360
        Added support for link() API call. This was the only major file
361
        operation omitted.
362
 
363
2000-07-20  Nick Garnett  
364
 
365
        * include/fileio.h: Added some modes for fsync().
366
 
367
        * src/file.cxx: Added access() function.
368
 
369
        * src/io.cxx: Added fdatasync() and isatty().
370
 
371
        * src/devfs.cxx: Added fsync() support.
372
 
373
        * tests/fileio1.c: Added calls to access() to check (non-)existence
374
        of files where appropriate.
375
 
376
2000-07-13  Nick Garnett  
377
 
378
        * src/select.cxx (select): Fixed return value when timing out. Now
379
        returns zero and no error, it used to return -1 and ETIMEDOUT.
380
 
381
        * src/io.cxx: Fixed fsync() to match standard.
382
 
383
        * src/devfs.cxx:
384
        Added lseek() support - all devices are always at position
385
        zero. Added [f]stat() support - currently just fills in the stat
386
        buffer with some predefined values. When we have more
387
        sophisticated devices this may need to be improved.
388
 
389
        * tests/testfs.c (testfs_open): Added support for O_TRUNC open
390
        flag.
391
 
392
        * tests/stdio.c:
393
        * cdl/fileio.cdl:
394
        Added stdio.c to test C library IO integration. This does not test
395
        the C library functionality, just that it works with the fileio
396
        package in certain limited ways.
397
 
398
2000-06-30  Nick Garnett  
399
 
400
        * src/misc.cxx: Fixed definition of mtab_extra[] so that it gets
401
        emitted correctly into the object file.
402
 
403
        * tests/testfs.c:
404
        Added support for dynamic mount()/umount().
405
        Added testfs_dump() to report state of filesystem, and to do a
406
        little consistency checking.
407
 
408
        * tests/fileio1.c: Extended testing to mount() and maximum file
409
        sizes.
410
 
411
2000-06-28  Nick Garnett  
412
 
413
        * include/dirent.h: Added this file to contain directory support
414
        definitions.
415
 
416
        * include/fileio.h:
417
        Introduced separate typedefs for all operation functions.
418
        Added CYG_FDIR to mark directory streams.
419
        Added some default operation functions.
420
 
421
        * src/fio.h (FILEIO_RETURN_VOID): Added this macro.
422
 
423
        * src/dir.cxx: Added this file to contain directory listing API
424
        functions.
425
 
426
        * src/misc.cxx:
427
        Added default operation functions.
428
 
429
        * src/file.cxx:
430
        Fixed mkdir() to have correct prototype.
431
        Moved opendir() to dir.cxx.
432
        Added support in chdir() for deregistering the current directory.
433
 
434
        * cdl/fileio.cdl: Added dev.cxx to compile list. Added support for
435
        dirent.h implementation.
436
 
437
        * tests/testfs.c: Lots of changes towards a more complete
438
        implementation.
439
 
440
        * tests/select.c: Changed SHOW_RESULT() message a little. Fixed up
441
        some warnings when no testing is possible.
442
 
443
        * tests/fileio1.c:
444
        Largely rewritten to do more complete testing.
445
 
446
2000-06-19  Nick Garnett  
447
 
448
        * src/select.cxx: Added selwake_count variable to count select
449
        wakeups. This allows us to avoid sleeping when a selectee calls
450
        cyg_selwakeup() while we are still scanning the FD sets.
451
 
452
        * include/fileio.h:
453
        * include/sockio.h:
454
        * src/misc.cxx:
455
        * src/socket.cxx:
456
        Converted tables to new mechanism.
457
 
458
        * tests/select.c: Reduced buffer size to avoid buffer overflow in
459
        serial devices.
460
 
461
2000-06-15  Nick Garnett  
462
 
463
        * include/fileio.h:
464
        Added typedef for cyg_selinfo.
465
        Added umount to fstab entry structure.
466
        Added mount() and unmount() prototypes.
467
        Added const in various places.
468
        Changed some types from CYG_ADDRWORD to their ISO standard
469
        equivalents.
470
        Added si_thread field to cyg_selinfo structure, added
471
        cyg_selinit() prototype.
472
 
473
        * src/socket.cxx: Converted an errant LOCK_NS() into the
474
        UNLOCK_NS() it should be.
475
 
476
        * src/select.cxx:
477
        Added cyg_selinit() which must be called by all selectees at
478
        initialization to prepare a cyg_selinfo structure for use.
479
        Modified cyg_selwakeup() to minimize the number for actual wakeup
480
        operations it actually performs.
481
 
482
        * src/misc.cxx:
483
        Added mtab_extra[] to contain dynamic mount table entries,
484
        modified startup scan of mtab to cope with this.
485
        changed matchlen() to cope with "/" mountpoint, this function is
486
        rapidly ceasing to be the neat bit of code it started out as.
487
        Added implementations of mount() and umount().
488
 
489
        * src/devfs.cxx: Added dev_umount, various minor tweaks.
490
 
491
        * cdl/fileio.cdl: Added CYGNUM_FILEIO_MTAB_EXTRA to define how
492
        many extra mount table entries should exist for dynamic mounts.
493
        Added select.c to list of tests.
494
 
495
        * tests/select.c: Added this file to test select() functionality
496
        on both sockets and (serial) devices.
497
 
498
        * tests/socket.c: Tidied some compilation warnings.
499
 
500
        * tests/testfs.c: Added umount stub function.
501
 
502
2000-06-12  Nick Garnett  
503
 
504
        * include/sockio.h:
505
        * include/fileio.h:
506
        * src/fio.h:
507
        * tests/testfs.c:
508
        * src/socket.cxx:
509
        * src/misc.cxx:
510
        * src/file.cxx:
511
        * src/fd.cxx:
512
        * src/io.cxx:
513
        * src/devfs.cxx:
514
        Tidied up and sorted out locking protocols and synchronization
515
        mechanisms.
516
 
517
2000-06-09  Nick Garnett  
518
 
519
        * src/select.cxx:
520
        * src/devfs.cxx:
521
        * include/fileio.h:
522
        * tests/testfs.c:
523
        Added select() support.
524
 
525
        * src/socket.cxx: Fixed a resource management bug in accept().
526
 
527
        * tests/socket.c: Extended to test that all API calls work, at
528
        least minimally, as they should. Still some calls to add here.
529
 
530
2000-06-07  Nick Garnett  
531
 
532
        * tests/socket.c: Simple socket API test program. Needs much more
533
        work to give full coverage.
534
 
535
        * src/socket.cxx: Filled in some implementations. Changed some
536
        type specifications.
537
 
538
        * src/select.cxx: Added this file to contain select()
539
        implementation. At present it does nothing.
540
 
541
        * include/sockio.h:
542
        Added definition of socklen_t for use when the NET package is
543
        absent - just so this file compiles.
544
        Added macro to generate an nstab entry.
545
        Changed prototypes of socket operation ffunctions to better match
546
        both API definition and BSD stack implementation.
547
 
548
        * cdl/fileio.cdl: Added support for socket API. This is only
549
        active if the NET package is present.
550
        Added initial socket API test program.
551
 
552
2000-06-02  Nick Garnett  
553
 
554
        * src/socket.cxx:
555
        Added this file to implement socket interface. This is still a
556
        rough draft that has not yet been tested.
557
 
558
        * src/misc.cxx:
559
        * src/io.cxx:
560
        * src/fio.h: Various minor changes and bug fixes.
561
 
562
        * src/file.cxx: Various bug fixes. Added pathconf().
563
 
564
        * src/fd.cxx: Various changes and bug fixes, mostly in the
565
        handling of the locking mechanisms.
566
 
567
        * src/devfs.cxx: Added this filesystem to interface to the device
568
        IO subsystem. Not yet tested.
569
 
570
        * include/sockio.h: Various minor changes prompted by
571
        implementation.
572
 
573
        * include/fileio.h:
574
        Added macros to instantiate filesystem and mount table entries.
575
        Added mode mask for setting up f_flags.
576
        Changed file object types, added device type.
577
 
578
        * cdl/fileio.cdl:
579
        Added some extra files to compile. Some now go in libextras.
580
        Added table maxima for fstab, mtab and nstab.
581
        Added tests.
582
 
583
        * tests/fileio1.c: Added this simple test for the fileio
584
        infrastructure.
585
 
586
        * tests/testfs.c:
587
        Created this simple ROM filesystem to test out the fileio
588
        infrastructure. This is not really usable for anything other than
589
        this, and should not be used in "production" systems. Hence its
590
        presence in tests rather than src.
591
        At present this only has support for open(), close(), read(),
592
        write(), lseek() and unlink(). Other parts will be implemented as
593
        and when required.
594
 
595
2000-05-31  Nick Garnett  
596
 
597
        * src/fio.h:
598
        * src/file.cxx:
599
        * src/io.cxx:
600
        * src/misc.cxx:
601
        Roughed out most of the file IO infrastructure. While this code
602
        compiles, none of it has actually been executed yet. A lot of this
603
        was cut-and-paste-and-edit, so some minor blemishes are to be
604
        expected.
605
 
606
        * src/fd.cxx: Several modifications in response to implementing
607
        rest of infrastructure. Added dup() and dup2() API routines.
608
 
609
        * include/fileio.h: Many changes and tidies prompted by
610
        infrastructure implementation.
611
 
612
        * cdl/fileio.cdl: Added "implements" directives for isoinfra
613
        interfaces. Extended compile to new files.
614
 
615
2000-05-26  Nick Garnett  
616
 
617
        * include/fileio.h:
618
        * include/sockio.h:
619
        * src/fd.cxx:
620
        * cdl/fileio.cdl:
621
        Created these files as a start at defining the file IO package.
622
        There is still a lot to do here, so expect radical changes to all
623
        of these files in the near future.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.