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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [io/] [fileio/] [current/] [ChangeLog] - Blame information for rev 825

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

Line No. Rev Author Line
1 786 skrzyp
2012-03-04  Sergei Gavrikov  
2
 
3
        * tests/fnmatch.c: Add missed CYG_TEST_INIT().
4
 
5
2011-05-23  Manuel Borchers  
6
 
7
        * src/dir.cxx (rewinddir): Fix tracing of rewinddir().
8
        * src/fio.h: Add new function entry macro (FILEIO_ENTRY_VOID).
9
        [ Bugzilla 1001243 ]
10
 
11
2010-02-08  Jay Foster 
12
 
13
        * tests/pselect.c: Corrected return value of pthread_kill()
14
        to match POSIX standard.
15
 
16
2008-11-18  Rutger Hofman 
17
 
18
        * src/file.cxx: add a chmod() call, implemented by calling
19
        cyg_fs_setinfo with parameter FS_INFO_CHMOD
20
 
21
2008-12-11  Nick Garnett  
22
 
23
        * src/fd.cxx (fp_ucount_dec, fd_close): Fix locking strategy so
24
        that the fdlock is free when filesystem close entry is
25
        called. This allows other threads to peform descriptor operations
26
        during the close.
27
 
28
2008-04-02 Xinghua Yang 
29
           Andrew Lunn 
30
 
31
        * cdl/fileio.cdl: Use CYGPKG_FILEIO_DIRENT_DTYPE to enable/disable
32
        d_type field of struct dirent.
33
        * include/dirent.h: Add a d_type field to struct dirent, in order to
34
        distinguish file type directly without calling stat.
35
        * doc/fileio.sgml: Documentation about this new member and the fact
36
        it is not portable.
37
 
38
2007-08-17 Hans Rosenfeld 
39
 
40
        tests/fnmatch.c (main): Fix cut/paste error in final pass/fail
41
        report.
42
 
43
2007-06-12  Andrew Lunn  
44
 
45
        * src/misc.cxx (cyg_mtab_extra): Only create the array if it has more
46
        than 0 entries.
47
 
48
2007-01-27  Andrew Lunn  
49
 
50
        * tests/fnmatch.c: Test case for fnmatch.
51
 
52
2007-01-24  Peter Korsgaard  
53
 
54
        * cdl/fileio.cdl:
55
        * src/fnmatch.c:
56
        * include/fnmatch.h: Added fnmatch() implementation (from NetBSD).
57
 
58
2006-05-18  Paul Fine  
59
 
60
        * include/fileio.h : Added a key and a structure to extract the
61
        disk size and the available free space for a filesystem using
62
        the cyg_fs_getinfo() interface.
63
 
64
2006-05-17  Andy Jackson 
65
 
66
        * tests/fileio1.c: Compiler warning fixes.
67
        * tests/testfs.c:  Compiler warning fixes.
68
 
69
2006-02-16  Peter Korsgaard  
70
 
71
        * src/misc.cxx (cyg_mtab_lookup): Corrected implementation for
72
        relative paths crossing mount points.
73
        * tests/fileio1.c (cyg_user_start): Add a test for the above fix.
74
 
75
2005-10-20  Andrew Lunn  
76
 
77
        * src/select.cxx: Needs sys/time.h for struct timeval.
78
 
79
2005-08-02  Andrew Lunn  
80
 
81
        * tests/socket.c (SHOW_RESULT): Add a cast to avoid compiler
82
        warnings about the format string not matching the parameters.
83
        * tests/testfs.c: rename strcmp and strcpy to mystrcmp and
84
        mystrcpy to avoid clashes with the normal implementations.
85
 
86
2005-05-13  Peter Korsgaard  
87
 
88
        * src/devfs.cxx (dev_stat, dev_fo_fstat): Corrected mode for block
89
        devices, made nlink 1.
90
        * src/devfs.cxx (dev_fo_fstat): Set st_dev to zero to match dev_stat.
91
 
92
2005-05-26  Gary Thomas  
93
 
94
        * tests/socket.c: Fix config test (CYGPKG_POSIX_SIGNALS)
95
 
96
        * tests/pselect.c: Fix config test (CYGPKG_POSIX_SIGNALS is
97
        only defined in )  Also, reduce number of
98
        iterations so test completes in a reasonable time (~30 seconds).
99
 
100
2005-03-27  Andrew Lunn  
101
 
102
        * tests/testfs.c: Fixed compiler warnigs for passing wrong types
103
        to diag_printf.
104
        * tests/fileio1.c: Ditto
105
        * tests/select.c: Ditto
106
 
107
 
108
2005-02-24  Andrew Lunn  
109
 
110
        * include/fileio.h: Only include kapi.h when
111
        CYGFUN_IO_FILEIO_SELECT is enabled and then define the select
112
        support structures.
113
 
114
2005-01-27  Yoshinori Sato  
115
 
116
        * src/io.cxx (ioctl): Change ioctl to use varargs so that it works
117
        on with h8300 who's compiler does not like doing it the other way.
118
 
119
2005-01-22  Andrew Lunn  
120
 
121
        * src/misc.cxx (cyg_fs_root_lookup): New function to find the mount
122
        point of a give filesystems root directory.
123
        * src/fio.h:
124
        * include/fileio.h: Made cyg_fs_{un}lock accessible outside of the
125
        fileio package.
126
 
127
2004-01-22  Andrew Lunn  
128
 
129
        *
130
2004-12-15  Andrew Lunn  
131
 
132
        * src/select.cxx (cyg_pselect): We need the oldmask under all
133
        conditions.
134
 
135
2004-12-01  Alex Paulis and Cameron Taylor  
136
 
137
        * include/fileio.h: Changed si_thread to si_waitFlag
138
        * src/select.cxx: Improved efficiency: 1. Only threads waiting
139
        on a selector are woken up in selwake. This is done by swapping
140
        the condition variable for an event flag and registering threads
141
        for wakeup in selrecord. 2. No mutex is now required. 3. Search
142
        through the FD mask much streamlined.
143
 
144
2004-11-17  Jani Monoses 
145
 
146
        * tests/socket.c: Allow building without kernel config.
147
 
148
2004-11-14  Andrew Lunn  
149
 
150
        * tests/fileio1.c: Start the test using cyg_user_start so that
151
        it can be used without the kernel.
152
        * tests/testfs.c (testfs_time): If we don't have a kernel return 0
153
        as the time rather than the current time.
154
 
155
2004-11-14  Jani Monoses 
156
 
157
        * src/devfs.cxx: Removed unneeded header files so the package can
158
        be compiled without the kernel.
159
 
160
2004-10-13  David Brennan  
161
 
162
        * include/fileio.h:
163
        * src/file.cxx: Added support for cyg_fs_fssync,
164
        cyg_fs_get_attrib, and cyg_fs_set_attrib
165
 
166
2004-10-13  David Brennan  
167
 
168
        * src/file.cxx: Added a check data ptr in LOCK_FS
169
 
170
2004-10-06  David Brennan  
171
 
172
        * tests/pselect.c: Added check for POSIX signals while building
173
        the test case.
174
        * tests/select.c: Include sys/select.h to prevent a possible warning.
175
 
176
2004-10-01  Oyvind Harboe  
177
 
178
        * src/select.cxx: place the CYGBLD_ATTRIB_INIT_PRI such that it
179
        compiles for gcc 3.4.2 which is more picky about its placement.
180
 
181
2004-07-23 Oyvind Harboe 
182
 
183
        * src/select.cxx: now correctly returns from select() on
184
        e.g. closed file pointers.
185
 
186
2004-04-15  Jonathan Larmour  
187
 
188
        * tests/fileio1.c: include stdio.h for rename() prototype.
189
 
190
2004-04-07  Andrew Lunn  
191
 
192
        * src/fd.cxx: Fix the assert just added. 0 is a valid fd.
193
 
194
2004-03-25  Sebastien Couret  
195
 
196
        * src/fd.cxx: Added CYG_ASSERT bound checking for file descriptor
