9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] same functions everywhere
@ 2003-05-01  4:24 rob pike, esq.
  2003-05-01  5:34 ` Jim Meier
  0 siblings, 1 reply; 112+ messages in thread
From: rob pike, esq. @ 2003-05-01  4:24 UTC (permalink / raw)
  To: 9fans

> Doug is thinking ahead to C1x.

Surely the committee moves faster than this, and he's
really thinking of C0x.

-rob



^ permalink raw reply	[flat|nested] 112+ messages in thread
* Re: [9fans] same functions everywhere
@ 2003-04-25 11:30 David Presotto
  0 siblings, 0 replies; 112+ messages in thread
From: David Presotto @ 2003-04-25 11:30 UTC (permalink / raw)
  To: 9fans

Yup.  We have fsetpos and fgetpos in addition to fsicko, ah fseeko
and ftello.  Only did it because the ape library exists to port
posix compliant programs.  I was torn about changing it in the plan9
non-ape stdio but did that one too in the hope that our programs will
port out more easily.  I was probably being silly.


^ permalink raw reply	[flat|nested] 112+ messages in thread
* [9fans] same functions everywhere
@ 2003-04-23  9:16 paurea
  2003-04-23 15:05 ` Russ Cox
  2003-04-25 10:40 ` Douglas A. Gwyn
  0 siblings, 2 replies; 112+ messages in thread
From: paurea @ 2003-04-23  9:16 UTC (permalink / raw)
  To: 9fans

Reading the code for different commands and filesystems, I have found
there are at least three functions repeated with equivalent
implementations all over the place. These are erealloc emalloc and estrdup.
They call the function without the e and call sysfatal on error. Wouldn't it
be more economical and clear to have them on a library?.

On another terms, it would be great to have some function, macro, mechanism
or whatever to describe calling a function and calling sysfatal on error, because
this usage of functions repeats itself a lot.



									Gorka




^ permalink raw reply	[flat|nested] 112+ messages in thread

end of thread, other threads:[~2003-05-27 10:48 UTC | newest]

Thread overview: 112+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-01  4:24 [9fans] same functions everywhere rob pike, esq.
2003-05-01  5:34 ` Jim Meier
  -- strict thread matches above, loose matches on Subject: below --
