FreeBSD Bugzilla – Attachment 238411 Details for
Bug 268028
Remove unneeded sys/types.h include
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test if unistd.h functions need sys/types.h
sys_types_h-unistd_h.c (text/plain), 481 bytes, created by
Guilherme Janczak
on 2022-11-29 04:20:11 UTC
(
hide
)
Description:
Test if unistd.h functions need sys/types.h
Filename:
MIME Type:
Creator:
Guilherme Janczak
Created:
2022-11-29 04:20:11 UTC
Size:
481 bytes
patch
obsolete
>#include <unistd.h> > >int >main(void) >{ > uid_t euid; > gid_t egid; > > /* Compile time error if pid_t isn't in <unistd.h>. */ > tcsetpgrp(0, -1); > tcgetpgrp(0); > > /* Compile time error if uid_t or gid_t aren't in <unistd.h>. */ > getpeereid(0, &euid, &egid); > > /* Type declarations can't possibly be missing here because > * setproctitle{,fast}() only use standard integer types in their > * declarations, but check anyway. > */ > setproctitle("success"); > setproctitle_fast("success"); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 268028
:
238386
| 238411 |
238412
|
238413
|
238414