197
        numbers (0
198
 
199
2004-03-12  Jonathan Larmour  
200
 
201
        * src/fio.h: If no POSIX then CYG_FILEIO_DELIVER_SIGNALS
202
        and CYG_FILEIO_SIGMASK_SET call CYG_UNUSED_PARAM on their
203
        arguments to silence warnings.
204
        * src/file.cxx (rename): Use a throw specifier to match
205
        prototype.
206
 
207
2004-02-16  Andrew Lunn  
208
 
209
        * src/io.cxx (readwritev): For EWOULDBLOCK and EAGAIN return
210
        the number of bytes written if any have been written.
211
 
212
2004-01-07  Jonathan Larmour  
213
 
214
        * src/select.cxx: No need to make pselect() dependent on
215
        CYGPKG_POSIX - that would depend on the arguments. Assert instead,
216
        and more correctly make it contingent on CYGPKG_POSIX_SIGNALS.
217
 
218
        * src/fio.h: Separate out signal functionality into its own separate
219
        test.
220
 
221
2003-12-21  Sandeep Kumar 
222
 
223
        * src/dir.cxx (readdir_r): Handle NULL dirp argument and return
224
        EBADF
225
 
226
2003-12-03  Dan Jakubiec  
227
 
228
        * src/select.cxx (pselect): Fixed the pselect() call to correctly
229
        handle NULL timeout arguments.  The previous implementation would
230
        cause a random timeout value to be used.
231
 
232
2003-11-28  David Woodhouse  
233
 
234
        * include/fileio.h, include/sockio.h, src/dir.cxx, src/fd.cxx,
235
        src/io.cxx: Don't include kernel headers if no kernel support.
236
 
237
2003-10-23  Savin Zlobec  
238
 
239
        * src/io.cxx: Added cyg_fs_fsetinfo and cyg_fs_fgetinfo functions.
240
 
241
        * src/file.cxx: Added cyg_fs_setinfo and cyg_fs_getinfo functions.
242
 
243
        * include/fileio.h: Added cyg_fs_fsetinfo, cyg_fs_fgetinfo,
244
        cyg_fs_setinfo and cyg_fs_getinfo function prototypes.
245
 
246
2003-10-16  Andrew Lunn  
247
 
248
        * src/socket.cxx (bind): Pass a copy of the socket address so the
249
        stack can modify it without changing the users copy. Bug found by
250
        reji@codito.com.
251
 
252
2003-10-06  Andrew Lunn  
253
 
254
        * src/fio.h (CYG_FILEIO_SIGMASK_SET): Fixed a compiler warning
255
        about an unused variable.
256
 
257
2003-09-22 Eric Doenges 
258
        * src/devfs.cxx: prototype of dev_fo_select now matches
259
        implementation
260
        * include/fileio.h: changed definition of cyg_fileop_select to
261
        return a cyg_bool instead of int to match current implementations
262
        * src/misc.cxx: changed cyg_fileio_seltrue() to match prototype.
263
 
264
2003-07-11  Andrew Lunn  
265
 
266
        * src/socket.cxx (socket): If there are no network stacks configured
267
        return EAFNOSUPPORT when opening a socket.
268
 
269
2003-04-11  Jonathan Larmour  
270
 
271
        * src/socket.cxx: Give nstab_lock mutex a priority. Also it's
272
        local, so make static.
273
        Change nstab and nstab_end to cyg_nstab and cyg_nstab_end for
274
        cleaner namespace.
275
        * include/sockio.h: nstab -> cyg_nstab.
276
        * src/misc.cxx, src/dir.cxx, src/fio.h, src/file.cxx: Change
277
        fstab, fstab_end, mtab, mtab_end, cdir_dir, cdir_mtab_entry to
278
        have cyg_ prefix for cleaner namespace.
279
 
280
2003-03-20  Gary Thomas  
281
 
282
        * src/devfs.cxx: Remove unnecessary checks for -EAGAIN (should
283
        no longer happen in lower layers).
284
 
285
2003-03-08  Jonathan Larmour  
286
 
287
        * tests/pselect.c (pthread_entry1): Allow for infrequent but
288
        occasional off by one error due to race condition when
289
        signalling.
290
 
291
2003-02-24  Jonathan Larmour  
292
 
293
        * cdl/fileio.cdl: Add doc link.
294
 
295
2003-02-20  Bart Veer  
296
 
297
        * cdl/fileio.cdl: identify test binaries, not test sources
298
 
299
2003-01-30  Andrew Lunn  
300
 
301
        * cdl/fileio.cdl: Added interface CYGINT_IO_FILEIO_FS which any
302
        FS which FILEIO can use should implement.
303
 
304
2003-01-23  Gary Thomas  
305
 
306
        * src/misc.cxx (cyg_mtab_lookup): Return an error if the current
307
        directory is not known - happens if no file systems are mounted.
308
 
309
2002-11-10  Nick Garnett  
310
 
311
        * src/fio.h: Added macros to deal with signal handling. These will
312
        call into the POSIX package if it is present, but are null if it
313
        is not.
314
 
315
        * src/select.cxx: Renamed original select() to cyg_pselect() and
316
        added select() and pselect() routine from POSIX-200X to call
317
        it. Reorganized code a little and added calls to macros to deal
318
        with signal delivery and detection.
319
 
320
        * cdl/fileio.cdl:
321
        * tests/pselect.c: New test added to verify the signal masking and
322
        delivery behaviour of pselect().
323
 
324
        * tests/select.c: Fixed up some printfs to make it a little tidier.
325
 
326
2002-11-03  Gary Thomas  
327
 
328
        * src/io.cxx:
329
        * cdl/fileio.cdl: Add readv()/writev() support.
330
 
331
2002-08-08  Nick Garnett  
332
 
333
        * src/select.cxx (select): Changed mechanism for calculating
334
        select timeout to avoid possible race conditions between this code
335
        and the timer DSR.
336
 
337
2002-05-29  Jesper Skov  
338
 
339
        * tests/fileio1.c: Removed strcat definition. Rely on string.h to
340
        provide it.
341
 
342
2002-05-28  Jonathan Larmour  
343
 
344
        * include/limits.h (NAME_MAX): Increase default to 64.
345
        * cdl/fileio.cdl: Set CYGBLD_ISO_NAME_MAX_HEADER.
346
 
347
2002-04-11  Nick Garnett  
348
 
349
        * doc/fileio.sgml: Added a section on writing a new
350
        filesystem. This probably still needs more work, but it's better
351
        than nothing.
352
 
353
2002-04-05  Nick Garnett  
354
 
355
        * src/devfs.cxx: Changed test for EAGAIN in dev_fo_read() and
356
        dev_fo_write() to negate value first.
357
 
358
2002-03-07  Nick Garnett  
359
 
360
        * doc/fileio.sgml: Added this file to contain documentation on
361
        this package.
362
 
363
2002-02-04  Gary Thomas  
364
 
365
        * tests/socket.c (main):
366
        * tests/select.c (main): sin_len field must be set.
367
 
368
2002-01-29  Jonathan Larmour  
369
 
370
        * cdl/fileio.cdl: Actually, don't bother to build testfs.c at all.
371
 
372
2002-01-29  Jesper Skov  
373
 
374
        * cdl/fileio.cdl: Added CYGPKG_FILEIO_BUILD_TESTS option and made
375
        building of testfs dependant on it.
376
 
377
2002-01-25  Jonathan Larmour  
378
 
379
        * include/inode.h: New API defining a common generic inode type.
380
        * src/inocache.cxx: Implement the inode cache functions.
381
        * cdl/fileio.cdl: (Configurably) build it.
382
 
383
2002-01-23  David Woodhouse  
384
2002-01-23  Jonathan Larmour  
385
 
386
        * cdl/fileio.cdl: Remove select compilation and support to new
387
        CYGFUN_IO_FILEIO_SELECT option conditional on the kernel
388
        Ditto for DEVS and CYGPKG_IO_FILEIO_DEVFS_SUPPORT.
389
        Make CYGPKG_IO_FILEIO_SOCKET_SUPPORT also conditional on kernel.
390
        * src/fio.h: Define FILEIO_MUTEX_LOCK() and FILEIO_MUTEX_UNLOCK()
391
        so that code doesn't need to care whether the kernel is included or
392
        not.
393
        * src/fd.cxx: Conditionalize mutex usage throughout on CYGPKG_KERNEL,
394
        and FILEIO_MUTEX_LOCK()/UNLOCK().
395
        * src/file.cxx: Ditto.
396
        * src/misc.cxx: Ditto.
397
        (cyg_timestamp): Only use Cyg_Clock implementation if CYGPKG_KERNEL.
398
 
399
2002-01-23  Jonathan Larmour  
400
 
401
        * src/misc.cxx: Initialize fileio_initializer at prio CYG_INIT_IO_FS
402
        so it happens after the devices it depends on.
403
        * src/file.cxx (getcwd_lock): Ditto.
404
        * src/select.cxx (select_mutex): ditto.
405
        (selwait): ditto.
406
        * src/fd.cxx (fdlock): ditto
407
        (file_lock): ditto.
408
        * src/dir.cxx (readdir): Use FILEIO_RETURN_VALUE on exit.
409
        (readdir_r): Ditto.
410
        * src/devfs.cxx (dev_stat): Don't use handle for st_dev - it will
411
        probably be truncated.
412
 
413
2002-01-04  Wade Jensen 
414
2002-01-04  Jonathan Larmour  
415
 
416
        * src/socket.cxx (recvfrom): Set msg.msg_namelen correctly for
417
        NULL fromlen.
418
 
419
2001-12-28  Gary Thomas  
420
 
421
        * src/io.cxx (readwrite): Add missing check for return (errors).
422
 
423
2001-11-29  Jonathan Larmour  
424
 
425
        * src/file.cxx (chdir): Don't detach from current dir if unset.
426
 
427
2001-11-02  Felix Wong  
428
2001-11-02  Jonathan Larmour  
429
 
430
        * src/devfs.cxx (dev_fo_read): Support block devices.
431
        (dev_fo_write): Ditto.
432
 
433
2001-10-09  Jonathan Larmour  
434
 
435
        * src/fio.h: Make cancellation point dependand on
436
        CYGINT_ISO_PTHREAD_IMPL from  really.
437
        * tests/select.c: Ditto.
438
 
439
2001-10-09  Jesper Skov  
440
 
441
        * tests/select.c: Do NA check for posix threads.
442
 
443
        * src/fio.h: Make cancellation point dependant on
444
        CYGPKG_POSIX_PTHREAD as in the POSIX package.
445
 
446
2001-07-26  Jonathan Larmour  
447
 
448
        * cdl/fileio.cdl: Implements select().
449
        * src/select.cxx: Include  from isoinfra.
450
 
451
2001-07-19  Jonathan Larmour  
452
 
453
        * src/devfs.cxx (dev_fo_read): Treat non-blocking reads returning
454
        EAGAIN correctly
455
        (dev_fo_write): Ditto for writes.
456
 
457
2001-06-14  Jonathan Larmour  
458
 
459
        * src/fio.h (FILEIO_ENTRY): Don't use CYG_MACRO_START/END around
460
        tracing macros.
461
        Reported by Richard Panton.
462
 
463
2001-06-11  Jonathan Larmour  
464
 
465
        * src/socket.cxx (cyg_sock_unlock): Fix cyg_file_lock->cyg_file_unlock
466
        thinko.
467
 
468
2001-03-15  Gary Thomas  
469
 
470
        * src/file.cxx (open): Check for required/valid open mode.
471
 
472
2001-03-14  Jonathan Larmour  
473
 
474
        * src/misc.cxx (cyg_mtab_lookup): check valid mtab entry
475
        (umount): ditto.
476
 
477
2001-03-14   Martin van Veen  
478
 
479
        * src/misc.cxx (mount): Return error if mount fails.
480
 
481
2001-03-12  Gary Thomas  
482
 
483
        * src/misc.cxx (mount): Do implicit 'chdir()' in the
484
        absence of any statically mounted file systems.
485
        (cyg_fs_lock, cyg_fs_unlock): Add assertions.
486
 
487
        * src/file.cxx (LOCK_FS):
488
        * src/dir.cxx (LOCK_FS): Add assertions on 'mte'.
489
 
490
2001-01-05  Nick Garnett  
491
 
492
        * tests/socket.c (main):
493
        Added call to init_all_network_interfaces().
494
 
495
2000-12-15  Nick Garnett  
496
 
497
        * src/misc.cxx: Fixed some bugs in initialization of timestamp
498
        function when Wallclock and POSIX packages are absent.
499
 
500
2000-11-01  Jonathan Larmour  
501
 
502
        * src/io.cxx (readwrite): Ensure we call FILEIO_RETURN_VALUE() to
503
        get correct cleanup
504
        (fpathconf): Ditto
505
        (lseek): Ditto
506
 
507
        * src/file.cxx (open): If applicable, refer to stdin, stdout and stderr
508
        here to ensure they are pulled in, in case selective linking would
509
        otherwise eliminate them. This is to ensure they get allocated to
510
        fd's 0, 1 and 2.
511
 
512
2000-10-13  Nick Garnett  
513
 
514
        * src/io.cxx (readwrite): Merged both read() and write() functions
515
        into this single common routine.
516
 
517
        * include/fileio.h: Introduced a common typedef for both read and
518
        write operations.
519
 
520
        * doc/fileio.txt: Added some text about getcwd() and tidied up
521
        some other parts.
522
 
523
2000-10-05  Nick Garnett  
524
 
525
        * src/file.cxx: Added support for getcwd(). There are three
526
        mechanisms provided here. The first is to use the FS_INFO_GETCWD
527
        key on the filesystem to use any support it has for this. If that
528
        fails it falls back on one of the two other mechanisms. If
529
        CYGPKG_IO_FILEIO_TRACK_CWD is set then the current directory is
530
        tracked textually in chdir() and the result of that is reported in
531
        getcwd(). Otherwise an attempt is made to traverse the directory
532
        tree to its root using ".." entries. This last option is
533
        complicated and expensive, so the other two mechanisms are to be
534
        preferred if possible.
535
 
536
        * include/fileio.h: Added FS_INFO_GETCWD getinfo option and a
537
        matching struct cyg_getcwd_info. These are used to access getcwd()
538
        support in a filesystem.
539
 
540
        * src/fio.h: Added initial support for POSIX API function entry
541
        and return.
542
 
543
        * cdl/fileio.cdl: Added CYGPKG_IO_FILEIO_TRACK_CWD option to
544
        enable current directory tracking.
545
 
546
2000-09-28  Nick Garnett  
547
 
548
        * src/select.cxx (cyg_selwakeup):
549
        Removed test for whether the waiting thread is actually waiting
550
        for this event. This lead to a race condition when the thread is
551
        still polling other objects but has already checked this
552
        event. Now all waiting selectors are woken up by each selectable
553
        event.
554
 
555
2000-09-18  Jonathan Larmour  
556
 
557
        * src/select.cxx: Apply constructor prioritization to mutexes and
558
        condition variables
559
        * src/fd.cxx: Ditto
560
 
561
2000-09-11  Jonathan Larmour  
562
 
563
        * tests/select.c: NA if no POSIX package
564
 
565
        * cdl/fileio.cdl: Set CYGBLD_ISO_OPEN_MAX_HEADER to this package's
566
        limits.h
567
        * include/limits.h: New file to define OPEN_MAX (and other things in
568
        future)
569
 
570
2000-09-08  Nick Garnett  
571
 
572
        * include/fileio.h:
573
        Removed spaces from arguments to CYG_HAL_TABLE_ENTRY().
574
 
575
2000-09-04  Jonathan Larmour  
576
 
577
        * include/sockio.h (struct cyg_nstab_entry): Apply CYG_HAL_TABLE_TYPE
578
        * include/fileio.h (struct cyg_mtab_entry): Ditto
579
        (FSTAB_ENTRY): Ditto
580
 
581
2000-08-31  Nick Garnett  
582
 
583
        * src/select.cxx (select): Added scheduler unlock in timeout
584
        return case.
585
 
586
2000-08-22  Jonathan Larmour  
587
 
588
        * doc/fileio.txt: Add Nick's text description of plug-in filesystems
589
        and sockets here for now.
590
 
591
2000-08-18  Nick Garnett  
592
 
593
        * include/fileio.h: Added CYG_FAPPEND flag for preservation in
594
        file object flags.
595
        Added prototype for cyg_timestamp().
596
 
597
        * src/misc.cxx: Fixed bug in cyg_mtab_lookup() when dealing with
598
        empty mount table entries.
599
        Added cyg_timestamp() to provide timestamp support to client
600
        filesystems.
601
 
602
2000-08-09  Jonathan Larmour  
603
 
604
        * src/misc.cxx: Don't define own strcmp() function (which had a bug
605
        anyway). Use string.h.
