Sponsored Content
Full Discussion: Hidden strcmp in glibc
Top Forums Programming Hidden strcmp in glibc Post 302779423 by Corona688 on Tuesday 12th of March 2013 03:53:03 PM
Old 03-12-2013
It's not a real function. g++ and many other compilers will inline these functions -- add a few instructions in the program itself, rather than doing an entire branch/return for a function. Since a branch/return may be as time-consuming as the comparison itself for such a simple thing as strcmp, this saves a lot of performance.
These 2 Users Gave Thanks to Corona688 For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

glibc 2.2.2

After installing glibc 2.2.2 on my redhat 6.1 (with all necessary updates). I try to restart but my compter say i do not existst like you deleted root account and you are root. (i have seen people doing that ;-P ). I run configure with these command --bindir=/bin --sbindir=/sbin --libdir=/lib... (1 Reply)
Discussion started by: jurrien
1 Replies

2. Programming

strcmp core dumps

hi everyone, Right now when I do: strcmp(s1, s2); i get a core dump because at times s1 or s2 can be nothing so that makes strcmp() core dump. What is the solution, if at times I expect one of them (or both) to be NULL? I want to be able to compare that s1 is NULL and s2 is "blah" or... (6 Replies)
Discussion started by: annie
6 Replies

3. UNIX for Advanced & Expert Users

install glibc-2.6.1

Hi, I have downloaded glibc-2.6.1.tar.tar. But I do not know how to install it on Xubuntu. Do you know ? Thank you. (4 Replies)
Discussion started by: big123456
4 Replies

4. Shell Programming and Scripting

Finding Hidden files and protecting the folder containing hidden files from deletion

Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is: find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \; But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Discussion started by: pochaw
4 Replies

5. Programming

glibc error

Hi All, This is my first time posting on this forum. I'd like to participate actively on this list. Here we go! I'm making a little application and I'm using ncurses. After a while using it, I receive the following error and the stack trace is shown: ***glibc detected*** malloc() :... (6 Replies)
Discussion started by: lagigliaivan
6 Replies

6. Ubuntu

glibc version

I need glibc version 2.2 - 2.11 for a installation. but i got glibc 2.0-2.1 from software centre... what to do? can u help? (8 Replies)
Discussion started by: paramad
8 Replies

7. UNIX for Dummies Questions & Answers

List all directories hidden or not hidden

I want to list all directories hidden or not hidden. ls -ld */ => shows only not hidden directories so i guess the answer would be to add the a option to show all files ls -lad */ => not working :confused: ls -la | grep "^d" => works But I would like to know why I can't use ls -lad... (4 Replies)
Discussion started by: servus
4 Replies

8. UNIX and Linux Applications

Install glibc-debug for glibc-2.11.3-17.31.1 on SLES 11

I have to debug a function getopt_long in glibc-2.11.3-17.31.1. For that how can I download and install its corresponding glibc-debug on SLES 11? (8 Replies)
Discussion started by: rupeshkp728
8 Replies

9. Shell Programming and Scripting

Rsync - how to copy hidden folder or hidden files when using full path

Hello. I use this command : rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command. And no full source directories are in use, only some files. Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
types(5)							File Formats Manual							  types(5)

NAME
types - primitive system data types SYNOPSIS
DESCRIPTION
Remarks The example given on this page is a typical version. The type names are in general expected to be present, although exceptions (if any) may be described in In most cases the fundamental type which implements each typedef is implementation dependent as long as source code which uses those typedefs need not be changed. In some cases the typedef is actually a shorthand for a commonly used type, and will not vary. The data types defined in the include file are used in HP-UX system code; some data of these types are accessible to user code: typedef struct { int r[1]; } *physadr; typedef char *caddr_t; typedef unsigned int uint; typedef unsigned short ushort; typedef unsigned long ino_t; typedef short cnt_t; typedef long time_t; typedef long dev_t; typedef long off_t; typedef long paddr_t; typedef long key_t; typedef int32_t pid_t; typedef long uid_t; typedef long gid_t; typedef long blkcnt_t; Note that the defined names above are standardized, but the actual type to which they are defined may vary between HP-UX implementations. The meanings of the types are: physadr used as a pointer to memory; the pointer is aligned to follow hardware-dependent instruction addressing conventions. caddr_t used as an untyped pointer or a pointer to untyped memory. uint shorthand for unsigned integer. ushort shorthand for unsigned short. ino_t used to specify I-numbers. All native file systems (including HFS and VxFS 3.5) through HP-UX 11i, use values that will fit within 32-bits. Some remote NFS servers may use larger values, which will be truncated without error for 32-bit applications and may not result in unique values. cnt_t used in some implementations to hold reference counts for some kernel data structures. time_t time encoded in seconds since 00:00:00 GMT, January 1, 1970. dev_t specifies kind and unit number of a device, encoded in two parts known as major and minor. off_t offset measured in bytes from the beginning of a file. If a 32-bit application is compiled with or off_t will become an int64_t. paddr_t used as an integer type which is properly sized to hold a pointer. key_t the type of a key used to obtain a message queue, semaphore, or shared memory identifier, see stdipc(3C). pid_t used to specify process and process group identifiers. uid_t used to specify user identifiers. gid_t user to specify group identifiers. blkcnt_t disk quota or transfer size measured in blocks. If a 32-bit application is compiled with or blkcnt_t will become an int64_t. STANDARDS CONFORMANCE
types(5)
All times are GMT -4. The time now is 12:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy