summaryrefslogtreecommitdiff
path: root/libdiskfs/file-set-size.c
AgeCommit message (Collapse)Author
2013-10-02Check for negative sizes in file_set_sizeRichard Braun
* libdiskfs/file-set-size.c (diskfs_S_file_set_size): Return EINVAL if size is negative. * libnetfs/file-set-size.c (netfs_S_file_set_size): Likewise. * libtreefs/s-file.c (treefs_S_file_set_size): Likewise. * storeio/io.c (trivfs_S_file_set_size): Likewise. * term/users.c (trivfs_S_file_set_size): Likewise. * trans/null.c (trivfs_S_file_set_size): Likewise. * trans/streamio.c (trivfs_S_file_set_size): Likewise.
1998-08-10Sun Aug 9 21:09:24 1998 Jose M. Moya <josem@gnu.org>Thomas Bushnell
* diskfs.h (struct node): Add filemod_reqs member. (struct modreq): Rename struct dirmod to reqmod as it is used for directory and file notifications. (diskfs_notice_filechange): Add prototype. * dir-chg.c (diskfs_S_dir_notice_changes): Check nowait_dir_changed return value for errors. (diskfs_notice_dirchange): Remove requests when the notification fails. * file-chg.c (diskfs_S_file_notice_changes): Implement. (diskfs_notice_filechange): New function. * node-make.c (diskfs_make_node): Initialize filemod_reqs. * node-drop.c (free_modreqs): New function. (diskfs_drop_node): Free filemod_reqs. * file-chauthor.c (dithkfth_TH_file_chauthor): Add file notifications. * file-chflags.c (diskfs_S_file_chflags): Likewise. * file-chmod.c (diskfs_S_file_chmod): Likewise. * file-chown.c (diskfs_S_file_chown): Likewise. * file-set-size.c (diskfs_S_file_set_size): Likewise. * io-prenotify.c (diskfs_S_io_prenotify): Likewise. * io-write.c (diskfs_S_io_write): Likewise. * node-rdwr.c (diskfs_node_rdwr): Likewise.
1995-09-17Renamed from file-trunate.c.Roland McGrath
(diskfs_S_file_set_size): Renamed from diskfs_s_file_truncate. If SIZE exceeds the file size, extend the file.
1995-08-25(diskfs_S_file_truncate): Bother to check the return value ofMichael I. Bushnell
diskfs_truncate.
1994-05-05entered into RCSRoland McGrath
1994-03-01Formerly file-truncate.c.~5~Michael I. Bushnell
1994-02-04Formerly file-truncate.c.~4~Michael I. Bushnell
1994-02-03Formerly file-truncate.c.~3~Michael I. Bushnell
1994-01-31Initial revisionMichael I. Bushnell
1994-01-31Formerly file-truncate.c.~2~Michael I. Bushnell