606
        * cdl/fileio.cdl: requires ISO C string functions
607
 
608
2000-08-01  Jonathan Larmour  
609
 
610
        * src/misc.cxx: Use correct initializer for mtab_extra
611
 
612
        * src/fio.h (FILEIO_RETURN_VOID): Surround in CYG_MACRO_START to
613
        prevent problems when used with one-line if.
614
        (FILEIO_RETURN_VALUE): Likewise
615
 
616
        * include/fileio.h: Make getinfo/setinfo take void *bufs, not char *
617
        for easier casting (and more correct)
618
 
619
        * tests/testfs.c: Likewise
620
 
621
        * src/devfs.cxx: Likewise.
622
        Also fix bug with Nick's change below that set non-blocking mode
623
        in all cases.
624
 
625
2000-07-31  Nick Garnett  
626
 
627
        * src/devfs.cxx (dev_open): Added support for O_NONBLOCK.
628
 
629
2000-07-27  Nick Garnett  
630
 
631
        * tests/select.c: Wrapped include of pkgconf/io_serial.h in
632
        #ifdef CYGPKG_IO_SERIAL.
633
 
634
2000-07-25  Jonathan Larmour  
635
 
636
        * tests/select.c (main): Wrap call to init_all_network_interfaces()
637
        in #ifdef TEST_NET
