Bug 163119

Summary: mktemp(3) is referring to (now) non-existent gcc option
Product: Documentation Reporter: Yuri Pankov <yuri.pankov>
Component: Books & ArticlesAssignee: Eitan Adler <eadler>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
mktemp.3.diff none

Description Yuri Pankov 2011-12-08 08:50:11 UTC
mktemp(3) is presumably referring to gcc's -fwritable-strings, which doesn't exist in recent releases (and it's a bad advice anyway).
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2012-03-03 15:37:22 UTC
Responsible Changed
From-To: freebsd-doc->eadler

I'll take it.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2012-03-03 19:36:33 UTC
State Changed
From-To: open->analyzed

awaiting approval
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-03-04 16:41:17 UTC
Author: eadler
Date: Sun Mar  4 16:41:07 2012
New Revision: 232504
URL: http://svn.freebsd.org/changeset/base/232504

Log:
  Remove reference to gcc's non-standard -fwritable-strings, which
  doesn't exist in recent releases (and is bad advice anyway)
  
  PR:		docs/163119
  Submitted by:	Yuri Pankov <yuri.pankov@gmail.com>
  Approved by:	cperciva
  MFC after:	1 week

Modified:
  head/lib/libc/stdio/mktemp.3

Modified: head/lib/libc/stdio/mktemp.3
==============================================================================
--- head/lib/libc/stdio/mktemp.3	Sun Mar  4 16:39:08 2012	(r232503)
+++ head/lib/libc/stdio/mktemp.3	Sun Mar  4 16:41:07 2012	(r232504)
@@ -28,7 +28,7 @@
 .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd February 11, 1998
+.Dd March 4, 2012
 .Dt MKTEMP 3
 .Os
 .Sh NAME
@@ -180,12 +180,6 @@ with an argument of
 will result in a core dump due to
 .Fn mkstemp
 attempting to modify the string constant that was given.
-If the program in question makes heavy use of that type
-of function call, you do have the option of compiling the program
-so that it will store string constants in a writable segment of memory.
-See
-.Xr gcc 1
-for more information.
 .Sh SEE ALSO
 .Xr chmod 2 ,
 .Xr getpid 2 ,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2012-03-04 21:23:33 UTC
State Changed
From-To: analyzed->patched

committed in r232504
Comment 5 dfilter service freebsd_committer freebsd_triage 2012-03-19 01:32:43 UTC
Author: eadler
Date: Mon Mar 19 01:32:28 2012
New Revision: 233149
URL: http://svn.freebsd.org/changeset/base/233149

Log:
  MFC r232504:
  	Remove reference to gcc's non-standard -fwritable-strings, which
  	doesn't exist in recent releases (and is bad advice anyway)
  
  PR:		docs/163119
  Approved by:	cperciva

Modified:
  stable/9/lib/libc/stdio/mktemp.3
Directory Properties:
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/stdio/mktemp.3
==============================================================================
--- stable/9/lib/libc/stdio/mktemp.3	Mon Mar 19 01:28:11 2012	(r233148)
+++ stable/9/lib/libc/stdio/mktemp.3	Mon Mar 19 01:32:28 2012	(r233149)
@@ -28,7 +28,7 @@
 .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd February 11, 1998
+.Dd March 4, 2012
 .Dt MKTEMP 3
 .Os
 .Sh NAME
@@ -180,12 +180,6 @@ with an argument of
 will result in a core dump due to
 .Fn mkstemp
 attempting to modify the string constant that was given.
-If the program in question makes heavy use of that type
-of function call, you do have the option of compiling the program
-so that it will store string constants in a writable segment of memory.
-See
-.Xr gcc 1
-for more information.
 .Sh SEE ALSO
 .Xr chmod 2 ,
 .Xr getpid 2 ,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 6 dfilter service freebsd_committer freebsd_triage 2012-03-19 01:33:13 UTC
Author: eadler
Date: Mon Mar 19 01:32:53 2012
New Revision: 233150
URL: http://svn.freebsd.org/changeset/base/233150

Log:
  MFC r232504:
  	Remove reference to gcc's non-standard -fwritable-strings, which
  	doesn't exist in recent releases (and is bad advice anyway)
  
  PR:		docs/163119
  Approved by:	cperciva

Modified:
  stable/8/lib/libc/stdio/mktemp.3
Directory Properties:
  stable/8/lib/libc/   (props changed)

Modified: stable/8/lib/libc/stdio/mktemp.3
==============================================================================
--- stable/8/lib/libc/stdio/mktemp.3	Mon Mar 19 01:32:28 2012	(r233149)
+++ stable/8/lib/libc/stdio/mktemp.3	Mon Mar 19 01:32:53 2012	(r233150)
@@ -28,7 +28,7 @@
 .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd February 11, 1998
+.Dd March 4, 2012
 .Dt MKTEMP 3
 .Os
 .Sh NAME
@@ -180,12 +180,6 @@ with an argument of
 will result in a core dump due to
 .Fn mkstemp
 attempting to modify the string constant that was given.
-If the program in question makes heavy use of that type
-of function call, you do have the option of compiling the program
-so that it will store string constants in a writable segment of memory.
-See
-.Xr gcc 1
-for more information.
 .Sh SEE ALSO
 .Xr chmod 2 ,
 .Xr getpid 2 ,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 7 dfilter service freebsd_committer freebsd_triage 2012-03-19 01:33:37 UTC
Author: eadler
Date: Mon Mar 19 01:33:24 2012
New Revision: 233151
URL: http://svn.freebsd.org/changeset/base/233151

Log:
  MFC r232504:
  	Remove reference to gcc's non-standard -fwritable-strings, which
  	doesn't exist in recent releases (and is bad advice anyway)
  
  PR:		docs/163119
  Approved by:	cperciva

Modified:
  stable/7/lib/libc/stdio/mktemp.3
Directory Properties:
  stable/7/lib/libc/   (props changed)

Modified: stable/7/lib/libc/stdio/mktemp.3
==============================================================================
--- stable/7/lib/libc/stdio/mktemp.3	Mon Mar 19 01:32:53 2012	(r233150)
+++ stable/7/lib/libc/stdio/mktemp.3	Mon Mar 19 01:33:24 2012	(r233151)
@@ -28,7 +28,7 @@
 .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd February 11, 1998
+.Dd March 4, 2012
 .Dt MKTEMP 3
 .Os
 .Sh NAME
@@ -180,12 +180,6 @@ with an argument of
 will result in a core dump due to
 .Fn mkstemp
 attempting to modify the string constant that was given.
-If the program in question makes heavy use of that type
-of function call, you do have the option of compiling the program
-so that it will store string constants in a writable segment of memory.
-See
-.Xr gcc 1
-for more information.
 .Sh SEE ALSO
 .Xr chmod 2 ,
 .Xr getpid 2 ,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 8 Eitan Adler freebsd_committer freebsd_triage 2012-03-19 01:52:46 UTC
State Changed
From-To: patched->closed

Committed. Thanks!