Page MenuHomeFreeBSD

getprogname.3: Show difference between getprogname() and argv[0] in an example
ClosedPublic

Authored by 0mp on Nov 13 2020, 1:36 PM.
Tags
None
Referenced Files
F132422142: D27204.id.diff
Thu, Oct 16, 7:28 PM
F132410400: D27204.id79908.diff
Thu, Oct 16, 5:09 PM
F132352702: D27204.id87637.diff
Thu, Oct 16, 4:11 AM
F132323062: D27204.id79908.diff
Wed, Oct 15, 9:46 PM
Unknown Object (File)
Tue, Oct 14, 2:09 PM
Unknown Object (File)
Sat, Oct 11, 1:33 AM
Unknown Object (File)
Fri, Oct 10, 3:29 AM
Unknown Object (File)
Sat, Oct 4, 2:57 AM
Subscribers

Details

Summary
Show difference between getprogname() and argv[0] in an example

MFC:	2 weeks

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34985
Build 31978: arc lint + arc unit

Event Timeline

0mp requested review of this revision.Nov 13 2020, 1:36 PM
yuripv added inline comments.
lib/libc/gen/getprogname.3
97
lib/libc/gen/getprogname.3
88
104

Fix typos reported by yuripv

0mp marked 3 inline comments as done.Nov 23 2020, 5:53 PM
lib/libc/gen/getprogname.3
98

Sorry, still doesn't look completely right, just trying to follow what style(9) says :)

The function type should be on a line by itself preceding the function.
The opening brace of the function body should be on a line by itself.

static char *
function(int a1, int a2, float fl, int a4, struct bar *bar)
{
0mp marked an inline comment as done.Apr 17 2021, 9:28 PM
0mp added inline comments.
lib/libc/gen/getprogname.3
98

Good catch, sorry for not hassle :)

0mp marked an inline comment as done.
This revision is now accepted and ready to land.Apr 17 2021, 10:44 PM
This revision was automatically updated to reflect the committed changes.