638
 
639
2000-07-25  Nick Garnett  
640
 
641
        * tests/select.c (main): Added call to
642
        init_all_network_interfaces().
643
 
644
2000-07-21  Nick Garnett  
645
 
646
        * include/fileio.h:
647
        * src/file.cxx:
648
        * src/devfs.cxx:
649
        * tests/testfs.c:
650
        Added support for link() API call. This was the only major file
651
        operation omitted.
652
 
653
2000-07-20  Nick Garnett  
654
 
655
        * include/fileio.h: Added some modes for fsync().
656
 
657
        * src/file.cxx: Added access() function.
658
 
659
        * src/io.cxx: Added fdatasync() and isatty().
660
 
661
        * src/devfs.cxx: Added fsync() support.
662
 
663
        * tests/fileio1.c: Added calls to access() to check (non-)existence
664
        of files where appropriate.
665
 
666
2000-07-13  Nick Garnett  
667
 
668
        * src/select.cxx (select): Fixed return value when timing out. Now
669
        returns zero and no error, it used to return -1 and ETIMEDOUT.
670
 
671
        * src/io.cxx: Fixed fsync() to match standard.
672
 
673
        * src/devfs.cxx:
674
        Added lseek() support - all devices are always at position
675
        zero. Added [f]stat() support - currently just fills in the stat
