Sponsored Content
Full Discussion: -d_gnu_source
Top Forums Programming -d_gnu_source Post 302284122 by wqqafnd on Wednesday 4th of February 2009 10:33:57 PM
Old 02-04-2009
If the code depends on GNU functions, then we'll get warnings and fix
it once -D_GNU_SOURCE is removed.

If the code depends on incorrect GNU semantics in standardized
functions (which conflict with POSIX) then the code is already
_BROKEN_ on non-GNU implementations, and -D_GNU_SOURCE just works
around the problem on GNU systems. If this is the case it's better to
let it break then find the problems and fix it rather than having
subtle bugs. But I doubt it's the case anyway.

Either way, using -D_GNU_SOURCE is a very bad idea IMO.

If you're worried about differing from upstream we should complain to
upstream and ask them to remove the -D_GNU_SOURCE.
 
attropen(3C)						   Standard C Library Functions 					      attropen(3C)

NAME
attropen - open a file SYNOPSIS
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int attropen(const char *path, const char *attrpath, int oflag, /* mode_t mode */...); DESCRIPTION
The attropen() function is similar to the open(2) function except that it takes a second path argument, attrpath, that identifies an extended attribute file associated with the first path argument. This function returns a file descriptor for the extended attribute rather than the file named by the initial argument. The O_XATTR flag is set by default for attropen() and the attrpath argument is always interpreted as a reference to an extended attribute. Extended attributes must be referenced with a relative path; providing an absolute path results in a normal file reference. RETURN VALUES
Refer to open(2). ERRORS
Refer to open(2). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
open(2), attributes(5), fsattr(5) SunOS 5.11 1 Aug 2001 attropen(3C)
All times are GMT -4. The time now is 01:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy