summary refs log tree commit diff
path: root/FAQ.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-04 12:24:18 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-04 12:24:18 +0000
commitb5a9efcd9342681200280ef9f764b744d62b62ce (patch)
tree71c18e1855fa1e53ba3e002eb6643c318c27a90b /FAQ.in
parent27aa0631c73ee805519f3ac078eaef460f1b4bc3 (diff)
downloadglibc-b5a9efcd9342681200280ef9f764b744d62b62ce.tar.gz
glibc-b5a9efcd9342681200280ef9f764b744d62b62ce.tar.xz
glibc-b5a9efcd9342681200280ef9f764b744d62b62ce.zip
Update.
	* elf/dl-load.c (expand_dynamic_string_token): Rewrite to loose st
	variable.
Diffstat (limited to 'FAQ.in')
-rw-r--r--FAQ.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/FAQ.in b/FAQ.in
index 0b950c81c5..6a841a07a3 100644
--- a/FAQ.in
+++ b/FAQ.in
@@ -1326,6 +1326,19 @@ Your program should check at runtime whether the function works, and
 implement a fallback.  Note that Autoconf cannot detect unimplemented
 functions in other systems' C libraries, so you need to do this anyway.
 
+??	My program segfaults when I call fclose() on the FILE* returned
+	from setmntent().  Is this a glibc bug?
+
+{GK} No.  Don't do this.  Use endmntent(), that's what it's for.
+
+In general, you should use the correct deallocation routine.  For instance,
+if you open a file using fopen(), you should deallocate the FILE * using
+fclose(), not free(), even though the FILE * is also a pointer.
+
+In the case of setmntent(), it may appear to work in most cases, but it
+won't always work.  Unfortunately, for compatibility reasons, we can't
+change the return type of setmntent() to something other than FILE *.
+
 
 ? Miscellaneous