676
        buffer with some predefined values. When we have more
677
        sophisticated devices this may need to be improved.
678
 
679
        * tests/testfs.c (testfs_open): Added support for O_TRUNC open
680
        flag.
681
 
682
        * tests/stdio.c:
683
        * cdl/fileio.cdl:
684
        Added stdio.c to test C library IO integration. This does not test
685
        the C library functionality, just that it works with the fileio
686
        package in certain limited ways.
687
 
688
2000-06-30  Nick Garnett  
689
 
690
        * src/misc.cxx: Fixed definition of mtab_extra[] so that it gets
691
        emitted correctly into the object file.
692
 
693
        * tests/testfs.c:
694
        Added support for dynamic mount()/umount().
695
        Added testfs_dump() to report state of filesystem, and to do a
696
        little consistency checking.
697
 
698
        * tests/fileio1.c: Extended testing to mount() and maximum file
699
        sizes.
700
 
701
2000-06-28  Nick Garnett  
702
 
703
        * include/dirent.h: Added this file to contain directory support
704
        definitions.
705
 
706
        * include/fileio.h:
707
        Introduced separate typedefs for all operation functions.
708
        Added CYG_FDIR to mark directory streams.
709
        Added some default operation functions.
710
 
711
        * src/fio.h (FILEIO_RETURN_VOID): Added this macro.
