| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
* libcsupport/src/ctermid.c: Add comment explaining that this use of
strcpy() is a potential buffer overrun but because the API does not
provide a way to know the length of the user provided buffer, there
is nothing we can do about it.
|
|
|
|
|
|
|
| |
PR 1692/filesystem
* libcsupport/include/rtems/libio.h, libfs/src/devfs/devfs_eval.c,
libfs/src/imfs/imfs_eval.c: Fix implementation and use of
rtems_libio_is_valid_perms().
|
|
|
|
|
| |
* libcsupport/src/mount.c, libcsupport/src/mount-mgr.c: Avoid
strcpy().
|
|
|
|
| |
* libcsupport/src/mount.c: Avoid strcpy().
|
|
|
|
|
| |
* libcsupport/src/sync.c: Add comment explaining why the return value
from fsync() and fdatasync() is not checked.
|
|
|
|
|
| |
* libcsupport/src/eval.c: Make some filesystem implementation
correctness checks conditional on RTEMS_DEBUG.
|
|
|
|
|
|
|
| |
Coverity Id 93/NO_EFFECT
Coverity Id 94/NO_EFFECT
* libcsupport/src/readv.c, libcsupport/src/writev.c: size_t is unsigned
so it is useless to check for < 0.
|
|
|
|
|
|
| |
* libcsupport/src/free.c, libcsupport/src/malloc.c,
libcsupport/src/malloc_initialize.c: Remove heap walks in case
RTEMS_DEBUG is defined.
|
|
|
|
|
|
|
| |
* libcsupport/include/sys/utsname.h: Remove times().
Remove unnecessary includes.
Introduce SYS_NMLN (From freebsd).
* libcsupport/src/utsname.c: Rework uname().
|
|
|
|
|
| |
* libcsupport/src/read.c, libcsupport/src/write.c: Remove redundant
check for 0 size request.
|
|
|
|
| |
* libcsupport/src/open.c: Spacing.
|
|
|
|
|
| |
* libblock/src/flashdisk.c, libblock/src/nvdisk.c,
libcsupport/src/ioctl.c, libfs/src/dosfs/fat_file.c: Add va_end().
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1671/cpukit
* libcsupport/include/rtems/gxx_wrappers.h: New file.
* libcsupport/Makefile.am, libcsupport/preinstall.am: Reflect change
above.
* libcsupport/src/gxx_wrappers.c: Include <rtems/gxx_wrappers.h>. Use
_Internal_error_Occurred() instead of rtems_panic().
* score/include/rtems/score/interr.h: Added
INTERNAL_ERROR_GXX_KEY_ADD_FAILED and
INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED.
|
|
|
|
|
|
| |
PR 1662/filesystem
* libcsupport/src/termios.c: osem is now released before attempt
to delete in rtems_termios_close.
|
|
|
|
|
|
|
|
|
| |
PR 1661/testing
* libcsupport/Makefile.am, libcsupport/include/rtems/libcsupport.h: Add
public methods to get/set malloc heap pointer so the tests do not
have to peer behind the API.
* libcsupport/src/mallocgetheapptr.c,
libcsupport/src/mallocsetheapptr.c: New files.
|
| |
|
|
|
|
|
|
|
| |
PR 1649/cpukit
* libcsupport/Makefile.am, libcsupport/src/getgid.c: Make sure all get
and set gid and egid routines are present and in their own files.
* libcsupport/src/setegid.c, libcsupport/src/setgid.c: New files.
|
|
|
|
| |
* libcsupport/src/base_fs.c, libcsupport/src/rtems_mkdir.c: Formatting.
|
|
|
|
|
|
|
|
| |
PR 1645/cpukit
* libcsupport/src/getuid.c: Moved setuid() routine to its own
file.
* libcsupport/src/setuid.c: New file with setuid() routine.
* libcsupport/src/seteuid.c: New file with seteuid() routine.
|
|
|
|
|
|
|
|
| |
* libcsupport/src/fstat.c, libcsupport/src/rmdir.c,
libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_creat.c,
libfs/src/imfs/imfs_debug.c, libfs/src/imfs/imfs_getchild.c,
libfs/src/imfs/memfile.c: Add IMFS_assert. Clean up and remove all
checks which are redundant with system call layer. Formatting.
|
|
|
|
|
|
| |
PR 1620/cpukit
* libcsupport/src/privateenv.c: Significant clean up and rework to
improve testability.
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/src/privateenv.c, libmisc/cpuuse/cpuusagereport.c,
posix/Makefile.am, posix/include/rtems/posix/key.h,
posix/src/keycreate.c, posix/src/keydelete.c,
score/src/iterateoverthreads.c: Since removing ITRON, the loop over
all APIs for tasks has a path that cannot be reached. Either modify
the code or mark tests for NULL as RTEMS_DEBUG.
* posix/src/keyfreememory.c: New file.
|
|
|
|
|
| |
* libcsupport/src/gxx_wrappers.c: Free contents of key not key itself.
Kye pointer will never be malloc'ed.
|
|
|
|
|
|
|
| |
* libcsupport/Makefile.am, libcsupport/src/termios_baud2num.c,
libcsupport/src/termios_num2baud.c: Use RTEMS associations to
simplify code and make easier for coverage.
* libcsupport/src/termios_baudtable.c: New file.
|
|
|
|
| |
* libcsupport/src/link.c: Do not overwrite errno with return status.
|
|
|
|
| |
* libcsupport/src/privateenv.c: Fix bug.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio_.h: Removed rtems_filesystem_null_handlers.
* libcsupport/src/fs_null_handlers.c: Removed file.
* libcsupport/Makefile.am: Reflect change above.
* libfs/src/nfsclient/src/nfs.c, libfs/src/imfs/imfs_creat.c,
libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c: Use
rtems_filesystem_handlers_default instead of
rtems_filesystem_null_handlers.
* libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c:
Initialize handler and operations table with proper defaults.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio.h: Removed file_info and handlers
fields in rtems_libio_t.
* libcsupport/src/close.c, libcsupport/src/fcntl.c,
libcsupport/src/fdatasync.c, libcsupport/src/fstat.c,
libcsupport/src/fsync.c, libcsupport/src/ftruncate.c,
libcsupport/src/getdents.c, libcsupport/src/ioctl.c,
libcsupport/src/libio_sockets.c, libcsupport/src/lseek.c,
libcsupport/src/open.c, libcsupport/src/read.c,
libcsupport/src/readv.c, libcsupport/src/write.c,
libcsupport/src/writev.c, libfs/src/devfs/devclose.c,
libfs/src/devfs/devioctl.c, libfs/src/devfs/devopen.c,
libfs/src/devfs/devread.c, libfs/src/devfs/devwrite.c
libfs/src/dosfs/msdos_dir.c libfs/src/dosfs/msdos_file.c
libfs/src/imfs/deviceio.c libfs/src/imfs/imfs_directory.c
libfs/src/imfs/imfs_fifo.c libfs/src/imfs/memfile.c
libfs/src/nfsclient/src/nfs.c libfs/src/rfs/rtems-rfs-rtems-file.c
libfs/src/rfs/rtems-rfs-rtems.h libnetworking/lib/ftpfs.c: Reflect
changes above.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio.h: Changed
rtems_filesystem_node_types_t to an enum. Declare
rtems_filesystem_handlers_default,
rtems_filesystem_operations_default,
rtems_filesystem_default_evalpath(),
rtems_filesystem_default_evalformake, and
rtems_filesystem_default_node_type().
* libfs/src/dosfs/msdos.h: Fixed msdos_node_type() prototype.
* libfs/src/defaults/default_evalformake.c,
libfs/src/defaults/default_handlers.c,
libfs/src/defaults/default_node_type.c,
libfs/src/defaults/default_ops.c: New files.
* libfs/Makefile.am: Reflect changes above.
|
|
|
|
|
|
| |
PR 1612/networking
* ChangeLog, libcsupport/src/libio_sockets.c: Sockets need to have
handlers in place. Null is no longer allowed.
|
|
|
|
|
| |
* libcsupport/Makefile.am: Do not build libio_sockets.c if networking
is not enabled.
|
|
|
|
|
| |
* libcsupport/Makefile.am: Remove these files as they are uused.
* libcsupport/src/__brk.c, libcsupport/src/__sbrk.c: Removed.
|
|
|
|
| |
* libcsupport/src/__times.c: Formatting.
|
|
|
|
|
| |
* libcsupport/src/malloc_initialize.c: Clean up sbrk path now that a
test is available.
|
|
|
|
| |
* libcsupport/src/open.c: Formatting and improve comment.
|
|
|
|
| |
* libcsupport/src/getrusage.c: Formatting.
|
|
|
|
|
| |
* libcsupport/src/getlogin.c: Formatting. Add EFAULT.
* libcsupport/src/termios.c: Formatting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libblock/include/rtems/ide_part_table.h, libblock/src/bdbuf.c,
libcsupport/src/__times.c, libcsupport/src/libio_init.c,
libcsupport/src/mallocfreespace.c, libcsupport/src/mount-mgr.c,
libcsupport/src/mount.c, libcsupport/src/rewinddir.c,
libcsupport/src/seekdir.c, libcsupport/src/telldir.c,
libcsupport/src/unmount.c, libfs/src/dosfs/fat.c,
libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/msdos_create.c,
libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c,
libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c,
libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_initsupp.c,
libfs/src/dosfs/msdos_rename.c, libmisc/cpuuse/cpuusagereport.c,
libmisc/shell/vis.c, libmisc/stackchk/check.c, sapi/src/posixapi.c,
telnetd/telnetd.c: Remove include of assert.h when it is not needed.
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio.h, libfs/src/defaults/default_read.c,
libfs/src/defaults/default_readlink.c,
libfs/src/rfs/rtems-rfs-rtems.c: Correct types and prototypes to
eliminate warnings.
|
|
|
|
|
|
|
| |
* libcsupport/src/_rename_r.c, libcsupport/src/getdents.c,
libcsupport/src/unlink.c, libcsupport/src/utime.c,
libcsupport/src/writev.c: Remove remaining checks for missing
handlers.
|
|
|
|
|
|
|
| |
PR 1597/cpukit
* libcsupport/Makefile.am, libcsupport/src/chown.c: Add lchown() and
utimes().
* libcsupport/src/lchown.c, libcsupport/src/utimes.c: New files.
|
|
|
|
|
|
|
|
| |
PR 1529/cpukit
* utime.c: Change file access time and modified time to
current time if pointer to struct utimbuf is NULL.
* imfs_utime.c: Upon successful completion, imfs_utime() marks
the time of the last file status change, st_ctime, to be updated.
|
|
|
|
|
| |
* libcsupport/src/rtems_memalign.c, score/include/rtems/score/heap.h:
Remove stray references to malloc boundary.
|
|
|
|
|
| |
* libcsupport/src/getegid.c, libcsupport/src/gxx_wrappers.c,
libcsupport/src/issetugid.c: Formatting and spacing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/src/chdir.c, libcsupport/src/chmod.c,
libcsupport/src/chown.c, libcsupport/src/close.c,
libcsupport/src/eval.c, libcsupport/src/fchdir.c,
libcsupport/src/fchmod.c, libcsupport/src/fchown.c,
libcsupport/src/fcntl.c, libcsupport/src/fdatasync.c,
libcsupport/src/freenode.c, libcsupport/src/fstat.c,
libcsupport/src/fsync.c, libcsupport/src/ftruncate.c,
libcsupport/src/ioctl.c, libcsupport/src/link.c,
libcsupport/src/lseek.c, libcsupport/src/mknod.c,
libcsupport/src/mount.c, libcsupport/src/open.c,
libcsupport/src/read.c, libcsupport/src/readlink.c,
libcsupport/src/readv.c, libcsupport/src/rmdir.c,
libcsupport/src/stat.c, libcsupport/src/statvfs.c,
libcsupport/src/symlink.c, libcsupport/src/unlink.c,
libcsupport/src/unmount.c, libcsupport/src/write.c: Removed
filesystem checks for NULL methods checks from the main posix
rountines. These are now required to have at a miminum default
routines in the tables.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio_.h: Removed
rtems_filesystem_mount_table_control.
* libcsupport/include/rtems/libio.h, libcsupport/src/mount-mgr.c,
libcsupport/src/mount.c libcsupport/src/statvfs.c,
libcsupport/src/unmount.c, libmisc/shell/main_mount.c: Documentation.
Removed rtems_filesystem_mounts_first() and
rtems_filesystem_mounts_next(). Added
rtems_filesystem_mount_iterate(). Changed return type of
rtems_filesystem_iterate(). Removed rtems_filesystem_nodes_equal().
|
|
|
|
|
|
|
|
|
|
| |
PR 1472/cpukit
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h,
libcsupport/src/free.c, libcsupport/src/malloc.c,
libcsupport/src/malloc_initialize.c, libcsupport/src/realloc.c,
libcsupport/src/rtems_memalign.c: Remove malloc boundary code. It has
not been used since before 4.6 and is bitrotted.
* libcsupport/src/malloc_boundary.c: Removed.
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added
filesystem default mknod method.
* libfs/src/defaults/default_mknod.c: New file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio.h, libfs/Makefile.am,
libfs/src/defaults/default_chown.c,
libfs/src/defaults/default_evalpath.c,
libfs/src/defaults/default_freenode.c,
libfs/src/defaults/default_fsmount.c,
libfs/src/defaults/default_link.c,
libfs/src/defaults/default_mount.c,
libfs/src/defaults/default_rename.c,
libfs/src/defaults/default_statvfs.c,
libfs/src/defaults/default_symlink.c,
libfs/src/defaults/default_unlink.c,
libfs/src/defaults/default_utime.c, libfs/src/devfs/devfs_init.c,
libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs_init.c,
libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems.c,
wrapup/Makefile.am: Fixed typo in default names. Added default
methods into filesystem tables.
* libfs/src/defaults/default_close.c,
libfs/src/defaults/default_evaluate_link.c,
libfs/src/defaults/default_fpathconf.c,
libfs/src/defaults/default_fsunmount.c,
libfs/src/defaults/default_open.c,
libfs/src/defaults/default_unmount.c: New files.
|
|
|
|
|
| |
* libcsupport/src/libio_sockets.c: Use
rtems_set_errno_and_return_minus_one() where it was missed before.
|