lib/mountlist.c


Log

Author Commit Date CI Message
Jim Meyering 9576a0ca 2000-07-01T13:35:28 Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV, per change in ../m4/ls-mntd-fs.m4. (read_filesystem_list): Ignore symbolic links.
Jim Meyering ed3c5c90 2000-06-29T08:30:03 (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: Avoid warning by casting result to `char *' to remove `const'.
Jim Meyering bd85a91a 2000-06-03T22:09:03 move vmp decl back out to the scope where it belongs
Jim Meyering bcf3308e 2000-06-02T11:20:47 Back out last change. Instead, do this... (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy member using the same `ignore'-testing code.
Jim Meyering 3004e2c7 2000-05-29T16:23:45 (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts with the `ignore' attribute. Based on a patch from Mark D. Roth.
Jim Meyering f4802219 2000-05-01T08:03:33 (read_filesystem_list): Add BeOS support.
Jim Meyering c6a5094f 1999-07-26T06:52:28 *** empty log message ***
Jim Meyering 12c637b4 1999-07-20T18:52:05 update comments
Jim Meyering 34bd051e 1999-07-20T18:41:58 (translate_040_to_space) [MOUNTED_GETMNTENT1]: New function. (read_filesystem_list) [MOUNTED_GETMNTENT1]: Use it.
Jim Meyering 5542a382 1998-08-15T03:01:13 (read_filesystem_list) [MOUNTED_GETMNT]: Don't infloop on getmnt(2) returning 0. Christian von Roques
Jim Meyering ea12546c 1998-07-29T03:58:02 (read_filesystem_list): Remove all_fs argument, but put the necessary information into the result so that the caller can ignore filesystems that he's not interested in. From Paul.
Jim Meyering 83d2e1ba 1998-07-25T15:00:37 (xatoi): Ansideclify. (fstype_to_string): Ansideclify.
Jim Meyering a7e84e3d 1998-07-25T14:54:42 (read_filesystem_list) [MOUNTED_GETMNTINFO]: Use fsp_to_string. (fsp_to_string): Don't xmalloc return value (yet).
Jim Meyering feeb972f 1998-07-25T14:41:04 (read_filesystem_list): If all_fs is negative, omit non-local filesytems. From Paul Eggert.
Jim Meyering 0e334dd9 1998-07-18T12:28:31 (read_filesystem_list): Fix more memory leaks on failure. From Andreas Schwab.
Jim Meyering 2bc1fe2a 1998-07-04T00:48:11 (read_filesystem_list): Don't leak memory on failure. Don't create a dummy struct mount_entry entry; use the address-of-the-tail-address method instead. Preserve errno if possible on failure, setting it to 0 if inapplicable. Close file descriptor leak if the F_SETLKW failed. Report an error if SVR4 lock file cannot be opened for some reason other than a nonexistent lock file.
Jim Meyering 32a530aa 1998-06-30T14:32:53 (read_filesystem_list): Plug file descriptor leak on failure. Report failure if lock file can't be opened for some reason other than nonexistence.
Jim Meyering ff8b01f4 1998-06-30T03:56:57 (read_filesystem_list) [MOUNTED_GETMNTENT2]: Always close stream and file descriptor before returning.
Jim Meyering 07ce9324 1998-06-30T02:15:43 (read_filesystem_list): If SVR4, lock /etc/.mnttab.lock if available, to avoid race conditions (e.g. with the automounter on Solaris 2.6). Include <errno.h>, <fcntl.h>, <unistd.h>.
Jim Meyering b6a91103 1998-06-29T17:01:48 (fstype_to_string): Guard with #if ! HAVE_F_FSTYPENAME_IN_STATFS.
Jim Meyering c52618d1 1998-06-29T01:10:24 (fsp_to_string): Clean out some crufty #ifdefs now that we're using the jm_FSTYPENAME autoconf macro.
Jim Meyering 67f394c1 1998-03-15T11:09:10 Use #if, not #ifdef with HAVE_ macros
Jim Meyering 0f905c09 1997-12-25T17:02:25 Declare stpcpy only if not defined as macro.
Jim Meyering f542a4ad 1997-05-28T11:42:29 (read_filesystem_list): Add `|| defined (__OpenBSD__)' to the NetBSD #if so OpenBSD also uses the f_fstypename member. (fstype_to_string): Add `&& !defined (__OpenBSD__)' to the NetBSD #if expression to exclude this function definition. OpenBSD 2.1 beta doesn't need it. Patch from Hugh Daniel <hugh@ecotone.xanadu.com>
Jim Meyering 3b9c7bc2 1997-05-24T14:43:21 (read_filesystem_list): Show automount-related duplicate filesystems only when --all specified. With suggestions from Stuart Kemp.
Jim Meyering 57d62c35 1997-05-24T14:42:40 Indent cpp directives.
Jim Meyering 81d7fb95 1997-01-25T13:50:24 remove trailing blanks
Jim Meyering 040465a3 1996-10-12T23:21:32 (fstype_to_string): Handle fstypes of freebsd. From Arne Henrik Juul.
Jim Meyering 6d8337bf 1996-07-15T03:36:16 update FSF address in copyright
Jim Meyering 7f7c69fa 1996-05-23T13:04:41 (read_filesystem_list) [MOUNTED_LISTMNTENT]: New function. From Johan Danielsson (joda@pdc.kth.se).
Jim Meyering aa5959b9 1995-10-05T14:14:45 (read_filesystem_list): Cast -1 to dev_t before assignment.
Jim Meyering 36427d6c 1994-10-08T16:38:01 .
Jim Meyering d87c3946 1992-10-31T20:42:48 Initial revision