712
 
713
        * src/dir.cxx: Added this file to contain directory listing API
714
        functions.
715
 
716
        * src/misc.cxx:
717
        Added default operation functions.
718
 
719
        * src/file.cxx:
720
        Fixed mkdir() to have correct prototype.
721
        Moved opendir() to dir.cxx.
722
        Added support in chdir() for deregistering the current directory.
723
 
724
        * cdl/fileio.cdl: Added dev.cxx to compile list. Added support for
725
        dirent.h implementation.
726
 
727
        * tests/testfs.c: Lots of changes towards a more complete
728
        implementation.
729
 
730
        * tests/select.c: Changed SHOW_RESULT() message a little. Fixed up
731
        some warnings when no testing is possible.
732
 
733
        * tests/fileio1.c:
734
        Largely rewritten to do more complete testing.
735
 
736
2000-06-19  Nick Garnett  
737
 
738
        * src/select.cxx: Added selwake_count variable to count select
739
        wakeups. This allows us to avoid sleeping when a selectee calls
740
        cyg_selwakeup() while we are still scanning the FD sets.
741
 
742
        * include/fileio.h:
743
        * include/sockio.h:
744
        * src/misc.cxx:
745
        * src/socket.cxx:
746
        Converted tables to new mechanism.
747
 
748
        * tests/select.c: Reduced buffer size to avoid buffer overflow in
749
        serial devices.
750
 
751
2000-06-15  Nick Garnett  
752
 
753
        * include/fileio.h:
754
        Added typedef for cyg_selinfo.
755
        Added umount to fstab entry structure.
756
        Added mount() and unmount() prototypes.
757
        Added const in various places.
758
        Changed some types from CYG_ADDRWORD to their ISO standard
759
        equivalents.
760
        Added si_thread field to cyg_selinfo structure, added
761
        cyg_selinit() prototype.
762
 
763
        * src/socket.cxx: Converted an errant LOCK_NS() into the
764
        UNLOCK_NS() it should be.
765
 
766
        * src/select.cxx:
767
        Added cyg_selinit() which must be called by all selectees at
768
        initialization to prepare a cyg_selinfo structure for use.
769
        Modified cyg_selwakeup() to minimize the number for actual wakeup
770
        operations it actually performs.
771
 
772
        * src/misc.cxx:
773
        Added mtab_extra[] to contain dynamic mount table entries,
774
        modified startup scan of mtab to cope with this.
775
        changed matchlen() to cope with "/" mountpoint, this function is
776
        rapidly ceasing to be the neat bit of code it started out as.
777
        Added implementations of mount() and umount().
778
 
779
        * src/devfs.cxx: Added dev_umount, various minor tweaks.
780
 
781
        * cdl/fileio.cdl: Added CYGNUM_FILEIO_MTAB_EXTRA to define how
782
        many extra mount table entries should exist for dynamic mounts.
783
        Added select.c to list of tests.
784
 
785
        * tests/select.c: Added this file to test select() functionality
786
        on both sockets and (serial) devices.