2003-04-25 11:30 David Presotto
2003-04-23  9:16 paurea
2003-04-23 15:05 ` Russ Cox
2003-04-23 15:29   ` paurea
2003-04-23 15:32     ` Fco.J.Ballesteros
2003-04-23 17:33       ` rob pike, esq.
2003-04-24 12:02         ` paurea
2003-04-24 12:20           ` Charles Forsyth
2003-04-24 14:39           ` Sam
2003-04-24 14:48             ` Sam
2003-04-29  5:04           ` Boyd Roberts
2003-04-24  1:31     ` okamoto
2003-04-29  5:43       ` Boyd Roberts
2003-04-25 10:40 ` Douglas A. Gwyn
2003-04-25 11:46   ` Fco.J.Ballesteros
2003-04-30  8:41     ` Douglas A. Gwyn
2003-04-30 20:08       ` Joel Salomon
2003-04-30 20:11         ` rsc
2003-04-30 20:29           ` Scott Schwartz
2003-05-01  9:07             ` Douglas A. Gwyn
2003-05-01 16:00               ` Scott Schwartz
2003-05-07  4:53                 ` boyd, rounin
2003-05-07 11:03                   ` northern snowfall
2003-05-07 10:40                     ` Lucio De Re
2003-05-07 13:05                       ` northern snowfall
2003-05-07 12:25                         ` Lucio De Re
2003-05-07 13:34                           ` northern snowfall
2003-05-07 13:56                             ` northern snowfall
2003-05-27  9:22                             ` Ralph Corderoy
2003-05-27 10:48                               ` northern snowfall
2003-05-07 12:33                         ` David Butler
2003-05-07 13:40                           ` northern snowfall
2003-05-07 14:33                       ` boyd, rounin
2003-05-08  9:08                       ` Douglas A. Gwyn
2003-05-08  9:49                         ` Bruce Ellis
2003-05-08 13:20                           ` rog
2003-05-27  9:22                       ` Ralph Corderoy
2003-05-07 14:43                     ` Russ Cox
2003-05-07 15:47                       ` northern snowfall
2003-05-07 14:53                         ` Jack Johnson
2003-05-07 16:08                           ` northern snowfall
2003-05-08  9:08                         ` Douglas A. Gwyn
2003-05-07 16:01                       ` Scott Schwartz
2003-05-08  9:08                     ` Douglas A. Gwyn
2003-05-15 15:37                     ` Brian Inglis
2003-05-15 16:19                       ` Russ Cox
2003-05-01  9:07           ` Douglas A. Gwyn
2003-05-01 13:55             ` Russ Cox
2003-05-01 17:17               ` Joel Salomon
2003-05-01 17:21                 ` rsc
2003-05-01 18:01                   ` Joel Salomon
2003-05-01 18:11                     ` rsc
2003-05-02  9:24                       ` Douglas A. Gwyn
2003-05-02 16:28                         ` rob pike, esq.
2003-05-05 22:16                           ` Andrew Simmons
2003-05-06  9:09                           ` Douglas A. Gwyn
2003-05-06 15:46                             ` Joel Salomon
2003-05-06 18:43                             ` rog
2003-05-07  8:43                               ` Douglas A. Gwyn
2003-05-07 15:06                                 ` rog
2003-05-07 16:25                                   ` Scott Schwartz
2003-05-08 14:40                                     ` rog
2003-05-08  9:08                                   ` Douglas A. Gwyn
2003-05-08 13:12                                     ` rog
2003-05-09  8:36                                       ` Douglas A. Gwyn
2003-05-09 13:21                                         ` rog
2003-05-09 16:19                                           ` John Murdie
2003-05-09 18:24                                             ` northern snowfall
2003-05-10 17:17                                               ` John Murdie
2003-05-10 17:59                                                 ` boyd, rounin
2003-05-10 18:04                                                 ` boyd, rounin
2003-05-12  8:56                                                 ` Douglas A. Gwyn
2003-05-12  9:26                                                   ` boyd, rounin
2003-05-12 13:19                                                   ` David Presotto
2003-05-12 13:23                                                     ` boyd, rounin
2003-05-12 17:45                                                   ` boyd, rounin
2003-05-12 17:22                                             ` rog
2003-05-12 17:36                                               ` boyd, rounin
2003-05-13 12:24                                                 ` rog
2003-05-14  9:27                                                   ` boyd, rounin
2003-05-09 16:46                                           ` Dan Cross
2003-05-12  8:55                                           ` Douglas A. Gwyn
2003-05-12 15:51                                             ` boyd, rounin
2003-05-12 16:48                                               ` rog
2003-05-12 16:54                                                 ` boyd, rounin
2003-05-13  8:33                                               ` Douglas A. Gwyn
2003-05-13 14:18                                                 ` boyd, rounin
2003-05-19  9:46                                         ` boyd, rounin
2003-05-08 17:11                             ` Dan Cross
2003-05-08 17:24                               ` Russ Cox
2003-05-08 18:14                                 ` Dan Cross
2003-05-08 18:21                                   ` root
2003-05-08 18:33                                     ` William Ahern
2003-05-08 19:21                                       ` Dan Cross
2003-05-08 19:06                                     ` Dan Cross
2003-05-08 18:35                                   ` Joel Salomon
2003-05-08 18:40                                     ` Scott Schwartz
2003-05-08 19:03                                       ` Dan Cross
2003-05-08 19:52                                       ` rog
2003-05-08 22:50                                         ` Dan Cross
2003-05-09  2:55                                           ` rog
2003-05-09  0:12                                             ` Dan Cross
2003-05-08 18:40                                     ` Charles Forsyth
2003-05-09  8:36                               ` Douglas A. Gwyn
2003-05-08  6:45                           ` boyd, rounin
2003-05-08  6:41                         ` boyd, rounin
2003-05-02  6:08                   ` Taj Khattra
2003-05-02 11:07                 ` FJ Ballesteros
2003-05-07  4:44           ` Boyd Roberts
2003-05-07  4:21       ` Boyd Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).