minix/lib/posix
Ben Gras 50b06261b6 Implementation of truncate(), ftruncate() and the F_FREESP fcntl().
Implemented by changing write_map to accept a WMAP_FREE flag. In that
case, it doesn't update the datablock (creating indirect zones as
necessary) pointer, but it frees the datablock if present. Also it
frees the single and double indirect blocks if unused.

This makes the implementation of truncate_inode() simpler.
truncate_inode() now accepts a truncation length which makes
implementing truncate() and ftruncate() simple.

This also allowed implementing the F_FREESP fcntl().
2006-01-11 17:14:51 +00:00
..
__exit.c Changes to make gcc compile our libraries too (Joren) 2005-10-21 11:19:35 +00:00
_access.c Initial revision 2005-04-21 14:53:53 +00:00
_alarm.c Initial revision 2005-04-21 14:53:53 +00:00
_cfgetispeed.c Initial revision 2005-04-21 14:53:53 +00:00
_cfgetospeed.c Initial revision 2005-04-21 14:53:53 +00:00
_cfsetispeed.c Initial revision 2005-04-21 14:53:53 +00:00
_cfsetospeed.c Initial revision 2005-04-21 14:53:53 +00:00
_chdir.c Took fchdir out of the user library, it's suspected of being buggy (in FS) 2005-07-27 18:48:48 +00:00
_chmod.c Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. 2005-06-23 11:07:31 +00:00
_chown.c Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. 2005-06-23 11:07:31 +00:00
_chroot.c Initial revision 2005-04-21 14:53:53 +00:00
_close.c Initial revision 2005-04-21 14:53:53 +00:00
_closedir.c Initial revision 2005-04-21 14:53:53 +00:00
_creat.c Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. 2005-06-23 11:07:31 +00:00
_dup.c Initial revision 2005-04-21 14:53:53 +00:00
_dup2.c Initial revision 2005-04-21 14:53:53 +00:00
_execl.c Initial revision 2005-04-21 14:53:53 +00:00
_execle.c Initial revision 2005-04-21 14:53:53 +00:00
_execlp.c Initial revision 2005-04-21 14:53:53 +00:00
_execv.c Initial revision 2005-04-21 14:53:53 +00:00
_execve.c Initial revision 2005-04-21 14:53:53 +00:00
_execvp.c Initial revision 2005-04-21 14:53:53 +00:00
_fcntl.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
_fork.c Initial revision 2005-04-21 14:53:53 +00:00
_fpathconf.c Initial revision 2005-04-21 14:53:53 +00:00
_fstat.c Initial revision 2005-04-21 14:53:53 +00:00
_fstatfs.c Initial revision 2005-04-21 14:53:53 +00:00
_fsync.c Add fsync() interface. 2005-09-05 21:22:45 +00:00
_getcwd.c Initial revision 2005-04-21 14:53:53 +00:00
_getegid.c Initial revision 2005-04-21 14:53:53 +00:00
_geteuid.c Initial revision 2005-04-21 14:53:53 +00:00
_getgid.c Initial revision 2005-04-21 14:53:53 +00:00
_getgroups.c Initial revision 2005-04-21 14:53:53 +00:00
_getpgrp.c Initial revision 2005-04-21 14:53:53 +00:00
_getpid.c Initial revision 2005-04-21 14:53:53 +00:00
_getppid.c Initial revision 2005-04-21 14:53:53 +00:00
_getuid.c Initial revision 2005-04-21 14:53:53 +00:00
_ioctl.c Initial revision 2005-04-21 14:53:53 +00:00
_isatty.c Initial revision 2005-04-21 14:53:53 +00:00
_kill.c Initial revision 2005-04-21 14:53:53 +00:00
_link.c Initial revision 2005-04-21 14:53:53 +00:00
_lseek.c Initial revision 2005-04-21 14:53:53 +00:00
_lstat.c "forward compatible" hack for lstat() - make new binaries work on old 2005-11-07 13:15:09 +00:00
_mkdir.c Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. 2005-06-23 11:07:31 +00:00
_mkfifo.c Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. 2005-06-23 11:07:31 +00:00
_mknod.c Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. 2005-06-23 11:07:31 +00:00
_mount.c Initial revision 2005-04-21 14:53:53 +00:00
_open.c Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. 2005-06-23 11:07:31 +00:00
_opendir.c Initial revision 2005-04-21 14:53:53 +00:00
_pathconf.c Initial revision 2005-04-21 14:53:53 +00:00
_pause.c Initial revision 2005-04-21 14:53:53 +00:00
_pipe.c Initial revision 2005-04-21 14:53:53 +00:00
_ptrace.c Initial revision 2005-04-21 14:53:53 +00:00
_read.c Initial revision 2005-04-21 14:53:53 +00:00
_readdir.c Initial revision 2005-04-21 14:53:53 +00:00
_readlink.c library fixes for symlink, readlink and lstat 2005-11-01 13:13:31 +00:00
_rename.c Initial revision 2005-04-21 14:53:53 +00:00
_rewinddir.c Initial revision 2005-04-21 14:53:53 +00:00
_rmdir.c Initial revision 2005-04-21 14:53:53 +00:00
_select.c Changed FD_* select() fd set manipulation functions to macros. Also 2005-07-06 07:22:21 +00:00
_setgid.c seteuid() and setegid() 2005-12-13 09:48:29 +00:00
_setsid.c Initial revision 2005-04-21 14:53:53 +00:00
_setuid.c seteuid() and setegid() 2005-12-13 09:48:29 +00:00
_sigaction.c Initial revision 2005-04-21 14:53:53 +00:00
_sigpending.c Initial revision 2005-04-21 14:53:53 +00:00
_sigprocmask.c Initial revision 2005-04-21 14:53:53 +00:00
_sigreturn.c Initial revision 2005-04-21 14:53:53 +00:00
_sigset.c Initial revision 2005-04-21 14:53:53 +00:00
_sigsetjmp.c Initial revision 2005-04-21 14:53:53 +00:00
_sigsuspend.c Initial revision 2005-04-21 14:53:53 +00:00
_sleep.c Initial revision 2005-04-21 14:53:53 +00:00
_stat.c Initial revision 2005-04-21 14:53:53 +00:00
_stime.c Moved stime, time, times POSIX calls from FS to PM. Removed child time 2005-05-31 09:50:51 +00:00
_symlink.c library fixes for symlink, readlink and lstat 2005-11-01 13:13:31 +00:00
_sync.c Initial revision 2005-04-21 14:53:53 +00:00
_tcdrain.c Initial revision 2005-04-21 14:53:53 +00:00
_tcflow.c Initial revision 2005-04-21 14:53:53 +00:00
_tcflush.c Initial revision 2005-04-21 14:53:53 +00:00
_tcgetattr.c Initial revision 2005-04-21 14:53:53 +00:00
_tcsendbreak.c Initial revision 2005-04-21 14:53:53 +00:00
_tcsetattr.c Initial revision 2005-04-21 14:53:53 +00:00
_time.c Moved stime, time, times POSIX calls from FS to PM. Removed child time 2005-05-31 09:50:51 +00:00
_times.c Moved stime, time, times POSIX calls from FS to PM. Removed child time 2005-05-31 09:50:51 +00:00
_truncate.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
_umask.c Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. 2005-06-23 11:07:31 +00:00
_umount.c Initial revision 2005-04-21 14:53:53 +00:00
_uname.c Changed uname to retrieve actual OS release and version number at runtime. 2005-06-17 08:53:33 +00:00
_unlink.c Initial revision 2005-04-21 14:53:53 +00:00
_utime.c Initial revision 2005-04-21 14:53:53 +00:00
_wait.c Initial revision 2005-04-21 14:53:53 +00:00
_waitpid.c Initial revision 2005-04-21 14:53:53 +00:00
_write.c Initial revision 2005-04-21 14:53:53 +00:00
getloadavg.c getloadavg() interface 2005-11-14 15:48:12 +00:00
getopt.c Fixed a few compile warnings 2005-06-27 09:30:33 +00:00
gettimeofday.c complete, tick-resolution gettimeofday() implementation 2005-07-06 07:08:36 +00:00
Makefile Added truncate() and ftruncate() library calls (no FS support yet). 2005-12-20 14:18:16 +00:00
priority.c get/setpriority() and fsync() system calls 2005-07-01 18:01:33 +00:00
usleep.c Usleep implementation based on select. 2005-07-11 13:08:00 +00:00