787
 
788
        * tests/socket.c: Tidied some compilation warnings.
789
 
790
        * tests/testfs.c: Added umount stub function.
791
 
792
2000-06-12  Nick Garnett  
793
 
794
        * include/sockio.h:
795
        * include/fileio.h:
796
        * src/fio.h:
797
        * tests/testfs.c:
798
        * src/socket.cxx:
799
        * src/misc.cxx:
800
        * src/file.cxx:
801
        * src/fd.cxx:
802
        * src/io.cxx:
803
        * src/devfs.cxx:
804
        Tidied up and sorted out locking protocols and synchronization
805
        mechanisms.
806
 
807
2000-06-09  Nick Garnett  
808
 
809
        * src/select.cxx:
810
        * src/devfs.cxx:
811
        * include/fileio.h:
812
        * tests/testfs.c:
813
        Added select() support.
814
 
815
        * src/socket.cxx: Fixed a resource management bug in accept().
816
 
817
        * tests/socket.c: Extended to test that all API calls work, at
818
        least minimally, as they should. Still some calls to add here.
819
 
820
2000-06-07  Nick Garnett  
821
 
822
        * tests/socket.c: Simple socket API test program. Needs much more
823
        work to give full coverage.
824
 
825
        * src/socket.cxx: Filled in some implementations. Changed some
826
        type specifications.
827
 
828
        * src/select.cxx: Added this file to contain select()
829
        implementation. At present it does nothing.
830
 
831
        * include/sockio.h:
832
        Added definition of socklen_t for use when the NET package is
833
        absent - just so this file compiles.
834
        Added macro to generate an nstab entry.
835
        Changed prototypes of socket operation ffunctions to better match
836
        both API definition and BSD stack implementation.
837
 
838
        * cdl/fileio.cdl: Added support for socket API. This is only
839
        active if the NET package is present.
840
        Added initial socket API test program.
841
 
842
2000-06-02  Nick Garnett  
843
 
844
        * src/socket.cxx:
845
        Added this file to implement socket interface. This is still a
846
        rough draft that has not yet been tested.
847
 
848
        * src/misc.cxx:
849
        * src/io.cxx:
850
        * src/fio.h: Various minor changes and bug fixes.
851
 
852
        * src/file.cxx: Various bug fixes. Added pathconf().
853
 
854
        * src/fd.cxx: Various changes and bug fixes, mostly in the
855
        handling of the locking mechanisms.
856
 
857
        * src/devfs.cxx: Added this filesystem to interface to the device
858
        IO subsystem. Not yet tested.
859
 
860
        * include/sockio.h: Various minor changes prompted by
861
        implementation.
862
 
863
        * include/fileio.h:
864
        Added macros to instantiate filesystem and mount table entries.
865
        Added mode mask for setting up f_flags.
866
        Changed file object types, added device type.
867
 
868
        * cdl/fileio.cdl:
869
        Added some extra files to compile. Some now go in libextras.
870
        Added table maxima for fstab, mtab and nstab.
871
        Added tests.
872
 
873
        * tests/fileio1.c: Added this simple test for the fileio
874
        infrastructure.
875
 
876
        * tests/testfs.c:
877
        Created this simple ROM filesystem to test out the fileio
878
        infrastructure. This is not really usable for anything other than
879
        this, and should not be used in "production" systems. Hence its
880
        presence in tests rather than src.
881
        At present this only has support for open(), close(), read(),
882
        write(), lseek() and unlink(). Other parts will be implemented as
883
        and when required.
884
 
885
2000-05-31  Nick Garnett  
886
 
887
        * src/fio.h:
888
        * src/file.cxx:
889
        * src/io.cxx:
890
        * src/misc.cxx:
891
        Roughed out most of the file IO infrastructure. While this code
892
        compiles, none of it has actually been executed yet. A lot of this
893
        was cut-and-paste-and-edit, so some minor blemishes are to be
894
        expected.
895
 
896
        * src/fd.cxx: Several modifications in response to implementing
897
        rest of infrastructure. Added dup() and dup2() API routines.
898
 
899
        * include/fileio.h: Many changes and tidies prompted by
900
        infrastructure implementation.
901
 
902
        * cdl/fileio.cdl: Added "implements" directives for isoinfra
903
        interfaces. Extended compile to new files.
904
 
905
2000-05-26  Nick Garnett  
906
 
907
        * include/fileio.h:
908
        * include/sockio.h:
909
        * src/fd.cxx:
910
        * cdl/fileio.cdl:
911
        Created these files as a start at defining the file IO package.
912
        There is still a lot to do here, so expect radical changes to all
913
        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.